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/PhraseBoundaryFeature.cpp | |
parent | b7171148189ddb9a390dfcfcc1618db4f027f043 (diff) |
refactor parsing of feature functiona args
Diffstat (limited to 'moses/FF/PhraseBoundaryFeature.cpp')
-rw-r--r-- | moses/FF/PhraseBoundaryFeature.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moses/FF/PhraseBoundaryFeature.cpp b/moses/FF/PhraseBoundaryFeature.cpp index d14edeb9c..f7eaa29e4 100644 --- a/moses/FF/PhraseBoundaryFeature.cpp +++ b/moses/FF/PhraseBoundaryFeature.cpp @@ -23,7 +23,7 @@ PhraseBoundaryFeature::PhraseBoundaryFeature(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 { @@ -32,7 +32,7 @@ PhraseBoundaryFeature::PhraseBoundaryFeature(const std::string &line) } } -bool PhraseBoundaryFeature::OverrideParameter(const std::string& key, const std::string& value) +bool PhraseBoundaryFeature::SetParameter(const std::string& key, const std::string& value) { if (key == "source") { m_sourceFactors = Tokenize<FactorType>(value, ","); |