Home | History | Annotate | Download | only in fst

Lines Matching defs:Weight

40 // transition is selected. If N == NumArcs(), then the final weight at
50 typedef typename A::Weight Weight;
57 if (fst.Final(s) != Weight::Zero())
65 // log probabilities after normalizing for the total weight leaving
66 // the state. Weight::zero transitions are disregarded.
67 // Assumes Weight::Value() accesses the floating point
68 // representation of the weight.
73 typedef typename A::Weight Weight;
78 // Find total weight leaving state
83 sum += exp(-to_log_weight_(arc.weight).Value());
93 p += exp(-to_log_weight_(arc.weight).Value());
100 WeightConvert<Weight, Log64Weight> to_log_weight_;
109 // the cummulative weight computations.
114 typedef typename A::Weight Weight;
125 // Find total weight leaving state
135 WeightConvert<Weight, Log64Weight> to_log_weight_;
165 typedef typename A::Weight Weight;
192 fst_.Final(rstate.state_id) == Weight::Zero()) ||
212 // If N == NumArcs(s), then the final weight at that state is
241 typedef typename A::Weight Weight;
271 fst_.Final(rstate.state_id) == Weight::Zero()) ||
314 bool remove_total_weight; // Remove total weight when output is weighted.
345 typedef typename A::Weight Weight;
398 Weight Final(StateId s) {
445 SetFinal(s, Weight::One());
450 SetFinal(s, Weight::Zero());
463 Weight weight = weighted_ ? to_weight_(-log(prob)) : Weight::One();
464 B barc(aarc.ilabel, aarc.olabel, weight, state_table_.size());
472 Weight weight = remove_total_weight_ ?
474 SetFinal(s, weight);
482 B barc(0, 0, Weight::One(), superfinal_);
499 WeightConvert<Log64Weight, Weight> to_weight_;
516 typedef typename A::Weight Weight;
593 bool remove_total_weight; // Remove total weight when output is weighted.
608 typedef typename IArc::Weight Weight;
627 if (ifst_->Final(arc.nextstate) == Weight::Zero()) {
647 if (p != kNoStateId && ifst_->Final(s) == Weight::Zero())
663 OArc arc(path_[i].ilabel, path_[i].olabel, Weight::One(), dest);
667 ofst_->SetFinal(src, Weight::One());
686 typedef typename OArc::Weight Weight;