From 4d653c9f1769855c3b8a835922b5ab56a92bd94b Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 13 Mar 2014 23:03:51 -0400 Subject: missing commit --- decoder/translator.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/decoder/translator.h b/decoder/translator.h index c0800e84..72b2f0b0 100644 --- a/decoder/translator.h +++ b/decoder/translator.h @@ -98,4 +98,20 @@ class RescoreTranslator : public Translator { boost::shared_ptr pimpl_; }; +class Tree2StringTranslatorImpl; +class Tree2StringTranslator : public Translator { + public: + Tree2StringTranslator(const boost::program_options::variables_map& conf); + virtual std::string GetDecoderType() const; + protected: + bool TranslateImpl(const std::string& src, + SentenceMetadata* smeta, + const std::vector& weights, + Hypergraph* minus_lm_forest); + void ProcessMarkupHintsImpl(const std::map& kv); + void SentenceCompleteImpl(); + private: + boost::shared_ptr pimpl_; +}; + #endif -- cgit v1.2.3