From dd78bf0951471576ead77b2bad2c870cae72173f Mon Sep 17 00:00:00 2001 From: Hieu Hoang Date: Mon, 2 Dec 2013 15:31:15 +0000 Subject: [PATCH] add phrase-table wrapper for Nadir's transliteration code --- moses/TranslationModel/TransliterationPhraseDictionary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moses/TranslationModel/TransliterationPhraseDictionary.cpp b/moses/TranslationModel/TransliterationPhraseDictionary.cpp index b1c0d97f8..bdc5b3ec7 100644 --- a/moses/TranslationModel/TransliterationPhraseDictionary.cpp +++ b/moses/TranslationModel/TransliterationPhraseDictionary.cpp @@ -32,9 +32,9 @@ void TransliterationPhraseDictionary::GetTargetPhraseCollectionBatch(const Input InputPath::TargetPhrases::const_iterator iter; for (iter = inputPath.GetTargetPhrases().begin(); iter != inputPath.GetTargetPhrases().end(); ++iter) { const std::pair &temp = iter->second; - const TargetPhraseCollection *tpColl = temp.first; + const TargetPhraseCollection *tpCollPrev = temp.first; - if (tpColl && tpColl->GetSize()) { + if (tpCollPrev && tpCollPrev->GetSize()) { // already have translation from another pt. Don't transliterate break; }