mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 11:25:40 +03:00
Parameter class cleanup
This commit is contained in:
parent
a2bb435a1a
commit
194b84eeec
@ -98,23 +98,8 @@ public:
|
||||
return m_setting.find( paramName ) != m_setting.end();
|
||||
}
|
||||
|
||||
const std::string GetFullName(std::string abbr) {
|
||||
return m_fullname[abbr];
|
||||
}
|
||||
|
||||
const std::string GetAbbreviation(std::string full) {
|
||||
return m_abbreviation[full];
|
||||
}
|
||||
const PARAM_VEC &GetParamShortName(const std::string ¶mName) {
|
||||
return GetParam(GetFullName(paramName));
|
||||
}
|
||||
|
||||
void OverwriteParam(const std::string ¶mName, PARAM_VEC values);
|
||||
|
||||
void OverwriteParamShortName(const std::string ¶mShortName, PARAM_VEC values) {
|
||||
OverwriteParam(GetFullName(paramShortName),values);
|
||||
}
|
||||
|
||||
std::vector<float> GetWeights(const std::string &name);
|
||||
std::map<std::string, std::vector<float> > GetAllWeights() const {
|
||||
return m_weights;
|
||||
|
Loading…
Reference in New Issue
Block a user