Function rustfst::algorithms::weight_convert [−][src]
pub fn weight_convert<W1, W2, F1, F2, M>(
fst_in: &F1,
mapper: &mut M
) -> Result<F2> where
W1: Semiring,
W2: Semiring,
F1: ExpandedFst<W1>,
F2: MutableFst<W2> + AllocableFst<W2>,
M: WeightConverter<W1, W2>,
Expand description
Convert an FST in a given Semiring to another Semiring using a WeightConverter to specify how the conversion should be performed.