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 13:52:12 +0400
committerHieu Hoang <hieuhoang@gmail.com>2013-07-05 13:52:12 +0400
commite073d22301f9aa739884b2929d8d82cc407457d9 (patch)
tree6a09e4af0678aa1bc90ffa6ecb4fde27fad911de /OnDiskPt
parenta60da7d4b7fd48729c0ee612f1a0206105aa649f (diff)
prefix subphrase optimization
Diffstat (limited to 'OnDiskPt')
-rw-r--r--OnDiskPt/OnDiskWrapper.cpp5
-rw-r--r--OnDiskPt/OnDiskWrapper.h5
2 files changed, 4 insertions, 6 deletions
diff --git a/OnDiskPt/OnDiskWrapper.cpp b/OnDiskPt/OnDiskWrapper.cpp
index 8f90862be..c02cc1be5 100644
--- a/OnDiskPt/OnDiskWrapper.cpp
+++ b/OnDiskPt/OnDiskWrapper.cpp
@@ -191,11 +191,6 @@ UINT64 OnDiskWrapper::GetMisc(const std::string &key) const
return iter->second;
}
-PhraseNode &OnDiskWrapper::GetRootSourceNode()
-{
- return *m_rootSourceNode;
-}
-
Word *OnDiskWrapper::ConvertFromMoses(Moses::FactorDirection /* direction */
, const std::vector<Moses::FactorType> &factorsVec
, const Moses::Word &origWord) const
diff --git a/OnDiskPt/OnDiskWrapper.h b/OnDiskPt/OnDiskWrapper.h
index 8b786d346..134007b97 100644
--- a/OnDiskPt/OnDiskWrapper.h
+++ b/OnDiskPt/OnDiskWrapper.h
@@ -95,7 +95,10 @@ public:
return 1;
}
- PhraseNode &GetRootSourceNode();
+ PhraseNode &GetRootSourceNode()
+ { return *m_rootSourceNode; }
+ const PhraseNode &GetRootSourceNode() const
+ { return *m_rootSourceNode; }
UINT64 GetMisc(const std::string &key) const;