diff options
author | Chris Dyer <redpony@gmail.com> | 2014-10-19 15:31:11 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2014-10-19 15:31:11 -0400 |
commit | 800c6df6e7aac9032e1068fb6dc985344865854a (patch) | |
tree | 9297a9aa8480e683227f0ca523c12f4038120b27 | |
parent | 1cdb47472a800bd03fd1940730187ef3c8e71794 (diff) |
remove json from grammar_convert
-rw-r--r-- | training/utils/grammar_convert.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/training/utils/grammar_convert.cc b/training/utils/grammar_convert.cc index 000f2a26..04f1eb77 100644 --- a/training/utils/grammar_convert.cc +++ b/training/utils/grammar_convert.cc @@ -316,11 +316,11 @@ int main(int argc, char **argv) { line = line.substr(0, pos + 2); } istringstream is(line); - if (HypergraphIO::ReadFromJSON(&is, &hg)) { + if (HypergraphIO::ReadFromBinary(&is, &hg)) { ProcessHypergraph(w, conf, ref, &hg); hg.clear(); } else { - cerr << "Error reading grammar from JSON: line " << lc << endl; + cerr << "Error reading grammar line " << lc << endl; exit(1); } } else { |