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:
authorNicola Bertoldi <bertoldi@fbk.eu>2014-01-15 19:49:57 +0400
committerNicola Bertoldi <bertoldi@fbk.eu>2014-01-15 19:49:57 +0400
commite452a13062400b09ff95af971c1424ac34cf1930 (patch)
tree11b52a2f1228f4e64fb31d061d7e564970140fd7 /moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.cpp
parentbd83999264407dd7970736ee3e70a6b39fb19014 (diff)
beautify
Diffstat (limited to 'moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.cpp')
-rw-r--r--moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.cpp b/moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.cpp
index 7cb26ad88..5d8c95428 100644
--- a/moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.cpp
+++ b/moses/TranslationModel/RuleTable/PhraseDictionaryFuzzyMatch.cpp
@@ -84,13 +84,13 @@ PhraseDictionaryFuzzyMatch::
SetParameter(const std::string& key, const std::string& value)
{
if (key == "source") {
- m_config[0] = value;
+ m_config[0] = value;
} else if (key == "target") {
- m_config[1] = value;
+ m_config[1] = value;
} else if (key == "alignment") {
- m_config[2] = value;
+ m_config[2] = value;
} else {
- PhraseDictionary::SetParameter(key, value);
+ PhraseDictionary::SetParameter(key, value);
}
}
@@ -150,7 +150,7 @@ void PhraseDictionaryFuzzyMatch::InitializeForInput(InputType const& inputSenten
char dirName[] = "/tmp/moses.XXXXXX";
char *temp = mkdtemp(dirName);
UTIL_THROW_IF2(temp == NULL,
- "Couldn't create temporary directory " << dirName);
+ "Couldn't create temporary directory " << dirName);
string dirNameStr(dirName);
@@ -218,11 +218,11 @@ void PhraseDictionaryFuzzyMatch::InitializeForInput(InputType const& inputSenten
const size_t numScoreComponents = GetNumScoreComponents();
if (scoreVector.size() != numScoreComponents) {
UTIL_THROW2("Size of scoreVector != number (" << scoreVector.size() << "!="
- << numScoreComponents << ") of score components on line " << count);
+ << numScoreComponents << ") of score components on line " << count);
}
UTIL_THROW_IF2(scoreVector.size() != numScoreComponents,
- "Number of scores incorrectly specified");
+ "Number of scores incorrectly specified");
// parse source & find pt node
@@ -298,9 +298,9 @@ PhraseDictionaryNodeMemory &PhraseDictionaryFuzzyMatch::GetOrCreateNode(PhraseDi
const Word &sourceNonTerm = word;
UTIL_THROW_IF2(iterAlign == alignmentInfo.end(),
- "No alignment for non-term at position " << pos);
+ "No alignment for non-term at position " << pos);
UTIL_THROW_IF2(iterAlign->first != pos,
- "Alignment info incorrect at position " << pos);
+ "Alignment info incorrect at position " << pos);
size_t targetNonTermInd = iterAlign->second;
++iterAlign;
@@ -312,7 +312,7 @@ PhraseDictionaryNodeMemory &PhraseDictionaryFuzzyMatch::GetOrCreateNode(PhraseDi
}
UTIL_THROW_IF2(currNode == NULL,
- "Node not found at position " << pos);
+ "Node not found at position " << pos);
}
@@ -338,7 +338,7 @@ const PhraseDictionaryNodeMemory &PhraseDictionaryFuzzyMatch::GetRootNode(long t
{
std::map<long, PhraseDictionaryNodeMemory>::const_iterator iter = m_collection.find(translationId);
UTIL_THROW_IF2(iter == m_collection.end(),
- "Couldn't find root node for input: " << translationId);
+ "Couldn't find root node for input: " << translationId);
return iter->second;
}
PhraseDictionaryNodeMemory &PhraseDictionaryFuzzyMatch::GetRootNode(const InputType &source)
@@ -346,7 +346,7 @@ PhraseDictionaryNodeMemory &PhraseDictionaryFuzzyMatch::GetRootNode(const InputT
long transId = source.GetTranslationId();
std::map<long, PhraseDictionaryNodeMemory>::iterator iter = m_collection.find(transId);
UTIL_THROW_IF2(iter == m_collection.end(),
- "Couldn't find root node for input: " << transId);
+ "Couldn't find root node for input: " << transId);
return iter->second;
}