ZGen  0.2.0
a linearization system for natural language.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
none_decoder.h
Go to the documentation of this file.
1 #ifndef __ZGEN_SHIFTREDUCE_NONE_DECODER_H__
2 #define __ZGEN_SHIFTREDUCE_NONE_DECODER_H__
3 
4 #include "decoder.h"
5 
6 namespace ZGen {
7 namespace ShiftReduce {
8 
9 class NoneDecoder : public Decoder {
10 public:
11  NoneDecoder(const option_t& opts,
13  Model* model,
14  const Knowledge::PostagConstrain* constrain);
15 private:
21  void config_input(const dependency_t* input);
22 
29  void get_possible_actions(const StateItem& item);
30 };
31 
32 } // end for namespace ShiftReduce
33 } // end for namespace ZGen
34 
35 #endif // end for __ZGEN_SHIFTREDUCE_NONE_DECODER_H__
const option_t & opts
The options.
Definition: decoder.h:65
Definition: state.h:15
Definition: option.h:10
Definition: model.h:12
NoneDecoder(const option_t &opts, DecodeContext *ctx, Model *model, const Knowledge::PostagConstrain *constrain)
Definition: none_decoder.cc:8
DecodeContext * ctx
The decode context.
Definition: decoder.h:69
Definition: instance.h:18
Definition: postag_constrain.h:14
Definition: decoder.h:15
Used to maintain the memory cache used by the decoder.
Definition: decode_context.h:9
Definition: none_decoder.h:9
Model * model
The model.
Definition: decoder.h:67