Function rustfst::algorithms::push_weights_with_config

source ·
pub fn push_weights_with_config<W, F>(
    fst: &mut F,
    reweight_type: ReweightType,
    config: PushWeightsConfig
) -> Result<()>
Expand description

Push the weights in an FST, optionally removing the total weight.

If pushing towards the initial state, the sum of the weight of the outgoing transitions and final weight at a non-initial state is equal to One() in the resulting machine. If pushing towards the final state, the same property holds on the reverse machine.