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:
authorHieu Hoang <hieuhoang@gmail.com>2014-11-20 18:02:05 +0300
committerHieu Hoang <hieuhoang@gmail.com>2014-11-20 18:02:05 +0300
commitc346a4b1987466cf8f2b78efe4db2b9fe73e4531 (patch)
tree58043d4df6a87f311ba85840e9ab623fc470b527 /moses/Parameter.h
parent9c4eb7f24990db67844a1e0f9cf3cb3bc4b1b108 (diff)
Add rt library
Diffstat (limited to 'moses/Parameter.h')
-rw-r--r--moses/Parameter.h5
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 &paramName) {
- return m_setting[paramName];
- }
+ const PARAM_VEC &GetParam(const std::string &paramName) const;
+
/** check if parameter is defined (either in moses.ini or as switch) */
bool isParamSpecified(const std::string &paramName) const {
return m_setting.find( paramName ) != m_setting.end();