diff options
author | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-02-10 02:06:11 +0300 |
---|---|---|
committer | Ulrich Germann <ugermann@inf.ed.ac.uk> | 2015-02-10 02:06:11 +0300 |
commit | 6ef257a9e927dc7cf47fa64c8d97ec2a22883f0a (patch) | |
tree | 20f0edb3a36d8710d2f0a54e8f59b26dd440a635 /moses/TranslationOptionList.cpp | |
parent | 8ed69fb56a1f8e38faddd3a9c9d37d17350f7541 (diff) |
Bug fix in TranslationOptionList::SelectNBest(N).
Diffstat (limited to 'moses/TranslationOptionList.cpp')
-rw-r--r-- | moses/TranslationOptionList.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/TranslationOptionList.cpp b/moses/TranslationOptionList.cpp index 71f3259a2..4e6449b5b 100644 --- a/moses/TranslationOptionList.cpp +++ b/moses/TranslationOptionList.cpp @@ -42,7 +42,7 @@ namespace Moses TranslationOptionList:: SelectNBest(size_t const N) { - if (N == 0 || N <= m_coll.size()) return 0; + if (N == 0 || N >= m_coll.size()) return 0; static TranslationOption::Better cmp; NTH_ELEMENT4(m_coll.begin(), m_coll.begin() + N, m_coll.end(), cmp); // delete the rest |