nemo_curator.stages.audio.text_filtering.select_best_prediction
nemo_curator.stages.audio.text_filtering.select_best_prediction
Module Contents
Classes
Functions
Data
API
Bases: ProcessingStage[AudioTask, AudioTask]
Choose one stable transcript from primary, recovery, or reference text.
Selection is ordered so explicit reference policies run before model
recovery. Short Qwen-Omni clips can use reference text to avoid known
sub-second hallucinations, and force_reference can make reference text
authoritative for datasets whose model output is not trusted. Otherwise,
the stage handles unsupported languages, recovered fallback predictions,
reference recovery, cross-model agreement, and the normal primary result.
Cross-model agreement uses character error rate (CER) for languages written
without word-separating spaces and word error rate (WER) otherwise. The
selected metric is recorded in metric_key.
asr_text_key is a compatibility alias that overrides
fallback_text_key when supplied.