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 <hieuhoang@gmail.com>2014-04-09 13:33:33 +0400
committerHieu Hoang <hieuhoang@gmail.com>2014-04-09 13:33:33 +0400
commit65326f205f6e78184d8dfc4e5230dc5f4055815d (patch)
treef5b5c6d36b37c7e665914746e2911aed13633281 /moses/ChartHypothesisCollection.cpp
parent0e98f1bc06602a041ca92bf24441ba19d0a8ab70 (diff)
-stack 0 means no stack pruning
Diffstat (limited to 'moses/ChartHypothesisCollection.cpp')
-rw-r--r--moses/ChartHypothesisCollection.cpp2
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;