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-05-28 14:38:18 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-05-28 14:38:18 +0400
commit036ea4ee296cbfbe40ae8a13ecb6f773a4cedb3c (patch)
treec085c36e153e5f42372e871f99998cfc4af0821b /moses/FF/PhraseLengthFeature.cpp
parent5104740d1a7031398feb4762857f885dba823d4b (diff)
delete sourcePhrase variable in TargetPhrase class
Diffstat (limited to 'moses/FF/PhraseLengthFeature.cpp')
-rw-r--r--moses/FF/PhraseLengthFeature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/FF/PhraseLengthFeature.cpp b/moses/FF/PhraseLengthFeature.cpp
index 152b6bce8..b9e8e9e1d 100644
--- a/moses/FF/PhraseLengthFeature.cpp
+++ b/moses/FF/PhraseLengthFeature.cpp
@@ -21,7 +21,7 @@ void PhraseLengthFeature::Evaluate(const Phrase &source
{
// get length of source and target phrase
size_t targetLength = targetPhrase.GetSize();
- size_t sourceLength = targetPhrase.GetSourcePhrase().GetSize();
+ size_t sourceLength = source.GetSize();
// create feature names
stringstream nameSource;