lingvo.tasks.asr.levenshtein_distance module

Common utilities for ASR decoders.

class lingvo.tasks.asr.levenshtein_distance.ErrorStats(ins, dels, subs, tot)[source]

Bases: object

Class to keep track of error counts.

lingvo.tasks.asr.levenshtein_distance.LevenshteinDistance(lst_ref: List[str], lst_hyp: List[str]) ErrorStats[source]

Computes Levenshtein edit distance between reference and hypotheses.