Home | History | Annotate | Download | only in fst

Lines Matching defs:Weight

35 // MutableFst input. If FST transduces string x to y with weight a,
36 // then the closure transduces x to y with weight a, xx to yy with
37 // weight Times(a, a), xxx to yyy with with Times(Times(a, a), a),
39 // transduced to itself with weight Weight::One() as well.
49 typedef typename Arc::Weight Weight;
57 Weight final = fst->Final(s);
58 if (final != Weight::Zero())
65 fst->SetFinal(nstart, Weight::One());
67 fst->AddArc(nstart, Arc(0, 0, Weight::One(), start));
92 // Fst. If FST transduces string x to y with weight a, then the
93 // closure transduces x to y with weight a, xx to yy with weight
94 // Times(a, a), xxx to yyy with weight Times(Times(a, a), a), etc. If
96 // to itself with weight Weight::One() as well.