simulstream.metrics.scorers.latency.mwersegmenter.ResegmentedLatencyScoringSample

class simulstream.metrics.scorers.latency.mwersegmenter.ResegmentedLatencyScoringSample(audio_name: str, hypothesis: List[OutputWithDelays], reference: List[ReferenceSentenceDefinition])

Bases: object

A sample containing realigned hypotheses and references.

audio_name

The identifier of the audio file.

Type:

str

hypothesis

Hypothesis lines after realignment.

Type:

List[str]

reference

Reference lines aligned to the hypothesis.

Type:

List[str]

__init__(audio_name: str, hypothesis: List[OutputWithDelays], reference: List[ReferenceSentenceDefinition]) None

Methods

__init__(audio_name, hypothesis, reference)

Attributes

audio_name

hypothesis

reference