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-02-22 23:17:57 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-02-22 23:17:57 +0400
commit194adf81308b4b0d82c2710d3ea47a5882d1cdce (patch)
treedd0c3530e61883c62a3b31eb408a4aa408ee7954 /moses/DecodeStepTranslation.cpp
parent5e23eb502d94aae7829d40b220c8e760e506f432 (diff)
change format for phrase model
Diffstat (limited to 'moses/DecodeStepTranslation.cpp')
-rw-r--r--moses/DecodeStepTranslation.cpp6
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);