Function wfst::algorithms::extendfinal
[−]
[src]
pub fn extendfinal<W: Weight, F: ExpandedFst<W> + MutableFst<W>>(fst: F) -> F
Extends an Fst
to a single final state.
It adds a new final state with a semiring's "one" final weight and connects the current final states to it using epsilon transitions with weight equal to the original final state's weight.