diff options
author | Phil Williams <philip.williams@mac.com> | 2014-03-17 17:09:54 +0400 |
---|---|---|
committer | Phil Williams <philip.williams@mac.com> | 2014-03-17 17:09:54 +0400 |
commit | 69f92bd6e491a08c7fbdf45adc74708da7f11e35 (patch) | |
tree | 27833d9a041418f3b93d7937ef3057c5cf87fe67 /moses/ChartParser.h | |
parent | ea5577c59870e246692aa155ef1b9e13a739f9cd (diff) |
moses_chart: implement -output-unknowns option.
Diffstat (limited to 'moses/ChartParser.h')
-rw-r--r-- | moses/ChartParser.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/ChartParser.h b/moses/ChartParser.h index 55a2c85fd..acd30179d 100644 --- a/moses/ChartParser.h +++ b/moses/ChartParser.h @@ -48,6 +48,8 @@ public: void Process(const Word &sourceWord, const WordsRange &range, ChartParserCallback &to); + const std::vector<Phrase*> &GetUnknownSources() const { return m_unksrcs; } + private: std::vector<Phrase*> m_unksrcs; std::list<TargetPhraseCollection*> m_cacheTargetPhraseCollection; @@ -67,6 +69,7 @@ public: size_t GetSize() const; const InputPath &GetInputPath(size_t startPos, size_t endPos) const; const InputPath &GetInputPath(WordsRange &range) const; + const std::vector<Phrase*> &GetUnknownSources() const { return m_unknown.GetUnknownSources(); } private: ChartParserUnknown m_unknown; |