From 9dc75bfd8ad3092f08f7a6d2a6492323b7803e56 Mon Sep 17 00:00:00 2001 From: Ulrich Germann Date: Thu, 26 Mar 2015 18:25:54 +0000 Subject: Managers and feature functions now have access to the entire TranslationTask, not just the InputType. --- moses/ChartParser.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'moses/ChartParser.h') diff --git a/moses/ChartParser.h b/moses/ChartParser.h index e438cf8ad..372a05f60 100644 --- a/moses/ChartParser.h +++ b/moses/ChartParser.h @@ -1,3 +1,4 @@ +// -*- c++ -*- // $Id$ // vim:tabstop=2 /*********************************************************************** @@ -42,8 +43,9 @@ class DecodeGraph; class ChartParserUnknown { + ttaskwptr m_ttask; public: - ChartParserUnknown(); + ChartParserUnknown(ttasksptr const& ttask); ~ChartParserUnknown(); void Process(const Word &sourceWord, const WordsRange &range, ChartParserCallback &to); @@ -59,8 +61,9 @@ private: class ChartParser { + ttaskwptr m_ttask; public: - ChartParser(const InputType &source, ChartCellCollectionBase &cells); + ChartParser(ttasksptr const& ttask, ChartCellCollectionBase &cells); ~ChartParser(); void Create(const WordsRange &range, ChartParserCallback &to); -- cgit v1.2.3