diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-07 17:10:42 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-07 17:10:42 +0400 |
commit | 5eef91c0ea336576b47c5fc0e1de2502be3b65a2 (patch) | |
tree | 9772e289c57a58e70243d1c846e403a9cb85520d /moses/TargetPhraseCollection.h | |
parent | 71073868a891abd315ff0b1479967dc510dc848d (diff) |
get ready to delete source phrase from TargetPhrase class
Diffstat (limited to 'moses/TargetPhraseCollection.h')
-rw-r--r-- | moses/TargetPhraseCollection.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/moses/TargetPhraseCollection.h b/moses/TargetPhraseCollection.h index ef855a653..5717faf91 100644 --- a/moses/TargetPhraseCollection.h +++ b/moses/TargetPhraseCollection.h @@ -93,6 +93,24 @@ public: }; + +// LEGACY +// DO NOT USE. NOT LEGACY CODE +class TargetPhraseCollectionWithSourcePhrase : public TargetPhraseCollection +{ +protected: + //friend std::ostream& operator<<(std::ostream &, const TargetPhraseCollectionWithSourcePhrase &); + + // TODO boost::ptr_vector + std::vector<Phrase> m_sourcePhrases; + +public: + const std::vector<Phrase> &GetSourcePhrases() const { + return m_sourcePhrases; + } + +}; + } #endif |