summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2014-03-13 23:03:51 -0400
committerChris Dyer <redpony@gmail.com>2014-03-13 23:03:51 -0400
commit9da824304e9fee7b38d15186e7bcaf2278ed5368 (patch)
tree5fac53867e176e09f60bdf87ab54ac27da48a8e0 /decoder
parent153bbfee67450a0e294029739e0426cd3eb8b2e5 (diff)
missing commit
Diffstat (limited to 'decoder')
-rw-r--r--decoder/translator.h16
1 files changed, 16 insertions, 0 deletions
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<RescoreTranslatorImpl> 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<double>& weights,
+ Hypergraph* minus_lm_forest);
+ void ProcessMarkupHintsImpl(const std::map<std::string, std::string>& kv);
+ void SentenceCompleteImpl();
+ private:
+ boost::shared_ptr<Tree2StringTranslatorImpl> pimpl_;
+};
+
#endif