simulstream.metrics.scorers.latency.LatencyScoringSample

class simulstream.metrics.scorers.latency.LatencyScoringSample(audio_name: str, hypothesis: OutputWithDelays, reference: List[ReferenceSentenceDefinition] | None = None)

Bases: object

Data structure representing a single evaluation sample.

audio_name

The identifier of the audio file.

Type:

str

hypothesis

The system-generated hypothesis text.

Type:

str

reference

One or more reference sentences, including the text, start time and duration, or None if not required.

Type:

Optional[List[ReferenceSentenceDefinition]]

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

Methods

__init__(audio_name, hypothesis[, reference])

Attributes

reference

audio_name

hypothesis