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 <hieu@hoang.co.uk>2013-11-18 23:03:30 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-11-18 23:03:30 +0400
commitd424e6985be74cbf45e24b8acd21794c9a6a92c0 (patch)
tree247c305d1b7957a2c82083638b7bdd60a6d818e3 /moses/AlignmentInfo.cpp
parent3ffc5e7a8f24103011fcf60bf94071cf2436054c (diff)
replace CHECK with UTIL_THROW_IF in moses-chart-cmd
Diffstat (limited to 'moses/AlignmentInfo.cpp')
-rw-r--r--moses/AlignmentInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/AlignmentInfo.cpp b/moses/AlignmentInfo.cpp
index 5ed1ce6ee..ed317a764 100644
--- a/moses/AlignmentInfo.cpp
+++ b/moses/AlignmentInfo.cpp
@@ -18,10 +18,10 @@
***********************************************************************/
#include <algorithm>
#include <set>
-#include "util/check.hh"
#include "AlignmentInfo.h"
#include "TypeDef.h"
#include "StaticData.h"
+#include "util/exception.hh"
namespace Moses
{
@@ -112,7 +112,7 @@ std::vector< const std::pair<size_t,size_t>* > AlignmentInfo::GetSortedAlignment
break;
default:
- CHECK(false);
+ UTIL_THROW(util::Exception, "Unknown alignment sort option: " << wordAlignmentSort);
}
return ret;