From 2a18010e255810cc2b5bcbe688f3db8eabda23ca Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Sun, 6 Dec 2009 22:25:25 -0500 Subject: add compound splitting logic and features (Dyer 2008, NAACL) --- src/csplit.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/csplit.h (limited to 'src/csplit.h') diff --git a/src/csplit.h b/src/csplit.h new file mode 100644 index 00000000..5911af77 --- /dev/null +++ b/src/csplit.h @@ -0,0 +1,18 @@ +#ifndef _CSPLIT_H_ +#define _CSPLIT_H_ + +#include "translator.h" +#include "lattice.h" + +struct CompoundSplitImpl; +struct CompoundSplit : public Translator { + CompoundSplit(const boost::program_options::variables_map& conf); + bool Translate(const std::string& input, + SentenceMetadata* smeta, + const std::vector& weights, + Hypergraph* forest); + private: + boost::shared_ptr pimpl_; +}; + +#endif -- cgit v1.2.3