diff options
-rw-r--r-- | moses/src/SearchCubePruning.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/moses/src/SearchCubePruning.cpp b/moses/src/SearchCubePruning.cpp index 8a2a1b6df..7c3313c94 100644 --- a/moses/src/SearchCubePruning.cpp +++ b/moses/src/SearchCubePruning.cpp @@ -77,6 +77,8 @@ void SearchCubePruning::ProcessSentence() HypothesisStackCubePruning &firstStack = *static_cast<HypothesisStackCubePruning*>(m_hypoStackColl.front()); firstStack.AddInitial(hypo); + // Call this here because the loop below starts at the second stack. + firstStack.CleanupArcList(); CreateForwardTodos(firstStack); const size_t PopLimit = StaticData::Instance().GetCubePruningPopLimit(); |