summaryrefslogtreecommitdiff
path: root/decoder/decoder.h
blob: ae1b9bb021035699718c7037862fe4f7ecca2c37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef _DECODER_H_
#define _DECODER_H_

#include <iostream>
#include <string>
#include <vector>
#include <boost/shared_ptr.hpp>

struct Hypergraph;
struct DecoderImpl;
struct Decoder {
  Decoder(int argc, char** argv);
  Decoder(std::istream* config_file);
  bool Decode(const std::string& input);
  bool DecodeProduceHypergraph(const std::string& input, Hypergraph* hg);
  void SetWeights(const std::vector<double>& weights);
  ~Decoder();
 private:
  boost::shared_ptr<DecoderImpl> pimpl_;
};

#endif