Lines Matching defs:Read
96 bool Read(istream &strm, const string &source);
147 // Read an Fst from an input stream; returns NULL on error
149 static Fst<A> *Read(istream &strm, const FstReadOptions &opts) {
155 if (!hdr.Read(strm, opts.source))
163 LOG(ERROR) << "Fst::Read: Unknown FST type \"" << hdr.FstType()
171 // Read an Fst from a file; return NULL on error
172 static Fst<A> *Read(const string &filename) {
175 LOG(ERROR) << "Fst::Read: Can't open file: " << filename;
178 return Read(strm, FstReadOptions(filename));
455 // Read-in header and symbols, initialize Fst, and return the header.
462 else if (!hdr->Read(strm, opts.source))
482 isymbols_ = SymbolTable::Read(strm, opts.source);
484 osymbols_ =SymbolTable::Read(strm, opts.source);