diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-20 16:06:03 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-06-20 16:06:03 +0400 |
commit | 24d2edd790126badfa8cf30cb5a73aa8467cfb7c (patch) | |
tree | 3dfc9f08776ebc1d3e9c0a26b23c94f2fe97637f /moses/FF/DistortionScoreProducer.cpp | |
parent | dc33fa3d3dc40eeb41acaec8046aba624894e5ae (diff) |
redo parsing of feature function parameters
Diffstat (limited to 'moses/FF/DistortionScoreProducer.cpp')
-rw-r--r-- | moses/FF/DistortionScoreProducer.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/moses/FF/DistortionScoreProducer.cpp b/moses/FF/DistortionScoreProducer.cpp index c44d204bf..67a1185cb 100644 --- a/moses/FF/DistortionScoreProducer.cpp +++ b/moses/FF/DistortionScoreProducer.cpp @@ -23,16 +23,7 @@ struct DistortionState_traditional : public FFState { DistortionScoreProducer::DistortionScoreProducer(const std::string &line) : StatefulFeatureFunction("Distortion", 1, line) { - size_t ind = 0; - while (ind < m_args.size()) { - vector<string> &args = m_args[ind]; - bool consumed = SetParameter(args[0], args[1]); - if (consumed) { - m_args.erase(m_args.begin() + ind); - } else { - ++ind; - } - } + ReadParameters(); } const FFState* DistortionScoreProducer::EmptyHypothesisState(const InputType &input) const |