summaryrefslogtreecommitdiff
path: root/decoder/lextrans.h
blob: 9920f79c420223e017df0fe68940dd9b7579a929 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _LEXTrans_H_
#define _LEXTrans_H_

#include "translator.h"
#include "lattice.h"

struct LexicalTransImpl;
struct LexicalTrans : public Translator {
  LexicalTrans(const boost::program_options::variables_map& conf);
  bool Translate(const std::string& input,
                 SentenceMetadata* smeta,
                 const std::vector<double>& weights,
                 Hypergraph* forest);
 private:
  boost::shared_ptr<LexicalTransImpl> pimpl_;
};

#endif