From 6c1b4b07a4ffcb7c41abecc407b09580ecf8da5b Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Tue, 26 Apr 2016 17:50:59 +0200 Subject: rampion: Laura's fix for k-best accumulation --- training/rampion/rampion_cccp.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'training/rampion/rampion_cccp.cc') diff --git a/training/rampion/rampion_cccp.cc b/training/rampion/rampion_cccp.cc index 1c45bac5..8db011e8 100644 --- a/training/rampion/rampion_cccp.cc +++ b/training/rampion/rampion_cccp.cc @@ -122,6 +122,7 @@ int main(int argc, char** argv) { while(getline(in, line)) { istringstream is(line); int sent_id; + is >> file >> sent_id; kis.resize(kis.size() + 1); training::CandidateSet& curkbest = kis.back(); string kbest_file; @@ -132,7 +133,7 @@ int main(int argc, char** argv) { if (FileExists(kbest_file)) curkbest.ReadFromFile(kbest_file); } - is >> file >> sent_id; +// is >> file >> sent_id; ReadFile rf(file); if (kis.size() % 5 == 0) { cerr << '.'; } if (kis.size() % 200 == 0) { cerr << " [" << kis.size() << "]\n"; } -- cgit v1.2.3