diff options
Diffstat (limited to 'vest/fast_score.cc')
-rw-r--r-- | vest/fast_score.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vest/fast_score.cc b/vest/fast_score.cc index cf743b4f..0d611d56 100644 --- a/vest/fast_score.cc +++ b/vest/fast_score.cc @@ -47,7 +47,7 @@ int main(int argc, char** argv) { while(in) { string line; getline(in, line); - if (line.empty()) continue; + if (line.empty() && !in) break; vector<WordID> sent; TD::ConvertSentence(line, &sent); Score* sentscore = ds[lc]->ScoreCandidate(sent); |