mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-26 13:23:25 +03:00
beautify
This commit is contained in:
parent
f81d7a446f
commit
cb46bd3c00
@ -558,8 +558,7 @@ bool StaticData::LoadData(Parameter *parameter)
|
||||
|
||||
if (m_parameter->GetParam("placeholder-factor").size() > 0) {
|
||||
m_placeHolderFactor = Scan<FactorType>(m_parameter->GetParam("placeholder-factor")[0]);
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
m_placeHolderFactor = NOT_FOUND;
|
||||
}
|
||||
|
||||
|
@ -770,8 +770,9 @@ public:
|
||||
|
||||
void OverrideFeatures();
|
||||
|
||||
FactorType GetPlaceholderFactor() const
|
||||
{ return m_placeHolderFactor; }
|
||||
FactorType GetPlaceholderFactor() const {
|
||||
return m_placeHolderFactor;
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -246,8 +246,7 @@ inline std::vector<std::string> TokenizeFirstOnly(const std::string& str,
|
||||
// Found a token, add it to the vector.
|
||||
tokens.push_back(str.substr(0, pos));
|
||||
tokens.push_back(str.substr(pos + 1, str.size() - pos - 1));
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
tokens.push_back(str);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user