From 5ec67ea71b96e7baeb464d473004fd0b0365d794 Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Tue, 6 Aug 2013 14:43:02 +0100 Subject: [PATCH] mark a function as legacy --- moses/DecodeStepTranslation.cpp | 2 +- moses/DecodeStepTranslation.h | 2 +- moses/TranslationOptionCollectionConfusionNet.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/moses/DecodeStepTranslation.cpp b/moses/DecodeStepTranslation.cpp index b48daf7e5..de01b5f4b 100644 --- a/moses/DecodeStepTranslation.cpp +++ b/moses/DecodeStepTranslation.cpp @@ -156,7 +156,7 @@ void DecodeStepTranslation::Process(const TranslationOption &inputPartialTranslO } -void DecodeStepTranslation::ProcessInitialTranslation( +void DecodeStepTranslation::ProcessInitialTranslationLegacy( const InputType &source ,PartialTranslOptColl &outputPartialTranslOptColl , size_t startPos, size_t endPos, bool adhereTableLimit) const diff --git a/moses/DecodeStepTranslation.h b/moses/DecodeStepTranslation.h index 81ea197a1..5bacae21d 100644 --- a/moses/DecodeStepTranslation.h +++ b/moses/DecodeStepTranslation.h @@ -59,7 +59,7 @@ public: /*! initialize list of partial translation options by applying the first translation step * Ideally, this function should be in DecodeStepTranslation class */ - void ProcessInitialTranslation(const InputType &source + void ProcessInitialTranslationLegacy(const InputType &source , PartialTranslOptColl &outputPartialTranslOptColl , size_t startPos, size_t endPos, bool adhereTableLimit) const; diff --git a/moses/TranslationOptionCollectionConfusionNet.cpp b/moses/TranslationOptionCollectionConfusionNet.cpp index 8e21e2f1a..0c55882cd 100644 --- a/moses/TranslationOptionCollectionConfusionNet.cpp +++ b/moses/TranslationOptionCollectionConfusionNet.cpp @@ -199,7 +199,7 @@ void TranslationOptionCollectionConfusionNet::CreateTranslationOptionsForRangeLe list ::const_iterator iterStep = decodeGraph.begin(); const DecodeStep &decodeStep = **iterStep; - static_cast(decodeStep).ProcessInitialTranslation + static_cast(decodeStep).ProcessInitialTranslationLegacy (m_source, *oldPtoc , startPos, endPos, adhereTableLimit );