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 <hieuhoang@gmail.com>2013-07-05 14:24:27 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-07-05 14:24:27 +0400
commit6a060abe74b521df9eb06d532bde1daa94d16bde (patch)
tree70a6cccc19c2e831111ed89968f97ab7c6051a13
parent7114b164c78b248157d29f5da3383459b7f8af07 (diff)
a little bit more towards using prefix subphrase to optimize translation rule lookup
-rw-r--r--moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp6
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;
+
}
}
}