diff options
author | MosesAdmin <moses-support-owner@mit.edu> | 2015-10-19 02:00:40 +0300 |
---|---|---|
committer | MosesAdmin <moses-support-owner@mit.edu> | 2015-10-19 02:00:40 +0300 |
commit | d757346b55cf497f7a6887b00c1a84402f33f374 (patch) | |
tree | 30a3b680d2557ee81028d5c8ceb14dbcb834c1d2 /OnDiskPt | |
parent | b8b3d2111a20c6f401291160a01db4bc03ce3676 (diff) |
daily automatic beautifier
Diffstat (limited to 'OnDiskPt')
-rw-r--r-- | OnDiskPt/PhraseNode.cpp | 2 | ||||
-rw-r--r-- | OnDiskPt/PhraseNode.h | 8 | ||||
-rw-r--r-- | OnDiskPt/TargetPhraseCollection.cpp | 6 | ||||
-rw-r--r-- | OnDiskPt/TargetPhraseCollection.h | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/OnDiskPt/PhraseNode.cpp b/OnDiskPt/PhraseNode.cpp index 74e01d457..b77e8d807 100644 --- a/OnDiskPt/PhraseNode.cpp +++ b/OnDiskPt/PhraseNode.cpp @@ -249,7 +249,7 @@ size_t PhraseNode::ReadChild(Word &wordFound, uint64_t &childFilePos, const char return memRead; } -TargetPhraseCollection::shared_ptr +TargetPhraseCollection::shared_ptr PhraseNode:: GetTargetPhraseCollection(size_t tableLimit, OnDiskWrapper &onDiskWrapper) const { diff --git a/OnDiskPt/PhraseNode.h b/OnDiskPt/PhraseNode.h index 39b9b3f21..1e3611d74 100644 --- a/OnDiskPt/PhraseNode.h +++ b/OnDiskPt/PhraseNode.h @@ -93,10 +93,10 @@ public: const PhraseNode *GetChild(const Word &wordSought, OnDiskWrapper &onDiskWrapper) const; - TargetPhraseCollection::shared_ptr - GetTargetPhraseCollection(size_t tableLimit, - OnDiskWrapper &onDiskWrapper) const; - + TargetPhraseCollection::shared_ptr + GetTargetPhraseCollection(size_t tableLimit, + OnDiskWrapper &onDiskWrapper) const; + void AddCounts(const std::vector<float> &counts) { m_counts = counts; } diff --git a/OnDiskPt/TargetPhraseCollection.cpp b/OnDiskPt/TargetPhraseCollection.cpp index a22c3633b..8d06af163 100644 --- a/OnDiskPt/TargetPhraseCollection.cpp +++ b/OnDiskPt/TargetPhraseCollection.cpp @@ -127,9 +127,9 @@ Moses::TargetPhraseCollection::shared_ptr TargetPhraseCollection::ConvertToMoses CollType::const_iterator iter; for (iter = m_coll.begin(); iter != m_coll.end(); ++iter) { const TargetPhrase &tp = **iter; - Moses::TargetPhrase *mosesPhrase - = tp.ConvertToMoses(inputFactors, outputFactors, vocab, - phraseDict, weightT, isSyntax); + Moses::TargetPhrase *mosesPhrase + = tp.ConvertToMoses(inputFactors, outputFactors, vocab, + phraseDict, weightT, isSyntax); /* // debugging output diff --git a/OnDiskPt/TargetPhraseCollection.h b/OnDiskPt/TargetPhraseCollection.h index 255c94054..1dd37fd4e 100644 --- a/OnDiskPt/TargetPhraseCollection.h +++ b/OnDiskPt/TargetPhraseCollection.h @@ -54,7 +54,7 @@ protected: public: typedef boost::shared_ptr<TargetPhraseCollection const> shared_const_ptr; typedef boost::shared_ptr<TargetPhraseCollection> shared_ptr; - + static size_t s_sortScoreInd; TargetPhraseCollection(); |