summaryrefslogtreecommitdiff
path: root/decoder/decoder.h
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/decoder.h')
-rw-r--r--decoder/decoder.h22
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