This commit is contained in:
Hieu Hoang 2016-12-06 09:39:59 -05:00
parent ac6f234592
commit 8f012ba9c9

View File

@ -251,7 +251,7 @@ void HypothesisColl::PruneHypos(const ManagerBase &mgr, ArcLists &arcLists)
HypothesisFutureScoreOrderer());
// update worse score
m_worseScore = sortedHypos[maxStackSize]->GetFutureScore();
m_worseScore = sortedHypos[maxStackSize - 1]->GetFutureScore();
// prune
if (maxStackSize && sortedHypos.size() > maxStackSize) {