summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2011-03-09 00:50:38 -0500
committerChris Dyer <cdyer@cs.cmu.edu>2011-03-09 00:50:38 -0500
commitb2a018f6a5fc34dc799aa41a05a16eb79aa95de1 (patch)
tree5a8583ae2071cf41cf590e12f054787647bf7761 /decoder
parent0a8a20d1669daa2f2e52c646b4e6c4ef11fa29ed (diff)
print empty line when parse fails
Diffstat (limited to 'decoder')
-rw-r--r--decoder/decoder.cc4
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;
}