Lines Matching refs:Fst
25 #include "fst/lib/connect.h"
26 #include "fst/lib/mutable-fst.h"
28 namespace fst {
31 void RmFinalEpsilon(MutableFst<A>* fst) {
40 DfsVisit(*fst, &scc_visitor);
46 for (StateIterator<Fst<A> > siter(*fst); !siter.Done(); siter.Next()) {
48 if (fst->Final(s) != Weight::Zero()) {
50 for (ArcIterator<Fst<A> > aiter(*fst, s); !aiter.Done(); aiter.Next()) {
65 for (StateIterator<Fst<A> > siter(*fst); !siter.Done(); siter.Next()) {
67 Weight w(fst->Final(s));
70 for (ArcIterator<Fst<A> > aiter(*fst, s); !aiter.Done(); aiter.Next()) {
76 w = Plus(Times(fst->Final(arc.nextstate), arc.weight), w);
87 if (arcs.size() < fst->NumArcs(s)) {
88 fst->DeleteArcs(s);
89 fst->SetFinal(s, w);
91 fst->AddArc(s, arcs[i]);
96 Connect(fst);