Home | History | Annotate | Download | only in lib

Lines Matching refs:Fst

1 // expanded-fst.h
17 // Generic FST augmented with state count - interface class definition.
22 #include "fst/lib/fst.h"
24 namespace fst {
26 // A generic FST plus state count.
28 class ExpandedFst : public Fst<A> {
56 LOG(ERROR) << "ExpandedFst::Read: Unknown FST type \"" << hdr.FstType()
61 Fst<A> *fst = reader(strm, ropts);
62 if (!fst) return 0;
63 return down_cast<ExpandedFst<A> *>(fst);
79 // Function to return the number of states in an FST, counting them
82 typename Arc::StateId CountStates(const Fst<Arc> &fst) {
83 if (fst.Properties(kExpanded, false)) {
84 const ExpandedFst<Arc> *efst = down_cast<const ExpandedFst<Arc> *>(&fst);
88 for (StateIterator< Fst<Arc> > siter(fst); !siter.Done(); siter.Next())