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/TranslationOptionCollectionLattice.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/TranslationOptionCollectionLattice.cpp')
-rw-r--r-- | moses/TranslationOptionCollectionLattice.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/moses/TranslationOptionCollectionLattice.cpp b/moses/TranslationOptionCollectionLattice.cpp index 9af62dc81..9bb998070 100644 --- a/moses/TranslationOptionCollectionLattice.cpp +++ b/moses/TranslationOptionCollectionLattice.cpp @@ -18,10 +18,12 @@ namespace Moses { /** constructor; just initialize the base class */ -TranslationOptionCollectionLattice::TranslationOptionCollectionLattice( - const WordLattice &input - , size_t maxNoTransOptPerCoverage, float translationOptionThreshold) - : TranslationOptionCollection(input, maxNoTransOptPerCoverage, translationOptionThreshold) +TranslationOptionCollectionLattice +::TranslationOptionCollectionLattice +( ttasksptr const& ttask, const WordLattice &input, + size_t maxNoTransOptPerCoverage, float translationOptionThreshold) + : TranslationOptionCollection(ttask, input, maxNoTransOptPerCoverage, + translationOptionThreshold) { UTIL_THROW_IF2(StaticData::Instance().GetUseLegacyPT(), "Not for models using the legqacy binary phrase table"); |