ZGen  0.2.0
a linearization system for natural language.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ZGen::ShiftReduce::FullDecoder Class Reference

#include <full_decoder.h>

Inheritance diagram for ZGen::ShiftReduce::FullDecoder:
ZGen::ShiftReduce::Decoder

Public Member Functions

 FullDecoder (const option_t &opts, DecodeContext *ctx, Model *model, const Knowledge::PostagConstrain *constrain)
 
- Public Member Functions inherited from ZGen::ShiftReduce::Decoder
 Decoder (const option_t &opts, DecodeContext *ctx, Model *model, const Knowledge::PostagConstrain *constrain)
 
 ~Decoder ()
 
decode_result_t decode (const dependency_t *input, const action_sequence_t &gold_actions)
 

Additional Inherited Members

- Public Types inherited from ZGen::ShiftReduce::Decoder
typedef std::pair< const
StateItem *, const StateItem * > 
decode_result_t
 
- Protected Member Functions inherited from ZGen::ShiftReduce::Decoder
void get_possible_shift_actions (const StateItem &item, int index, word_t word, postag_t postag)
 
- Protected Attributes inherited from ZGen::ShiftReduce::Decoder
const option_topts
 The options. More...
 
Modelmodel
 The model. More...
 
DecodeContextctx
 The decode context. More...
 
action_sequence_t possible_actions
 The cached possible actions. More...
 
packed_score_t packed_score
 The cached packed score for transition. More...
 
scored_transition_t candidate_transitions [kMaxBeamSize]
 The candidate state tuple: (from state, action, score) More...
 
const Knowledge::PostagConstrainconstraint
 The postag constraints. More...
 

Constructor & Destructor Documentation

ZGen::ShiftReduce::FullDecoder::FullDecoder ( const option_t opts,
DecodeContext ctx,
Model model,
const Knowledge::PostagConstrain constrain 
)

The documentation for this class was generated from the following files: