check_path_in_fst

Function check_path_in_fst 

Source
pub fn check_path_in_fst<W: Semiring, F: Fst<W>>(
    fst: &F,
    fst_path: &FstPath<W>,
) -> bool
Expand description

Check if a FstPath can be generated by the given Fst.

Be careful with this function, it will loop forever if the path is not present in the Fst and the Fst is cyclic.