Home | History | Annotate | Download | only in lib

Lines Matching defs:Weight

28 // MutableFst input. If FST transduces string x to y with weight a,
29 // then the closure transduces x to y with weight a, xx to yy with
30 // weight Times(a, a), xxx to yyy with with Times(Times(a, a), a),
32 // transduced to itself with weight Weight::One() as well.
42 typedef typename Arc::Weight Weight;
50 Weight final = fst->Final(s);
51 if (final != Weight::Zero())
57 fst->SetFinal(nstart, Weight::One());
59 fst->AddArc(nstart, Arc(0, 0, Weight::One(), start));
84 // Fst. If FST transduces string x to y with weight a, then the
85 // closure transduces x to y with weight a, xx to yy with weight
86 // Times(a, a), xxx to yyy with weight Times(Times(a, a), a), etc. If
88 // to itself with weight Weight::One() as well.