diff options
author | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-03 20:27:21 +0300 |
---|---|---|
committer | Hieu Hoang <hieuhoang@gmail.com> | 2014-12-03 20:27:21 +0300 |
commit | 2b3202dbc86031ef3460d7afdc85b8ad6fda4d1a (patch) | |
tree | 492baa256b7c8a7a1f6a4164eb7e3387c5b7c3ea | |
parent | f4a716f676e5a10ca1e98b29024d9c799b8193bf (diff) |
make Phil's Manager class inherit from BaseManager too
-rw-r--r-- | moses/Syntax/S2T/Manager-inl.h | 16 | ||||
-rw-r--r-- | moses/Syntax/S2T/Manager.h | 8 |
2 files changed, 23 insertions, 1 deletions
diff --git a/moses/Syntax/S2T/Manager-inl.h b/moses/Syntax/S2T/Manager-inl.h index a08c320f0..6ac0612b7 100644 --- a/moses/Syntax/S2T/Manager-inl.h +++ b/moses/Syntax/S2T/Manager-inl.h @@ -382,6 +382,22 @@ void Manager<Parser>::RecombineAndSort(const std::vector<SHyperedge*> &buffer, std::sort(stack.begin(), stack.end(), SVertexStackContentOrderer()); } +template<typename Parser> +void Manager<Parser>::OutputNBest(OutputCollector *collector) const +{} + +template<typename Parser> +void Manager<Parser>::OutputLatticeSamples(OutputCollector *collector) const +{} + +template<typename Parser> +void Manager<Parser>::OutputAlignment(OutputCollector *collector) const +{} + +template<typename Parser> +void Manager<Parser>::OutputDetailedTranslationReport(OutputCollector *collector) const +{} + } // S2T } // Syntax } // Moses diff --git a/moses/Syntax/S2T/Manager.h b/moses/Syntax/S2T/Manager.h index f6bea903d..7aa57a8a0 100644 --- a/moses/Syntax/S2T/Manager.h +++ b/moses/Syntax/S2T/Manager.h @@ -5,6 +5,7 @@ #include <boost/shared_ptr.hpp> #include "moses/InputType.h" +#include "moses/BaseManager.h" #include "moses/Syntax/KBestExtractor.h" #include "moses/Syntax/SVertexStack.h" @@ -25,7 +26,7 @@ namespace S2T { template<typename Parser> -class Manager +class Manager : public BaseManager { public: Manager(const InputType &); @@ -42,6 +43,11 @@ class Manager const std::set<Word> &GetUnknownWords() const { return m_oovs; } + void OutputNBest(OutputCollector *collector) const; + void OutputLatticeSamples(OutputCollector *collector) const; + void OutputAlignment(OutputCollector *collector) const; + void OutputDetailedTranslationReport(OutputCollector *collector) const; + private: void FindOovs(const PChart &, std::set<Word> &, std::size_t); |