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 <hieu@hoang.co.uk>2013-06-20 16:06:03 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-06-20 16:06:03 +0400
commit24d2edd790126badfa8cf30cb5a73aa8467cfb7c (patch)
tree3dfc9f08776ebc1d3e9c0a26b23c94f2fe97637f /moses/FF/PhraseLengthFeature.cpp
parentdc33fa3d3dc40eeb41acaec8046aba624894e5ae (diff)
redo parsing of feature function parameters
Diffstat (limited to 'moses/FF/PhraseLengthFeature.cpp')
-rw-r--r--moses/FF/PhraseLengthFeature.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/moses/FF/PhraseLengthFeature.cpp b/moses/FF/PhraseLengthFeature.cpp
index d419941e5..fb69a2de3 100644
--- a/moses/FF/PhraseLengthFeature.cpp
+++ b/moses/FF/PhraseLengthFeature.cpp
@@ -12,16 +12,7 @@ using namespace std;
PhraseLengthFeature::PhraseLengthFeature(const std::string &line)
:StatelessFeatureFunction("PhraseLengthFeature", 0, 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();
}
void PhraseLengthFeature::Evaluate(const Phrase &source