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-23 00:27:46 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-11-23 00:27:46 +0400
commitf13d0c824456b91fef2588261cbe52ce24c665ba (patch)
tree4c24ab4dff0c05840bcea2333ac522d9b956f7cf /moses/PCNTools.cpp
parent028edf85501013ea06d575c67b5647f939f1f149 (diff)
UTIL_THROW_IF -> UTIL_THROW_IF2
Diffstat (limited to 'moses/PCNTools.cpp')
-rw-r--r--moses/PCNTools.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/PCNTools.cpp b/moses/PCNTools.cpp
index fd05907d6..8f0111f8c 100644
--- a/moses/PCNTools.cpp
+++ b/moses/PCNTools.cpp
@@ -128,7 +128,7 @@ CNAlt getCNAlt(const std::string& in, int &c)
for (; ind < toks.size() - 1; ++ind) {
const string &tok = toks[ind];
vector<string> keyValue = Moses::Tokenize(tok, "=");
- UTIL_THROW_IF(keyValue.size() != 2, util::Exception, "Format error: " << tok);
+ UTIL_THROW_IF2(keyValue.size() != 2, "Format error: " << tok);
float prob = Moses::Scan<float>(keyValue[1]);
sparseFeatures[ keyValue[0] ] = prob;
}