diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-09-13 11:15:32 +0100 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-09-13 11:15:32 +0100 |
commit | 8505fdfdf0bc4ce9acec42e1980a2fdd4f254109 (patch) | |
tree | 20f941c7f2a06a73337d5c6fb24ab1da49888399 /decoder/decoder.cc | |
parent | 58da794845e192cdae3b5ba96cacf234d6a66ed0 (diff) |
It compiles.
Diffstat (limited to 'decoder/decoder.cc')
-rw-r--r-- | decoder/decoder.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/decoder/decoder.cc b/decoder/decoder.cc index a69a6d05..3a410cf2 100644 --- a/decoder/decoder.cc +++ b/decoder/decoder.cc @@ -38,6 +38,7 @@ #include "sampler.h" #include "forest_writer.h" // TODO this section should probably be handled by an Observer +#include "lazy.h" #include "hg_io.h" #include "aligner.h" @@ -832,6 +833,9 @@ 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")) + PassToLazy(forest, CurrentWeightVector()); + for (int pass = 0; pass < rescoring_passes.size(); ++pass) { const RescoringPass& rp = rescoring_passes[pass]; const vector<weight_t>& cur_weights = *rp.weight_vector; |