From b7005385f267596436dd07b1a9e798023ef1c30a Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Thu, 11 Oct 2012 06:02:26 -0400 Subject: Skip rest of decoder when using incremental --- decoder/decoder.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'decoder/decoder.cc') diff --git a/decoder/decoder.cc b/decoder/decoder.cc index 83077a68..29eaa4f6 100644 --- a/decoder/decoder.cc +++ b/decoder/decoder.cc @@ -834,8 +834,11 @@ bool DecoderImpl::Decode(const string& input, DecoderObserver* o) { if (conf.count("show_target_graph")) HypergraphIO::WriteTarget(conf["show_target_graph"].as(), sent_id, forest); - if (conf.count("lazy_search")) + if (conf.count("lazy_search")) { PassToLazy(conf["lazy_search"].as().c_str(), CurrentWeightVector(), pop_limit, forest); + o->NotifyDecodingComplete(smeta); + return true; + } for (int pass = 0; pass < rescoring_passes.size(); ++pass) { const RescoringPass& rp = rescoring_passes[pass]; -- cgit v1.2.3