summaryrefslogtreecommitdiff
path: root/decoder/phrasebased_translator.h
blob: 10790d0d24ccfd6a328272f8d02e41ae30d69191 (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