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 12:59:50 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-07-05 12:59:50 +0400
commita60da7d4b7fd48729c0ee612f1a0206105aa649f (patch)
tree8558251c830e3c7b357107df059b51c2ab2fcf17
parent574d186708f2a4b0aa31a32725e8f13a63b2e09c (diff)
prefix subphrase optimization
-rw-r--r--moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp10
-rw-r--r--moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp b/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp
index 4f2f61777..e75ae1a4c 100644
--- a/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp
+++ b/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.cpp
@@ -94,7 +94,7 @@ void PhraseDictionaryOnDisk::InitializeForInput(InputType const& source)
m_implementation.reset(obj);
}
-
+/*
void PhraseDictionaryOnDisk::SetTargetPhraseFromPtMatrix(const std::vector<InputLatticeNode*> &phraseDictionaryQueue) const
{
// UTIL_THROW(util::Exception, "SetTargetPhraseFromPtMatrix() not implemented");
@@ -103,14 +103,14 @@ void PhraseDictionaryOnDisk::SetTargetPhraseFromPtMatrix(const std::vector<Input
const Phrase &phrase = node.GetPhrase();
const InputLatticeNode *prevNode = node.GetPrevNode();
- const PhraseDictionaryNodeMemory *prevPtNode = NULL;
+ const OnDiskPt::PhraseNode *prevPtNode = NULL;
if (prevNode) {
- prevPtNode = static_cast<const PhraseDictionaryNodeMemory*>(prevNode->GetPtNode(*this));
+ prevPtNode = static_cast<const OnDiskPt::PhraseNode*>(prevNode->GetPtNode(*this));
} else {
// Starting subphrase.
assert(phrase.GetSize() == 1);
- prevPtNode = &GetRootNode();
+ prevPtNode = &GetImplementation().GetRootSourceNode();
}
if (prevPtNode) {
@@ -127,6 +127,6 @@ void PhraseDictionaryOnDisk::SetTargetPhraseFromPtMatrix(const std::vector<Input
}
}
}
-
+*/
}
diff --git a/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.h b/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.h
index 73beb497d..95a48c714 100644
--- a/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.h
+++ b/moses/TranslationModel/RuleTable/PhraseDictionaryOnDisk.h
@@ -77,7 +77,7 @@ public:
const ChartCellCollectionBase &);
virtual void InitializeForInput(InputType const& source);
- void SetTargetPhraseFromPtMatrix(const std::vector<InputLatticeNode*> &phraseDictionaryQueue) const;
+ //void SetTargetPhraseFromPtMatrix(const std::vector<InputLatticeNode*> &phraseDictionaryQueue) const;
};