diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2013-07-05 13:52:12 +0400 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2013-07-05 13:52:12 +0400 |
commit | e073d22301f9aa739884b2929d8d82cc407457d9 (patch) | |
tree | 6a09e4af0678aa1bc90ffa6ecb4fde27fad911de /OnDiskPt | |
parent | a60da7d4b7fd48729c0ee612f1a0206105aa649f (diff) |
prefix subphrase optimization
Diffstat (limited to 'OnDiskPt')
-rw-r--r-- | OnDiskPt/OnDiskWrapper.cpp | 5 | ||||
-rw-r--r-- | OnDiskPt/OnDiskWrapper.h | 5 |
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; |