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/HypothesisStackNormal.cpp | |
parent | 13e1adf0002c00b84ff9735d5afddb7e0b73530e (diff) |
beautify
Diffstat (limited to 'moses/HypothesisStackNormal.cpp')
-rw-r--r-- | moses/HypothesisStackNormal.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/moses/HypothesisStackNormal.cpp b/moses/HypothesisStackNormal.cpp index ae632a8de..559035e18 100644 --- a/moses/HypothesisStackNormal.cpp +++ b/moses/HypothesisStackNormal.cpp @@ -89,10 +89,10 @@ pair<HypothesisStackNormal::iterator, bool> HypothesisStackNormal::Add(Hypothesi bool HypothesisStackNormal::AddPrune(Hypothesis *hypo) { if (hypo->GetTotalScore() == - std::numeric_limits<float>::infinity()) { - m_manager.GetSentenceStats().AddDiscarded(); - VERBOSE(3,"discarded, constraint" << std::endl); - FREEHYPO(hypo); - return false; + m_manager.GetSentenceStats().AddDiscarded(); + VERBOSE(3,"discarded, constraint" << std::endl); + FREEHYPO(hypo); + return false; } // too bad for stack. don't bother adding hypo into collection |