#ifndef _DECODER_H_ #define _DECODER_H_ #include #include #include #include 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& weights); ~Decoder(); private: boost::shared_ptr pimpl_; }; #endif