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

#include "translator.h"

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

#endif