diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-06 20:09:53 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-06 20:09:53 +0400 |
commit | 7a808a2edb5ce9304a2d6dd043188c64a1f23b46 (patch) | |
tree | c16f395ed454cdd52e6f423571d07fce87d93b20 /moses/PartialTranslOptColl.h | |
parent | 646cf93c1f8e1e72e0907d1c3c03e644cff51e2f (diff) |
push InpuutPath down into phrase dictionary for legacy methods
Diffstat (limited to 'moses/PartialTranslOptColl.h')
-rw-r--r-- | moses/PartialTranslOptColl.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/moses/PartialTranslOptColl.h b/moses/PartialTranslOptColl.h index 5a4e816de..2507891c7 100644 --- a/moses/PartialTranslOptColl.h +++ b/moses/PartialTranslOptColl.h @@ -46,13 +46,24 @@ class PartialTranslOptColl friend std::ostream& operator<<(std::ostream& out, const PartialTranslOptColl& possibleTranslation); protected: - std::vector<TranslationOption*> m_list; + typedef std::vector<TranslationOption*> Coll; + Coll m_list; float m_bestScore; /**< score of the best translation option */ float m_worstScore; /**< score of the worse translation option */ size_t m_maxSize; /**< maximum number of translation options allowed */ size_t m_totalPruned; /**< number of options pruned */ public: + typedef Coll::iterator iterator; + typedef Coll::const_iterator const_iterator; + + const_iterator begin() const { + return m_list.begin(); + } + const_iterator end() const { + return m_list.end(); + } + PartialTranslOptColl(); /** destructor, cleans out list */ |