diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-11-20 18:02:05 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-11-20 18:02:05 +0300 |
commit | c346a4b1987466cf8f2b78efe4db2b9fe73e4531 (patch) | |
tree | 58043d4df6a87f311ba85840e9ab623fc470b527 /moses/Parameter.h | |
parent | 9c4eb7f24990db67844a1e0f9cf3cb3bc4b1b108 (diff) |
Add rt library
Diffstat (limited to 'moses/Parameter.h')
-rw-r--r-- | moses/Parameter.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/moses/Parameter.h b/moses/Parameter.h index 5b2c1cc60..ccfa15e6b 100644 --- a/moses/Parameter.h +++ b/moses/Parameter.h @@ -90,9 +90,8 @@ public: void Explain(); /** return a vector of strings holding the whitespace-delimited values on the ini-file line corresponding to the given parameter name */ - const PARAM_VEC &GetParam(const std::string ¶mName) { - return m_setting[paramName]; - } + const PARAM_VEC &GetParam(const std::string ¶mName) const; + /** check if parameter is defined (either in moses.ini or as switch) */ bool isParamSpecified(const std::string ¶mName) const { return m_setting.find( paramName ) != m_setting.end(); |