From 95ea293005f74a627fdd2aae318d5746fa8c4e6c Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Wed, 9 Mar 2011 00:50:38 -0500 Subject: print empty line when parse fails --- decoder/decoder.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3