plexus.processors.RemoveSpeakerIdentifiersTranscriptFilter module

class plexus.processors.RemoveSpeakerIdentifiersTranscriptFilter.RemoveSpeakerIdentifiersTranscriptFilter(**parameters)

Bases: Processor

Processor that removes speaker identifiers from transcript text.

Removes patterns like “Agent:”, “Customer:”, etc. from the beginning of lines.

Initialize the processor with configuration parameters.

Args:

**parameters: Processor-specific configuration parameters

process(score_input: Score.Input) Score.Input

Process the Score.Input by removing speaker identifiers.

Args:

score_input: Score.Input with text containing speaker labels

Returns:

Score.Input with speaker labels removed