diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 15:12:58 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 15:12:58 +0400 |
commit | f6761003285ef52c4c21ddc9a2650f42ea867212 (patch) | |
tree | 1155cf39b1c6ba472cde75674a6cf18bcc615e88 /moses/ChartTranslationOptionList.cpp | |
parent | af74ee1968e96360ee92fde098a02c79b94e0024 (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 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/moses/ChartTranslationOptionList.cpp b/moses/ChartTranslationOptionList.cpp index 27d24c65c..19b272d2a 100644 --- a/moses/ChartTranslationOptionList.cpp +++ b/moses/ChartTranslationOptionList.cpp @@ -147,4 +147,13 @@ void ChartTranslationOptionList::ApplyThreshold() m_size = std::distance(m_collection.begin(), bound); } +void ChartTranslationOptionList::Evaluate(const InputPath &inputPath, const InputType &input) +{ + CollType::iterator iter; + for (iter = m_collection.begin(); iter != m_collection.end(); ++iter) { + ChartTranslationOptions &transOpts = **iter; + transOpts.Evaluate(inputPath, input); + } +} + } |