mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-12-27 05:55:02 +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) {
|
if (m_parameter->GetParam("placeholder-factor").size() > 0) {
|
||||||
m_placeHolderFactor = Scan<FactorType>(m_parameter->GetParam("placeholder-factor")[0]);
|
m_placeHolderFactor = Scan<FactorType>(m_parameter->GetParam("placeholder-factor")[0]);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
m_placeHolderFactor = NOT_FOUND;
|
m_placeHolderFactor = NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -770,8 +770,9 @@ public:
|
|||||||
|
|
||||||
void OverrideFeatures();
|
void OverrideFeatures();
|
||||||
|
|
||||||
FactorType GetPlaceholderFactor() const
|
FactorType GetPlaceholderFactor() const {
|
||||||
{ return m_placeHolderFactor; }
|
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.
|
// Found a token, add it to the vector.
|
||||||
tokens.push_back(str.substr(0, pos));
|
tokens.push_back(str.substr(0, pos));
|
||||||
tokens.push_back(str.substr(pos + 1, str.size() - pos - 1));
|
tokens.push_back(str.substr(pos + 1, str.size() - pos - 1));
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
tokens.push_back(str);
|
tokens.push_back(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user