diff options
author | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 23:01:13 +0400 |
---|---|---|
committer | Hieu Hoang <hieu@hoang.co.uk> | 2013-08-13 23:01:13 +0400 |
commit | c50cc18f36dd121b67da958d136b4a68d5d42830 (patch) | |
tree | 3433e90a11fc0798405d6480daf6010613521440 /moses/TranslationOptionCollection.h | |
parent | 563cdc527a814fd6cf7ffae0c7a5fd86999e0a7a (diff) |
use input path for unknown word processing in phrase-based
Diffstat (limited to 'moses/TranslationOptionCollection.h')
-rw-r--r-- | moses/TranslationOptionCollection.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/moses/TranslationOptionCollection.h b/moses/TranslationOptionCollection.h index 1285e5caa..d8e839a50 100644 --- a/moses/TranslationOptionCollection.h +++ b/moses/TranslationOptionCollection.h @@ -68,7 +68,7 @@ protected: SquareMatrix m_futureScore; /*< matrix of future costs for contiguous parts (span) of the input */ const size_t m_maxNoTransOptPerCoverage; /*< maximum number of translation options per input span */ const float m_translationOptionThreshold; /*< threshold for translation options with regard to best option for input span */ - std::vector<Phrase*> m_unksrcs; + std::vector<const Phrase*> m_unksrcs; InputPathList m_phraseDictionaryQueue; TranslationOptionCollection(InputType const& src, size_t maxNoTransOptPerCoverage, @@ -120,7 +120,8 @@ public: } //!List of unknowns (OOVs) - const std::vector<Phrase*>& GetUnknownSources() const; + const std::vector<const Phrase*>& GetUnknownSources() const + { return m_unksrcs; } //! get length/size of source input size_t GetSize() const { |