summaryrefslogtreecommitdiff
path: root/training/minrisk/minrisk_optimize.cc
diff options
context:
space:
mode:
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 a2938fb0..f90c7118 100644
--- a/training/minrisk/minrisk_optimize.cc
+++ b/training/minrisk/minrisk_optimize.cc
@@ -163,7 +163,7 @@ int main(int argc, char** argv) {
cerr << "Loading hypergraphs...\n";
while(getline(in, line)) {
istringstream is(line);
- int sent_id;
+ int sent_id = 0;
kis.resize(kis.size() + 1);
training::CandidateSet& curkbest = kis.back();
string kbest_file;