diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-02-22 23:17:57 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-02-22 23:17:57 +0400 |
commit | 194adf81308b4b0d82c2710d3ea47a5882d1cdce (patch) | |
tree | dd0c3530e61883c62a3b31eb408a4aa408ee7954 /moses/DecodeStepTranslation.cpp | |
parent | 5e23eb502d94aae7829d40b220c8e760e506f432 (diff) |
change format for phrase model
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r-- | moses/DecodeStepTranslation.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/moses/DecodeStepTranslation.cpp b/moses/DecodeStepTranslation.cpp index 4ddc43ddc..1145dccd0 100644 --- a/moses/DecodeStepTranslation.cpp +++ b/moses/DecodeStepTranslation.cpp @@ -28,7 +28,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA namespace Moses { -DecodeStepTranslation::DecodeStepTranslation(const PhraseDictionaryFeature* pdf, const DecodeStep* prev) +DecodeStepTranslation::DecodeStepTranslation(const PhraseDictionary* pdf, const DecodeStep* prev) : DecodeStep(pdf, prev) { } @@ -64,7 +64,7 @@ void DecodeStepTranslation::Process(const TranslationSystem* system // normal trans step const WordsRange &sourceWordsRange = inputPartialTranslOpt.GetSourceWordsRange(); const PhraseDictionary* phraseDictionary = - decodeStep.GetPhraseDictionaryFeature()->GetDictionary(); ; + decodeStep.GetPhraseDictionaryFeature(); const size_t currSize = inputPartialTranslOpt.GetTargetPhrase().GetSize(); const size_t tableLimit = phraseDictionary->GetTableLimit(); @@ -97,7 +97,7 @@ void DecodeStepTranslation::ProcessInitialTranslation(const TranslationSystem* s ,PartialTranslOptColl &outputPartialTranslOptColl , size_t startPos, size_t endPos, bool adhereTableLimit) const { - const PhraseDictionary* phraseDictionary = GetPhraseDictionaryFeature()->GetDictionary(); + const PhraseDictionary* phraseDictionary = GetPhraseDictionaryFeature(); const size_t tableLimit = phraseDictionary->GetTableLimit(); const WordsRange wordsRange(startPos, endPos); |