Skip to content

Commit

Permalink
remove json from grammar_convert
Browse files Browse the repository at this point in the history
  • Loading branch information
redpony committed Oct 19, 2014
1 parent 1cdb474 commit 800c6df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions training/utils/grammar_convert.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 800c6df

Please sign in to comment.