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>2013-11-19 21:23:19 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-11-19 21:23:19 +0400
commit22864c2b4b154b2c69518bf773fe73f4c557af0a (patch)
tree660ee9759c095d2c38b769db69259b38d096fc37 /moses/FF/ControlRecombination.cpp
parentc2c86ce50d1900db55e420dd08f38facfce50501 (diff)
replace CHECK with UTIL_THROW_IF in Moses
Diffstat (limited to 'moses/FF/ControlRecombination.cpp')
-rw-r--r--moses/FF/ControlRecombination.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/moses/FF/ControlRecombination.cpp b/moses/FF/ControlRecombination.cpp
index 2396d81e3..35055a53a 100644
--- a/moses/FF/ControlRecombination.cpp
+++ b/moses/FF/ControlRecombination.cpp
@@ -49,7 +49,8 @@ int ControlRecombinationState::Compare(const FFState& other) const
std::vector<float> ControlRecombination::DefaultWeights() const
{
- CHECK(m_numScoreComponents == 0);
+ UTIL_THROW_IF(m_numScoreComponents, util::Exception,
+ "ControlRecombination should not have any scores");
vector<float> ret(0);
return ret;
}