summaryrefslogtreecommitdiff
path: root/training/minrisk/minrisk_optimize.cc
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-01-19 14:39:14 +0100
committerPatrick Simianer <p@simianer.de>2015-01-19 14:39:14 +0100
commit0673fb55c6af8bc94c9f3e577c514160faf736d3 (patch)
treeff4edd0e1e816f4d412601689ab510b2d0aaccf7 /training/minrisk/minrisk_optimize.cc
parentcb9fb7088dde35881516c088db402abe747d49fa (diff)
parent1bce604809399a0adc581fb0102bff11decf3436 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'training/minrisk/minrisk_optimize.cc')
-rw-r--r--training/minrisk/minrisk_optimize.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/minrisk/minrisk_optimize.cc b/training/minrisk/minrisk_optimize.cc
index da8b5260..a2938fb0 100644
--- a/training/minrisk/minrisk_optimize.cc
+++ b/training/minrisk/minrisk_optimize.cc
@@ -178,7 +178,7 @@ int main(int argc, char** argv) {
ReadFile rf(file);
if (kis.size() % 5 == 0) { cerr << '.'; }
if (kis.size() % 200 == 0) { cerr << " [" << kis.size() << "]\n"; }
- HypergraphIO::ReadFromJSON(rf.stream(), &hg);
+ HypergraphIO::ReadFromBinary(rf.stream(), &hg);
hg.Reweight(weights);
curkbest.AddKBestCandidates(hg, kbest_size, ds[sent_id]);
if (kbest_file.size())