diff options
author | Hieu Hoang <fishandfrolick@gmail.com> | 2013-06-10 19:29:07 +0400 |
---|---|---|
committer | Hieu Hoang <fishandfrolick@gmail.com> | 2013-06-10 19:29:07 +0400 |
commit | 96d116dba09f4c29fbbfa1edd3d52a31a4b74b49 (patch) | |
tree | 14c82d72d0045215254f453aa3192d56d030ede6 /moses/TranslationModel/PhraseDictionary.cpp | |
parent | 14e676ab035382cf55bb6cd6023eca4070ce7de4 (diff) |
refactor parsing of feature functiona args
Diffstat (limited to 'moses/TranslationModel/PhraseDictionary.cpp')
-rw-r--r-- | moses/TranslationModel/PhraseDictionary.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/moses/TranslationModel/PhraseDictionary.cpp b/moses/TranslationModel/PhraseDictionary.cpp index f4984b0f0..22802f6b5 100644 --- a/moses/TranslationModel/PhraseDictionary.cpp +++ b/moses/TranslationModel/PhraseDictionary.cpp @@ -70,16 +70,17 @@ GetTargetPhraseCollection(InputType const& src,WordsRange const& range) const return GetTargetPhraseCollection(phrase); } -void PhraseDictionary::OverrideParameter(const std::string& key, const std::string& value) +bool PhraseDictionary::OverrideParameter(const std::string& key, const std::string& value) { if (key == "table-limit") { m_tableLimit = Scan<size_t>(value); } - else { - // call parent function, all the way to the top if necessary - DecodeFeature::OverrideParameter(key, value); + return DecodeFeature::OverrideParameter(key, value); } + + return true; + } } |