diff --git a/moses/LexicalReordering.cpp b/moses/LexicalReordering.cpp index b32b96b0d..c80eb7795 100644 --- a/moses/LexicalReordering.cpp +++ b/moses/LexicalReordering.cpp @@ -13,7 +13,7 @@ LexicalReordering::LexicalReordering(std::vector& f_factors, const LexicalReorderingConfiguration& configuration, const std::string &filePath, const std::vector& weights) - : StatefulFeatureFunction("LexicalReordering_" + configuration.GetModelString(), + : StatefulFeatureFunction("LexicalReordering", configuration.GetNumScoreComponents()), m_configuration(configuration) { diff --git a/moses/Parameter.cpp b/moses/Parameter.cpp index 07d4e7df3..ad5cbed65 100644 --- a/moses/Parameter.cpp +++ b/moses/Parameter.cpp @@ -374,9 +374,17 @@ void Parameter::ConvertWeightArgs() ConvertWeightArgs("weight-l", "LM"); ConvertWeightArgs("weight-slm", "SyntacticLM"); ConvertWeightArgs("weight-u", "UnknownWordPenalty"); - ConvertWeightArgs("weight-lex", "GlobalLexicalReordering"); ConvertWeightArgs("weight-generation", "Generation"); ConvertWeightArgs("weight-lr", "LexicalReordering"); + ConvertWeightArgs("weight-lr", "BleuScoreFeature"); + ConvertWeightArgs("weight-glm", "GlobalLexicalModel"); + ConvertWeightArgs("weight-wt", "WordTranslationFeature"); + ConvertWeightArgs("weight-pp", "PhrasePairFeature"); + ConvertWeightArgs("weight-pb", "PhraseBoundaryFeature"); + + ConvertWeightArgs("weight-e", "WordDeletion"); // TODO Can't find real name + ConvertWeightArgs("weight-dlm", "DiscriminativeLM"); // TODO Can't find real name + ConvertWeightArgs("weight-lex", "GlobalLexicalReordering"); // TODO Can't find real name // distortion / lex distortion PARAM_VEC &newWeights = m_setting["weight"]; diff --git a/moses/PhraseBoundaryFeature.cpp b/moses/PhraseBoundaryFeature.cpp index 3d2c2708a..31d19757d 100644 --- a/moses/PhraseBoundaryFeature.cpp +++ b/moses/PhraseBoundaryFeature.cpp @@ -17,7 +17,7 @@ int PhraseBoundaryState::Compare(const FFState& other) const PhraseBoundaryFeature::PhraseBoundaryFeature (const FactorList& sourceFactors, const FactorList& targetFactors) : - StatefulFeatureFunction("pb", ScoreProducer::unlimited), m_sourceFactors(sourceFactors), + StatefulFeatureFunction("PhraseBoundaryFeature", ScoreProducer::unlimited), m_sourceFactors(sourceFactors), m_targetFactors(targetFactors), m_sparseProducerWeight(1) { } diff --git a/moses/PhrasePairFeature.h b/moses/PhrasePairFeature.h index 0c0a3db0f..b9aaabd17 100644 --- a/moses/PhrasePairFeature.h +++ b/moses/PhrasePairFeature.h @@ -33,7 +33,7 @@ class PhrasePairFeature: public StatelessFeatureFunction { public: PhrasePairFeature (FactorType sourceFactorId, FactorType targetFactorId, bool simple, bool sourceContext, bool ignorePunctuation, bool domainTrigger) : - StatelessFeatureFunction("pp", ScoreProducer::unlimited), + StatelessFeatureFunction("PhrasePairFeature", ScoreProducer::unlimited), m_sourceFactorId(sourceFactorId), m_targetFactorId(targetFactorId), m_unrestricted(true), diff --git a/moses/WordTranslationFeature.h b/moses/WordTranslationFeature.h index f5260a52c..3e7399789 100644 --- a/moses/WordTranslationFeature.h +++ b/moses/WordTranslationFeature.h @@ -39,7 +39,7 @@ public: WordTranslationFeature(FactorType factorTypeSource, FactorType factorTypeTarget, bool simple, bool sourceContext, bool targetContext, bool ignorePunctuation, bool domainTrigger): - StatelessFeatureFunction("wt", ScoreProducer::unlimited), + StatelessFeatureFunction("WordTranslationFeature", ScoreProducer::unlimited), m_factorTypeSource(factorTypeSource), m_factorTypeTarget(factorTypeTarget), m_unrestricted(true),