Function rustfst::algorithms::push_with_config
source · pub fn push_with_config<W, F1, F2>(
ifst: &F1,
reweight_type: ReweightType,
push_type: PushType,
config: PushConfig
) -> Result<F2>where
F1: ExpandedFst<W>,
F2: ExpandedFst<W> + MutableFst<W> + AllocableFst<W>,
W: WeaklyDivisibleSemiring + WeightQuantize,
<W as Semiring>::ReverseWeight: 'static,
Expand description
Push the weights and/or labels of the input FST into the output mutable FST by pushing weights and/or labels towards the initial state or final states.