diff options
author | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-03-30 03:20:17 +0300 |
---|---|---|
committer | Ulrich Germann <Ulrich.Germann@gmail.com> | 2015-03-30 03:20:17 +0300 |
commit | fcbfc5a535522328cd9c7abfc7f0680d93c3c9f4 (patch) | |
tree | 3c6c00c783fb098e1448c6c8ed4740c77431efae /moses/ConfusionNet.cpp | |
parent | 79cd40d2c487179565bdd05947cb11c996c3ce14 (diff) |
Feature functions and the constructors of TranslationOptionCollections
now have access to the current translation task.
This was done to allow context-sensitive processing (if provided by the FF).
Diffstat (limited to 'moses/ConfusionNet.cpp')
-rw-r--r-- | moses/ConfusionNet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ConfusionNet.cpp b/moses/ConfusionNet.cpp index e8a54a061..e305a4147 100644 --- a/moses/ConfusionNet.cpp +++ b/moses/ConfusionNet.cpp @@ -291,7 +291,7 @@ std::ostream& operator<<(std::ostream& out,const ConfusionNet& cn) TranslationOptionCollection* ConfusionNet:: -CreateTranslationOptionCollection() const +CreateTranslationOptionCollection(ttasksptr const& ttask) const { size_t maxNoTransOptPerCoverage = StaticData::Instance().GetMaxNoTransOptPerCoverage(); @@ -299,7 +299,7 @@ CreateTranslationOptionCollection() const = StaticData::Instance().GetTranslationOptionThreshold(); TranslationOptionCollection *rv = new TranslationOptionCollectionConfusionNet - (*this, maxNoTransOptPerCoverage, translationOptionThreshold); + (ttask, *this, maxNoTransOptPerCoverage, translationOptionThreshold); assert(rv); return rv; } |