wfst::algorithms

Function reverse

Source
pub fn reverse<W: Weight, F: ExpandedFst<W> + MutableFst<W>, O: MutableFst<W>>(
    ifst: F,
) -> O
Expand description

Reverses an Fst: If the input fst transduces string x to y with weight a, then the reverse transduces the reverse of x to the reverse of y with weight a.reverse().