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
path: root/moses
diff options
context:
space:
mode:
authorEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-03-15 16:16:54 +0400
committerEva Hasler <ehasler@saxnot.inf.ed.ac.uk>2012-03-15 16:16:54 +0400
commit1783ae522e28650ba7208aa3f0a765524e7cc2d2 (patch)
tree015f77ae6b672e33f455744597ce34705993f910 /moses
parent1651b552f8005b1b5bfcedfbd9f5cc7a9800de8f (diff)
fix bug in recent commit
Diffstat (limited to 'moses')
-rw-r--r--moses/src/PhraseBoundaryFeature.cpp2
-rw-r--r--moses/src/PhrasePairFeature.cpp3
-rw-r--r--moses/src/WordTranslationFeature.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/moses/src/PhraseBoundaryFeature.cpp b/moses/src/PhraseBoundaryFeature.cpp
index 78e937979..461fcbe57 100644
--- a/moses/src/PhraseBoundaryFeature.cpp
+++ b/moses/src/PhraseBoundaryFeature.cpp
@@ -18,7 +18,7 @@ int PhraseBoundaryState::Compare(const FFState& other) const
PhraseBoundaryFeature::PhraseBoundaryFeature
(const FactorList& sourceFactors, const FactorList& targetFactors) :
StatefulFeatureFunction("pb", ScoreProducer::unlimited), m_sourceFactors(sourceFactors),
- m_targetFactors(targetFactors)
+ m_targetFactors(targetFactors), m_sparseProducerWeight(1)
{
}
diff --git a/moses/src/PhrasePairFeature.cpp b/moses/src/PhrasePairFeature.cpp
index baae22b68..34121a26c 100644
--- a/moses/src/PhrasePairFeature.cpp
+++ b/moses/src/PhrasePairFeature.cpp
@@ -12,7 +12,8 @@ PhrasePairFeature::PhrasePairFeature
(FactorType sourceFactorId, FactorType targetFactorId) :
StatelessFeatureFunction("pp", ScoreProducer::unlimited),
m_sourceFactorId(sourceFactorId),
- m_targetFactorId(targetFactorId) {
+ m_targetFactorId(targetFactorId),
+ m_sparseProducerWeight(1) {
std::cerr << "Creating phrase pair feature.. " << endl;
}
diff --git a/moses/src/WordTranslationFeature.h b/moses/src/WordTranslationFeature.h
index 19f6cb60a..adb455ea7 100644
--- a/moses/src/WordTranslationFeature.h
+++ b/moses/src/WordTranslationFeature.h
@@ -48,7 +48,7 @@ public:
WordTranslationFeature(FactorType factorTypeSource, FactorType factorTypeTarget,
bool simple, bool sourceContext, bool targetContext):
// StatelessFeatureFunction("wt", ScoreProducer::unlimited),
- StatefulFeatureFunction("wt", ScoreProducer::unlimited),
+ StatefulFeatureFunction("wt", ScoreProducer::unlimited), m_sparseProducerWeight(1),
m_factorTypeSource(factorTypeSource),
m_factorTypeTarget(factorTypeTarget),
m_simple(simple),