diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 15:16:55 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 15:16:55 +0400 |
commit | 0d60b7f2ddcfd4be0a74e112eba7d2a2b96dee58 (patch) | |
tree | d18f5d34af9c30e3e226cdb8bcabea6d21cf1a0e /moses/ChartTranslationOptionList.cpp | |
parent | f6761003285ef52c4c21ddc9a2650f42ea867212 (diff) |
implement Evaluate(inputpath, input) for chart translation options. Plumbing for lattice input
Diffstat (limited to 'moses/ChartTranslationOptionList.cpp')
-rw-r--r-- | moses/ChartTranslationOptionList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/ChartTranslationOptionList.cpp b/moses/ChartTranslationOptionList.cpp index 19b272d2a..1e8392d45 100644 --- a/moses/ChartTranslationOptionList.cpp +++ b/moses/ChartTranslationOptionList.cpp @@ -147,12 +147,12 @@ void ChartTranslationOptionList::ApplyThreshold() m_size = std::distance(m_collection.begin(), bound); } -void ChartTranslationOptionList::Evaluate(const InputPath &inputPath, const InputType &input) +void ChartTranslationOptionList::Evaluate(const InputType &input, const InputPath &inputPath) { CollType::iterator iter; for (iter = m_collection.begin(); iter != m_collection.end(); ++iter) { ChartTranslationOptions &transOpts = **iter; - transOpts.Evaluate(inputPath, input); + transOpts.Evaluate(input, inputPath); } } |