From 4d47dbd7da0434de67ac619392d516c678e1f2ca Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Thu, 18 Feb 2010 17:06:59 -0500 Subject: add generative word alignment model and primitive EM trainer. Model 1 and HMM are supported, without NULL source words --- decoder/lexalign.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 decoder/lexalign.h (limited to 'decoder/lexalign.h') diff --git a/decoder/lexalign.h b/decoder/lexalign.h new file mode 100644 index 00000000..30c89c57 --- /dev/null +++ b/decoder/lexalign.h @@ -0,0 +1,18 @@ +#ifndef _LEXALIGN_H_ +#define _LEXALIGN_H_ + +#include "translator.h" +#include "lattice.h" + +struct LexicalAlignImpl; +struct LexicalAlign : public Translator { + LexicalAlign(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