summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-10-11 06:02:26 -0400
committerKenneth Heafield <github@kheafield.com>2012-10-11 06:02:26 -0400
commitb7005385f267596436dd07b1a9e798023ef1c30a (patch)
tree26fb97aa3563f4ef20ac606c6aaaaed2ceba7700 /decoder
parentddb3eb611b00a2a80936b92b95e94d33896990da (diff)
Skip rest of decoder when using incremental
Diffstat (limited to 'decoder')
-rw-r--r--decoder/decoder.cc5
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];