[][src]Module rustfst::utils

A few utilities to manipulate wFSTs.

Functions

acceptor

Turns a list of labels into a linear acceptor (FST with the same labels for both input and output). The only accepted path in the acceptor will be labels.

decode_linear_fst

Decode a linear FST to retrieves the only path recognized by it. A path is composed of the input symbols, the output symbols and the weight (multiplication of the weights of the trs of the path).

transducer

Turns a list of input labels and output labels into a linear FST. The only accepted path in the FST has for input labels_input and for output labels_output.