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 <hieu@hoang.co.uk>2013-08-07 17:10:42 +0400
committerHieu Hoang <hieu@hoang.co.uk>2013-08-07 17:10:42 +0400
commit5eef91c0ea336576b47c5fc0e1de2502be3b65a2 (patch)
tree9772e289c57a58e70243d1c846e403a9cb85520d /moses/TargetPhraseCollection.h
parent71073868a891abd315ff0b1479967dc510dc848d (diff)
get ready to delete source phrase from TargetPhrase class
Diffstat (limited to 'moses/TargetPhraseCollection.h')
-rw-r--r--moses/TargetPhraseCollection.h18
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