diff options
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/decoder.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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<string>(), sent_id, forest); - if (conf.count("lazy_search")) + if (conf.count("lazy_search")) { PassToLazy(conf["lazy_search"].as<string>().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]; |