diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-09-18 19:01:50 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-09-18 19:01:50 +0000 |
commit | 30ae08cb76a4a76490efeabeb5bc812fda3f6ab2 (patch) | |
tree | 33fa63f0e8b2f1a440b0d98a7ea190fd1b1be56f /decoder/decoder.h | |
parent | e8d58ad8d15346d2ac8f356e8f5ba1eb86c6c54c (diff) |
start refactoring of decoder
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@647 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/decoder.h')
-rw-r--r-- | decoder/decoder.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/decoder/decoder.h b/decoder/decoder.h new file mode 100644 index 00000000..ae1b9bb0 --- /dev/null +++ b/decoder/decoder.h @@ -0,0 +1,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 |