Home | History | Annotate | Download | only in grxmlcompile

Lines Matching refs:Fst

4 // fst-io.h 
25 // Classes and functions to compile a binary Fst from textual input.
32 #include "fst/lib/fst.h"
33 #include "fst/lib/fstlib.h"
34 #include "fst/lib/fst-decl.h"
35 #include "fst/lib/vector-fst.h"
36 #include "fst/lib/arcsort.h"
37 #include "fst/lib/invert.h"
39 namespace fst {
48 FstPrinter(const Fst<A> &fst,
53 : fst_(fst), isyms_(isyms), osyms_(osyms), ssyms_(ssyms),
54 accep_(accep && fst.Properties(kAcceptor, true)), ostrm_(0) {}
56 // Print Fst to an output strm
65 for (StateIterator< Fst<A> > siter(fst_);
109 for (ArcIterator< Fst<A> > aiter(fst_, s);
137 const Fst<A> &fst_;
142 ostream *ostrm_; // binary FST destination
143 string dest_; // binary FST destination name
152 Fst<Arc> *fst = Fst<Arc>::Read(istrm, opts);
153 if (!fst) return 1;
185 isyms = fst->InputSymbols();
187 osyms = fst->OutputSymbols();
189 FstPrinter<Arc> fstprinter(*fst, isyms, osyms, ssyms, FLAGS_acceptor);
283 const VectorFst<A> &Fst() const { return fst_; }
352 string source_; // text FST source name
365 // unlike the other mains, which infer the arc type from an input Fst.
400 const Fst<Arc> *fst = &fstreader.Fst();
402 fst = Convert<Arc>(*fst, FLAGS_fst_type);
403 if (!fst) return 1;
405 fst->Write(argc > 2 ? argv[2] : "");
412 } // namespace fst