diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2013-06-11 03:05:12 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2013-06-11 03:05:12 +0400 |
commit | b4ad09333475bf52f771722aa7d7b93fcae05c17 (patch) | |
tree | 216277aa77d53da06ae0928b65711ce57d478ff9 /moses/FF/GlobalLexicalModel.cpp | |
parent | b7171148189ddb9a390dfcfcc1618db4f027f043 (diff) |
refactor parsing of feature functiona args
Diffstat (limited to 'moses/FF/GlobalLexicalModel.cpp')
-rw-r--r-- | moses/FF/GlobalLexicalModel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/FF/GlobalLexicalModel.cpp b/moses/FF/GlobalLexicalModel.cpp index 212528a30..29d995b8d 100644 --- a/moses/FF/GlobalLexicalModel.cpp +++ b/moses/FF/GlobalLexicalModel.cpp @@ -17,7 +17,7 @@ GlobalLexicalModel::GlobalLexicalModel(const std::string &line) size_t ind = 0; while (ind < m_args.size()) { vector<string> &args = m_args[ind]; - bool consumed = OverrideParameter(args[0], args[1]); + bool consumed = SetParameter(args[0], args[1]); if (consumed) { m_args.erase(m_args.begin() + ind); } else { @@ -33,7 +33,7 @@ GlobalLexicalModel::GlobalLexicalModel(const std::string &line) } -bool GlobalLexicalModel::OverrideParameter(const std::string& key, const std::string& value) +bool GlobalLexicalModel::SetParameter(const std::string& key, const std::string& value) { if (key == "file") { m_filePath = value; |