diff options
Diffstat (limited to 'moses/BaseManager.h')
-rw-r--r-- | moses/BaseManager.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/moses/BaseManager.h b/moses/BaseManager.h index 862cc1113..fe88d6412 100644 --- a/moses/BaseManager.h +++ b/moses/BaseManager.h @@ -46,6 +46,9 @@ protected: } public: + virtual ~BaseManager() + {} + //! the input sentence being decoded const InputType& GetSource() const { return m_source; @@ -53,6 +56,7 @@ public: virtual void Decode() = 0; // outputs + virtual void OutputBest(OutputCollector *collector) const = 0; virtual void OutputNBest(OutputCollector *collector) const = 0; virtual void OutputLatticeSamples(OutputCollector *collector) const = 0; virtual void OutputAlignment(OutputCollector *collector) const = 0; @@ -60,9 +64,14 @@ public: virtual void OutputDetailedTreeFragmentsTranslationReport(OutputCollector *collector) const = 0; virtual void OutputWordGraph(OutputCollector *collector) const = 0; virtual void OutputSearchGraph(OutputCollector *collector) const = 0; + virtual void OutputUnknowns(OutputCollector *collector) const = 0; virtual void OutputSearchGraphSLF() const = 0; virtual void OutputSearchGraphHypergraph() const = 0; + /*** + * to be called after processing a sentence + */ + virtual void CalcDecoderStatistics() const = 0; }; |