summaryrefslogtreecommitdiff
path: root/vest/fast_score.cc
diff options
context:
space:
mode:
authorredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-17 21:32:21 +0000
committerredpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-17 21:32:21 +0000
commit52aab129e132d28c352d8ccf1b3bc9f589b8608e (patch)
treef716a0b909c77b0b562d169de32929ea27a7bb86 /vest/fast_score.cc
parent791da7f9fcb6667cb46f59e5ed1efa527ef885a7 (diff)
fix to make work, plus avoid bug in ast_csore
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@309 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest/fast_score.cc')
-rw-r--r--vest/fast_score.cc2
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);