diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-09 00:50:38 -0500 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2011-03-09 00:50:38 -0500 |
commit | b2a018f6a5fc34dc799aa41a05a16eb79aa95de1 (patch) | |
tree | 5a8583ae2071cf41cf590e12f054787647bf7761 /decoder | |
parent | 0a8a20d1669daa2f2e52c646b4e6c4ef11fa29ed (diff) |
print empty line when parse fails
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/decoder.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/decoder/decoder.cc b/decoder/decoder.cc index 03b98415..239c8620 100644 --- a/decoder/decoder.cc +++ b/decoder/decoder.cc @@ -743,11 +743,13 @@ bool DecoderImpl::Decode(const string& input, DecoderObserver* o) { translator->SentenceComplete(); if (!translation_successful) { - if (!SILENT) cerr << " NO PARSE FOUND.\n"; + if (!SILENT) { cerr << " NO PARSE FOUND.\n"; } o->NotifySourceParseFailure(smeta); o->NotifyDecodingComplete(smeta); if (conf.count("show_conditional_prob")) { cout << "-Inf" << endl << flush; + } else if (!SILENT) { + cout << endl; } return false; } |