pub fn to_compact<L, S>(
lattice: &VectorFst<ArcTpl<LatticeWeight, L, S>>,
) -> VectorFst<ArcTpl<CompactLatticeWeight<L>, L, S>>where
L: ArcLabel,
S: ArcStateId,Expand description
Moves each arc’s input label into its weight, leaving the words on the arcs.
The result has the same shape as lattice; it is determinize_lattice
that collapses it. An input epsilon contributes nothing to the alignment,
having consumed no frame.
Written over the label and state-id types rather than over the graph’s arc: a lattice mentions that arc only behind its associated types, which do not determine it, so a caller would have had to name it.