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:
authorUlrich Germann <Ulrich.Germann@gmail.com>2015-03-26 21:25:54 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2015-03-26 21:25:54 +0300
commit9dc75bfd8ad3092f08f7a6d2a6492323b7803e56 (patch)
treef13405e11bce5001e6718ae0089fdcf85d961c98 /moses/ChartParser.h
parent4410e9225a5bd495fc6d097b206290beb59f4839 (diff)
Managers and feature functions now have access to the entire TranslationTask, not just the InputType.
Diffstat (limited to 'moses/ChartParser.h')
-rw-r--r--moses/ChartParser.h7
1 files changed, 5 insertions, 2 deletions
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);