diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-03-26 21:25:54 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-03-26 21:25:54 +0300 |
commit | 9dc75bfd8ad3092f08f7a6d2a6492323b7803e56 (patch) | |
tree | f13405e11bce5001e6718ae0089fdcf85d961c98 /moses/Incremental.cpp | |
parent | 4410e9225a5bd495fc6d097b206290beb59f4839 (diff) |
Managers and feature functions now have access to the entire TranslationTask, not just the InputType.
Diffstat (limited to 'moses/Incremental.cpp')
-rw-r--r-- | moses/Incremental.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/moses/Incremental.cpp b/moses/Incremental.cpp index 49573664e..17632b571 100644 --- a/moses/Incremental.cpp +++ b/moses/Incremental.cpp @@ -203,15 +203,15 @@ struct ChartCellBaseFactory { } // namespace -Manager::Manager(const InputType &source) : - BaseManager(source), - cells_(source, ChartCellBaseFactory()), - parser_(source, cells_), - n_best_(search::NBestConfig(StaticData::Instance().GetNBestSize())) {} +Manager::Manager(ttasksptr const& ttask) + : BaseManager(ttask) + , cells_(m_source, ChartCellBaseFactory()) + , parser_(ttask, cells_) + , n_best_(search::NBestConfig(StaticData::Instance().GetNBestSize())) +{ } Manager::~Manager() -{ -} +{ } template <class Model, class Best> search::History Manager::PopulateBest(const Model &model, const std::vector<lm::WordIndex> &words, Best &out) { |