summaryrefslogtreecommitdiff
path: root/decoder/phrasebased_translator.h
blob: e5e3f8a27ca04768bbfa3e784601dae034da6231 (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 TranslateImpl(const std::string& input,
                 SentenceMetadata* smeta,
                 const std::vector<double>& weights,
                 Hypergraph* minus_lm_forest);
 private:
  boost::shared_ptr<PhraseBasedTranslatorImpl> pimpl_;
};

#endif