diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2016-10-03 15:41:12 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2016-10-03 15:43:41 +0300 |
commit | 8421a2618804b2257b3c8ac366400295e6c18c9d (patch) | |
tree | c5560ebc4774fe99604caa26989054426d3e6e05 /moses/TranslationModel | |
parent | b86cecf9d64c01a96f7a7b80fec7a6651d0d4725 (diff) |
return correct target phrases
Diffstat (limited to 'moses/TranslationModel')
-rw-r--r-- | moses/TranslationModel/CompactPT/PhraseDecoder.cpp | 3 | ||||
-rw-r--r-- | moses/TranslationModel/CompactPT/PhraseDictionaryCompact.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/moses/TranslationModel/CompactPT/PhraseDecoder.cpp b/moses/TranslationModel/CompactPT/PhraseDecoder.cpp index 10ef5f99c..1a1927e2b 100644 --- a/moses/TranslationModel/CompactPT/PhraseDecoder.cpp +++ b/moses/TranslationModel/CompactPT/PhraseDecoder.cpp @@ -219,10 +219,11 @@ TargetPhraseVectorPtr PhraseDecoder::CreateTargetPhraseCollection(const Phrase & // Retrieve source phrase identifier std::string sourcePhraseString = sourcePhrase.GetStringRep(*m_input); size_t sourcePhraseId = m_phraseDictionary.m_hash[MakeSourceKey(sourcePhraseString)]; + /* cerr << "sourcePhraseString=" << sourcePhraseString << " " << sourcePhraseId << endl; - + */ if(sourcePhraseId != m_phraseDictionary.m_hash.GetSize()) { // Retrieve compressed and encoded target phrase collection std::string encodedPhraseCollection; diff --git a/moses/TranslationModel/CompactPT/PhraseDictionaryCompact.cpp b/moses/TranslationModel/CompactPT/PhraseDictionaryCompact.cpp index a7c41cddf..d93613b8f 100644 --- a/moses/TranslationModel/CompactPT/PhraseDictionaryCompact.cpp +++ b/moses/TranslationModel/CompactPT/PhraseDictionaryCompact.cpp @@ -101,7 +101,7 @@ TargetPhraseCollection::shared_ptr PhraseDictionaryCompact:: GetTargetPhraseCollectionNonCacheLEGACY(const Phrase &sourcePhrase) const { - cerr << "sourcePhrase=" << sourcePhrase << endl; + //cerr << "sourcePhrase=" << sourcePhrase << endl; TargetPhraseCollection::shared_ptr ret; // There is no souch source phrase if source phrase is longer than longest |