diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-22 17:09:49 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-09-22 17:09:49 +0400 |
commit | 574d716f23587803d7b67c6346ab2ba494059a35 (patch) | |
tree | d8b8368e796f03734680d183a2a7fb28a489ccf3 /moses/ChartTranslationOptionList.cpp | |
parent | ffbfcb5577efbff5825519739464128811e9d490 (diff) |
placeholder for chart decoding
Diffstat (limited to 'moses/ChartTranslationOptionList.cpp')
-rw-r--r-- | moses/ChartTranslationOptionList.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/ChartTranslationOptionList.cpp b/moses/ChartTranslationOptionList.cpp index 52169c935..965797df1 100644 --- a/moses/ChartTranslationOptionList.cpp +++ b/moses/ChartTranslationOptionList.cpp @@ -157,8 +157,9 @@ void ChartTranslationOptionList::ApplyThreshold() void ChartTranslationOptionList::Evaluate(const InputType &input, const InputPath &inputPath) { + // NEVER iterate over ALL of the collection. Just over the first m_size CollType::iterator iter; - for (iter = m_collection.begin(); iter != m_collection.end(); ++iter) { + for (iter = m_collection.begin(); iter != m_collection.begin() + m_size; ++iter) { ChartTranslationOptions &transOpts = **iter; transOpts.Evaluate(input, inputPath); } |