diff options
author | Alexander Gutkin <agutkin@google.com> | 2013-02-28 00:24:20 +0000 |
---|---|---|
committer | Alexander Gutkin <agutkin@google.com> | 2013-02-28 00:24:20 +0000 |
commit | 5b6dc79427b8f7eeb6a7ff68034ab8548ce670ea (patch) | |
tree | 19e17fc79b8873e66f211276d4dd169c480cede1 /src/lib/symbol-table.cc | |
parent | 3da1eb108d36da35333b2d655202791af854996b (diff) | |
download | openfst-5b6dc79427b8f7eeb6a7ff68034ab8548ce670ea.tar.gz |
Bumped OpenFST implementation to openfst-1.3.3-CL41851770.
Updated OpenFST implementation to the most recent version
used by Greco3 (corresponds to nlp::fst exported at Perforce
CL 41851770).
In particular this version has an improved PDT support.
Change-Id: I5aadfc962297eef73922c67e7d57866f11ee7d81
Diffstat (limited to 'src/lib/symbol-table.cc')
-rw-r--r-- | src/lib/symbol-table.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/symbol-table.cc b/src/lib/symbol-table.cc index a195a7c..2484ef5 100644 --- a/src/lib/symbol-table.cc +++ b/src/lib/symbol-table.cc @@ -55,10 +55,11 @@ SymbolTableImpl* SymbolTableImpl::ReadText(istream &strm, continue; if (col.size() != 2) { LOG(ERROR) << "SymbolTable::ReadText: Bad number of columns (" - << col.size() << " skipping), " + << col.size() << "), " << "file = " << filename << ", line = " << nline << ":<" << line << ">"; - continue; + delete impl; + return 0; } const char *symbol = col[0]; const char *value = col[1]; @@ -67,9 +68,10 @@ SymbolTableImpl* SymbolTableImpl::ReadText(istream &strm, if (p < value + strlen(value) || (!opts.allow_negative && key < 0) || key == -1) { LOG(ERROR) << "SymbolTable::ReadText: Bad non-negative integer \"" - << value << "\" (skipping), " + << value << "\", " << "file = " << filename << ", line = " << nline; - continue; + delete impl; + return 0; } impl->AddSymbol(symbol, key); } |