Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

evaluatio.alignment

Functions

optimal_alignment

optimal_alignment(references: Iterable[object], hypotheses: Iterable[object]) -> List[_bindings.Alignment]

Compute an optimal alignment between a reference and hypothesis sequence.

Aligns each element in references to a span in hypotheses using dynamic programming, minimising the total edit distance between the two sequences. The result describes, for each reference index, which range of hypothesis indices it aligns to.

Parameters

Returns

Note