Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHieu Hoang <hieu@hoang.co.uk>2013-08-13 15:12:58 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-13 15:12:58 +0400
commitf6761003285ef52c4c21ddc9a2650f42ea867212 (patch)
tree1155cf39b1c6ba472cde75674a6cf18bcc615e88 /moses/ChartTranslationOptionList.cpp
parentaf74ee1968e96360ee92fde098a02c79b94e0024 (diff)
implement Evaluate(inputpath, input) for chart translation options. Plumbing for lattice input
Diffstat (limited to 'moses/ChartTranslationOptionList.cpp')
-rw-r--r--moses/ChartTranslationOptionList.cpp9
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);
+ }
+}
+
}