diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-07-05 14:24:27 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-07-05 14:24:27 +0400 |
commit | 6a060abe74b521df9eb06d532bde1daa94d16bde (patch) | |
tree | 70a6cccc19c2e831111ed89968f97ab7c6051a13 | |
parent | 7114b164c78b248157d29f5da3383459b7f8af07 (diff) |
a little bit more towards using prefix subphrase to optimize translation rule lookup
-rw-r--r-- | moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp b/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp index eed7e454e..fb9a37773 100644 --- a/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp +++ b/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp @@ -132,9 +132,15 @@ void PhraseDictionaryOnDisk::SetTargetPhraseFromPtMatrix(const std::vector<Input = targetPhrasesOnDisk->ConvertToMoses(m_input, m_output, *this, weightT, vocab); node.SetTargetPhrases(*this, targetPhrases, ptNode); + + delete targetPhrasesOnDisk; + } else { node.SetTargetPhrases(*this, NULL, NULL); } + + delete lastWordOnDisk; + } } } |