Home | History | Annotate | Download | only in fst

Lines Matching refs:ifst

200 void ArcMap(const Fst<A> &ifst, MutableFst<B> *ofst, C* mapper) {
207 ofst->SetInputSymbols(ifst.InputSymbols());
212 ofst->SetOutputSymbols(ifst.OutputSymbols());
216 uint64 iprops = ifst.Properties(kCopyProperties, false);
218 if (ifst.Start() == kNoStateId) {
224 if (ifst.Properties(kExpanded, false)) {
225 ofst->ReserveStates(CountStates(ifst) +
230 for (StateIterator< Fst<A> > siter(ifst); !siter.Done(); siter.Next())
238 for (StateIterator< Fst<A> > siter(ifst); !siter.Done(); siter.Next()) {
240 if (s == ifst.Start())
243 ofst->ReserveArcs(s, ifst.NumArcs(s));
244 for (ArcIterator< Fst<A> > aiter(ifst, s); !aiter.Done(); aiter.Next())
250 B final_arc = (*mapper)(A(0, 0, ifst.Final(s), kNoStateId));
259 B final_arc = (*mapper)(A(0, 0, ifst.Final(s), kNoStateId));
275 B final_arc = (*mapper)(A(0, 0, ifst.Final(s), kNoStateId));
293 void ArcMap(const Fst<A> &ifst, MutableFst<B> *ofst, C mapper) {
294 ArcMap(ifst, ofst, &mapper);