diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-06 18:07:03 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-06 18:07:03 +0400 |
commit | 646cf93c1f8e1e72e0907d1c3c03e644cff51e2f (patch) | |
tree | a39f359b18ecfa17d13370b2b84e64d52ca9d34c /moses/DecodeStepTranslation.cpp | |
parent | 1753fdf6b121dbee46210ca1fe85f6a204920f84 (diff) |
push InpuutPath down into phrase dictionary for legacy methods
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r-- | moses/DecodeStepTranslation.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/moses/DecodeStepTranslation.cpp b/moses/DecodeStepTranslation.cpp index d585e138c..3ce531684 100644 --- a/moses/DecodeStepTranslation.cpp +++ b/moses/DecodeStepTranslation.cpp @@ -155,18 +155,16 @@ void DecodeStepTranslation::Process(const TranslationOption &inputPartialTranslO } } - -void DecodeStepTranslation::ProcessInitialTranslationLegacy( +void DecodeStepTranslation::ProcessInitialTranslation( const InputType &source ,PartialTranslOptColl &outputPartialTranslOptColl , size_t startPos, size_t endPos, bool adhereTableLimit - , const InputPathList &inputPathList) const + , const TargetPhraseCollection *phraseColl) const { const PhraseDictionary* phraseDictionary = GetPhraseDictionaryFeature(); const size_t tableLimit = phraseDictionary->GetTableLimit(); const WordsRange wordsRange(startPos, endPos); - const TargetPhraseCollection *phraseColl = phraseDictionary->GetTargetPhraseCollection(source,wordsRange); if (phraseColl != NULL) { IFVERBOSE(3) { @@ -191,16 +189,17 @@ void DecodeStepTranslation::ProcessInitialTranslationLegacy( } } -void DecodeStepTranslation::ProcessInitialTranslation( +void DecodeStepTranslation::ProcessInitialTranslationLegacy( const InputType &source ,PartialTranslOptColl &outputPartialTranslOptColl , size_t startPos, size_t endPos, bool adhereTableLimit - , const TargetPhraseCollection *phraseColl) const + , const InputPathList &inputPathList) const { const PhraseDictionary* phraseDictionary = GetPhraseDictionaryFeature(); const size_t tableLimit = phraseDictionary->GetTableLimit(); const WordsRange wordsRange(startPos, endPos); + const TargetPhraseCollection *phraseColl = phraseDictionary->GetTargetPhraseCollection(source,wordsRange); if (phraseColl != NULL) { IFVERBOSE(3) { @@ -225,6 +224,7 @@ void DecodeStepTranslation::ProcessInitialTranslation( } } + } |