Home | History | Annotate | Download | only in fst

Lines Matching refs:Read

45   // Read an ExpandedFst from an input stream; return NULL on error.
46 static ExpandedFst<A> *Read(istream &strm, const FstReadOptions &opts) {
52 if (!hdr.Read(strm, opts.source))
57 LOG(ERROR) << "ExpandedFst::Read: Not an ExpandedFst: " << ropts.source;
64 LOG(ERROR) << "ExpandedFst::Read: Unknown FST type \"" << hdr.FstType()
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;
83 return Read(strm, FstReadOptions(filename));
85 return Read(std::cin, FstReadOptions("standard input"));
146 // Read FST implementation from a file; return NULL on error.
148 static I *Read(const string &filename) {
152 LOG(ERROR) << "ExpandedFst::Read: Can't open file: " << filename;
155 return I::Read(strm, FstReadOptions(filename));
157 return I::Read(std::cin, FstReadOptions("standard input"));