Home | History | Annotate | Download | only in lib

Lines Matching refs:weight

101   typedef typename A::Weight Weight;
137 Weight Final(StateId s) {
139 Weight final = ComputeFinal(s);
177 virtual Weight ComputeFinal(StateId s) = 0;
332 typedef typename A::Weight Weight;
437 arc.weight = Times(arcb.weight, arca.weight);
443 arc.weight = Times(arca.weight, arcb.weight);
481 bool finala = fsta->Final(sa) != Weight::Zero();
502 A earcb(0, 0, Weight::One(), sb);
562 A loop(match_labelb, match_labelb, Weight::One(), sf);
582 A earca(0, 0, Weight::One(), sa);
631 Weight ComputeFinal(StateId s) {
633 Weight final = Times(ComposeFstImplBase<A>::fst1_->Final(tuple.state_id1),
652 // delayed Fst. If FST1 transduces string x to y with weight a and FST2
653 // transduces y to z with weight b, then their composition transduces
654 // string x to z with weight Times(x, z).
688 typedef typename A::Weight Weight;
709 virtual Weight Final(StateId s) const { return impl_->Final(s); }
784 if (!(Weight::Properties() & kCommutative)) {
788 LOG(FATAL) << "ComposeFst: Weight needs to be a commutative semiring: "
789 << Weight::Type();
871 // y with weight a and FST2 transduces y to z with weight b, then
872 // their composition transduces string x to z with weight