diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 23:36:32 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 23:36:32 +0400 |
commit | efc765ddff5c97c99aa314de0a0d9af4944a3688 (patch) | |
tree | d616dc8533400f30308acc22005f49a2e1ca2a2a /moses/FF/PhraseBoundaryFeature.cpp | |
parent | c50cc18f36dd121b67da958d136b4a68d5d42830 (diff) |
implement Evaluate(inputpath, input) for chart translation options. Plumbing for lattice input
Diffstat (limited to 'moses/FF/PhraseBoundaryFeature.cpp')
-rw-r--r-- | moses/FF/PhraseBoundaryFeature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/moses/FF/PhraseBoundaryFeature.cpp b/moses/FF/PhraseBoundaryFeature.cpp index df2fea16d..72a37aa57 100644 --- a/moses/FF/PhraseBoundaryFeature.cpp +++ b/moses/FF/PhraseBoundaryFeature.cpp @@ -78,7 +78,7 @@ FFState* PhraseBoundaryFeature::Evaluate const Word* rightTargetWord = &(targetPhrase.GetWord(0)); AddFeatures(leftTargetWord,rightTargetWord,m_targetFactors,"tgt",scores); - const Phrase& sourcePhrase = cur_hypo.GetTranslationOption().GetSourcePhrase(); + const Phrase& sourcePhrase = cur_hypo.GetTranslationOption().GetInputPath().GetPhrase(); const Word* leftSourceWord = pbState->GetSourceWord(); const Word* rightSourceWord = &(sourcePhrase.GetWord(0)); AddFeatures(leftSourceWord,rightSourceWord,m_sourceFactors,"src",scores); |