diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-04-09 13:33:33 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-04-09 13:33:33 +0400 |
commit | 65326f205f6e78184d8dfc4e5230dc5f4055815d (patch) | |
tree | f5b5c6d36b37c7e665914746e2911aed13633281 /moses/ChartHypothesisCollection.cpp | |
parent | 0e98f1bc06602a041ca92bf24441ba19d0a8ab70 (diff) |
-stack 0 means no stack pruning
Diffstat (limited to 'moses/ChartHypothesisCollection.cpp')
-rw-r--r-- | moses/ChartHypothesisCollection.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/ChartHypothesisCollection.cpp b/moses/ChartHypothesisCollection.cpp index 8a4a48a29..ec5a86e59 100644 --- a/moses/ChartHypothesisCollection.cpp +++ b/moses/ChartHypothesisCollection.cpp @@ -190,6 +190,8 @@ void ChartHypothesisCollection::Remove(const HCType::iterator &iter) */ void ChartHypothesisCollection::PruneToSize(ChartManager &manager) { + if (m_maxHypoStackSize == 0) return; // no limit + if (GetSize() > m_maxHypoStackSize) { // ok, if not over the limit priority_queue<float> bestScores; |