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/TreeInput.cpp
parent028edf85501013ea06d575c67b5647f939f1f149 (diff)
UTIL_THROW_IF -> UTIL_THROW_IF2
Diffstat (limited to 'moses/TreeInput.cpp')
-rw-r--r--moses/TreeInput.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/TreeInput.cpp b/moses/TreeInput.cpp
index 3fcc31820..337fb4377 100644
--- a/moses/TreeInput.cpp
+++ b/moses/TreeInput.cpp
@@ -183,7 +183,7 @@ bool TreeInput::ProcessAndStripXMLTags(string &line, std::vector<XMLParseOutput>
}
Word *targetLHS = new Word(true);
targetLHS->CreateFromString(Output, outputFactorOrder, targetLHSstr, true);
- UTIL_THROW_IF(targetLHS->GetFactor(0) == NULL, util::Exception,
+ UTIL_THROW_IF2(targetLHS->GetFactor(0) == NULL,
"Null factor left-hand-side");
targetPhrase.SetTargetLHS(targetLHS);
@@ -288,7 +288,7 @@ TranslationOptionCollection* TreeInput::CreateTranslationOptionCollection() cons
void TreeInput::AddChartLabel(size_t startPos, size_t endPos, const Word &label
, const std::vector<FactorType>& /* factorOrder */)
{
- UTIL_THROW_IF(!label.IsNonTerminal(), util::Exception,
+ UTIL_THROW_IF2(!label.IsNonTerminal(),
"Label must be a non-terminal");
SourceLabelOverlap overlapType = StaticData::Instance().GetSourceLabelOverlap();
@@ -330,7 +330,7 @@ std::ostream& operator<<(std::ostream &out, const TreeInput &input)
NonTerminalSet::const_iterator iter;
for (iter = labelSet.begin(); iter != labelSet.end(); ++iter) {
const Word &word = *iter;
- UTIL_THROW_IF(!word.IsNonTerminal(), util::Exception,
+ UTIL_THROW_IF2(!word.IsNonTerminal(),
"Word must be a non-terminal");
out << "[" << startPos <<"," << endPos << "]="
<< word << "(" << word.IsNonTerminal() << ") ";