Lines Matching refs:ExpandedFst
35 class ExpandedFst : public Fst<A> {
42 // Get a copy of this ExpandedFst. See Fst<>::Copy() for further doc.
43 virtual ExpandedFst<A> *Copy(bool safe = false) const = 0;
45 // Read an ExpandedFst from an input stream; return NULL on error.
46 static ExpandedFst<A> *Read(istream &strm, const FstReadOptions &opts) {
57 LOG(ERROR) << "ExpandedFst::Read: Not an ExpandedFst: " << ropts.source;
64 LOG(ERROR) << "ExpandedFst::Read: Unknown FST type \"" << hdr.FstType()
71 return static_cast<ExpandedFst<A> *>(fst);
74 // Read an ExpandedFst from a file; return NULL on error.
76 static ExpandedFst<A> *Read(const string &filename) {
80 LOG(ERROR) << "ExpandedFst::Read: Can't open file: " << filename;
93 // ExpandedFst<A> case - abstract methods.
95 typename A::Weight Final(const ExpandedFst<A> &fst, typename A::StateId s) {
100 ssize_t NumArcs(const ExpandedFst<A> &fst, typename A::StateId s) {
105 ssize_t NumInputEpsilons(const ExpandedFst<A> &fst, typename A::StateId s) {
110 ssize_t NumOutputEpsilons(const ExpandedFst<A> &fst, typename A::StateId s) {
118 typedef ExpandedFst<StdArc> StdExpandedFst;
121 // This is a helper class template useful for attaching an ExpandedFst
124 template < class I, class F = ExpandedFst<typename I::Arc> >
152 LOG(ERROR) << "ExpandedFst::Read: Can't open file: " << filename;
177 const ExpandedFst<Arc> *efst = static_cast<const ExpandedFst<Arc> *>(&fst);