diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-09-27 12:35:24 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-09-27 12:35:24 +0400 |
commit | 31ce9b510e9a06e998ddddfbe92f0192cf7656b8 (patch) | |
tree | 3bfd084ffb9eb72abe1a560cee0be3b5dc0ace7b /moses/ChartHypothesisCollection.cpp | |
parent | 13e1adf0002c00b84ff9735d5afddb7e0b73530e (diff) |
beautify
Diffstat (limited to 'moses/ChartHypothesisCollection.cpp')
-rw-r--r-- | moses/ChartHypothesisCollection.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/moses/ChartHypothesisCollection.cpp b/moses/ChartHypothesisCollection.cpp index 8cccf3083..f3116fb43 100644 --- a/moses/ChartHypothesisCollection.cpp +++ b/moses/ChartHypothesisCollection.cpp @@ -61,10 +61,10 @@ ChartHypothesisCollection::~ChartHypothesisCollection() bool ChartHypothesisCollection::AddHypothesis(ChartHypothesis *hypo, ChartManager &manager) { if (hypo->GetTotalScore() == - std::numeric_limits<float>::infinity()) { - manager.GetSentenceStats().AddDiscarded(); - VERBOSE(3,"discarded, -inf score" << std::endl); - ChartHypothesis::Delete(hypo); - return false; + manager.GetSentenceStats().AddDiscarded(); + VERBOSE(3,"discarded, -inf score" << std::endl); + ChartHypothesis::Delete(hypo); + return false; } if (hypo->GetTotalScore() < m_bestScore + m_beamWidth) { |