diff options
author | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-01-15 19:42:02 +0400 |
---|---|---|
committer | Nicola Bertoldi <bertoldi@fbk.eu> | 2014-01-15 19:42:02 +0400 |
commit | bd83999264407dd7970736ee3e70a6b39fb19014 (patch) | |
tree | 1a0a0d9bab2b8caf853c301187beb637b0a1af61 /moses/ChartTranslationOptionList.cpp | |
parent | a098550f33dd1eead0e72a98a4822ce924841550 (diff) |
beautify
Diffstat (limited to 'moses/ChartTranslationOptionList.cpp')
-rw-r--r-- | moses/ChartTranslationOptionList.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/moses/ChartTranslationOptionList.cpp b/moses/ChartTranslationOptionList.cpp index 963e9089c..e5de8dc2a 100644 --- a/moses/ChartTranslationOptionList.cpp +++ b/moses/ChartTranslationOptionList.cpp @@ -102,10 +102,10 @@ void ChartTranslationOptionList::Add(const TargetPhraseCollection &tpc, // Prune if bursting if (m_size == m_ruleLimit * 2) { - NTH_ELEMENT4(m_collection.begin(), - m_collection.begin() + m_ruleLimit - 1, - m_collection.begin() + m_size, - ChartTranslationOptionOrderer()); + NTH_ELEMENT4(m_collection.begin(), + m_collection.begin() + m_ruleLimit - 1, + m_collection.begin() + m_size, + ChartTranslationOptionOrderer()); m_scoreThreshold = m_collection[m_ruleLimit-1]->GetEstimateOfBestScore(); m_size = m_ruleLimit; } @@ -129,9 +129,9 @@ void ChartTranslationOptionList::ApplyThreshold() // Reduce the list to the best m_ruleLimit options. The remaining // options can be overwritten on subsequent calls to Add(). NTH_ELEMENT4(m_collection.begin(), - m_collection.begin()+m_ruleLimit, - m_collection.begin()+m_size, - ChartTranslationOptionOrderer()); + m_collection.begin()+m_ruleLimit, + m_collection.begin()+m_size, + ChartTranslationOptionOrderer()); m_size = m_ruleLimit; } @@ -167,11 +167,11 @@ void ChartTranslationOptionList::Evaluate(const InputType &input, const InputPat std::ostream& operator<<(std::ostream &out, const ChartTranslationOptionList &obj) { - for (size_t i = 0; i < obj.m_collection.size(); ++i) { - const ChartTranslationOptions &transOpts = *obj.m_collection[i]; - out << transOpts << endl; - } - return out; + for (size_t i = 0; i < obj.m_collection.size(); ++i) { + const ChartTranslationOptions &transOpts = *obj.m_collection[i]; + out << transOpts << endl; + } + return out; } } |