summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}