summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-10-19 15:31:11 -0400
committerChris Dyer <redpony@gmail.com>2014-10-19 15:31:11 -0400
commit800c6df6e7aac9032e1068fb6dc985344865854a (patch)
tree9297a9aa8480e683227f0ca523c12f4038120b27
parent1cdb47472a800bd03fd1940730187ef3c8e71794 (diff)
remove json from grammar_convert
-rw-r--r--training/utils/grammar_convert.cc4
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 {