Home | History | Annotate | Download | only in fst

Lines Matching refs:Fst

30 #include <fst/connect.h>
31 #include <fst/mutable-fst.h>
34 namespace fst {
37 void RmFinalEpsilon(MutableFst<A>* fst) {
46 DfsVisit(*fst, &scc_visitor);
52 for (StateIterator<Fst<A> > siter(*fst); !siter.Done(); siter.Next()) {
54 if (fst->Final(s) != Weight::Zero()) {
56 for (ArcIterator<Fst<A> > aiter(*fst, s); !aiter.Done(); aiter.Next()) {
71 for (StateIterator<Fst<A> > siter(*fst); !siter.Done(); siter.Next()) {
73 Weight w(fst->Final(s));
76 for (ArcIterator<Fst<A> > aiter(*fst, s); !aiter.Done(); aiter.Next()) {
82 w = Plus(Times(fst->Final(arc.nextstate), arc.weight), w);
93 if (arcs.size() < fst->NumArcs(s)) {
94 fst->DeleteArcs(s);
95 fst->SetFinal(s, w);
97 fst->AddArc(s, arcs[i]);
102 Connect(fst);
105 } // namespace fst