add phrase-table wrapper for Nadir's transliteration code

This commit is contained in:
Hieu Hoang 2013-12-02 15:31:15 +00:00
parent 04cbbc48cf
commit dd78bf0951

View File

@ -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<const TargetPhraseCollection*, const void*> &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;
}