Expand description
Functions to encode FSTs as FSAs and vice versa.
Structs§
Enums§
Functions§
- decode
- The decodeoperation takes as input an encoded FST and the correspondingEncodeTableobject and reverts the encoding.
- encode
- The encodeoperation allows the representation of a weighted transducer as a weighted automaton, an unweighted transducer or an unweighted automaton by considering the pair (input label, output), the pair (input label, weight) or the triple (input label, output label, weight) as a single label depending on the value of the encode flags:encode_labelsandencode_weights.