1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
extern crate counter;
extern crate failure;
extern crate itertools;
extern crate rand;
type Result<T> = Result;
/// Type used for the input label and output label of an arc in a wFST.
pub type Label = usize;
/// Type used to identify a state in a wFST.
pub type StateId = usize;
/// Epsilon label representing the epsilon transition (empty transition).
pub static EPS_LABEL: Label = 0;
/// Provides algorithms that are generic for all wFST.
/// Implementation of the transitions inside a wFST.
/// Implementation of a successful path inside a wFST.
/// Provides trait that must be implemented to be able to use generic algorithms.
/// Implementation of the wFST traits with different data structure.
/// Provides a trait that shall be implemented for all weights stored inside a wFST.
pub
/// A few utilities to manipulate wFSTs.