summaryrefslogtreecommitdiff
path: root/training/utils
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
commit5f5adc5749e0589bf4b6e39a5fa5573f875a8895 (patch)
tree5a52203a99c7383ee116c3699c93c7f258608009 /training/utils
parent816a230d0e0b8d674c53c5dbb997b812f3d492ba (diff)
remove json from grammar_convert
Diffstat (limited to 'training/utils')
-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 {