ZGen
0.2.0
a linearization system for natural language.
|
#include <full_decoder.h>
Public Member Functions | |
FullDecoder (const option_t &opts, DecodeContext *ctx, Model *model, const Knowledge::PostagConstrain *constrain) | |
![]() | |
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 | |
![]() | |
typedef std::pair< const StateItem *, const StateItem * > | decode_result_t |
![]() | |
void | get_possible_shift_actions (const StateItem &item, int index, word_t word, postag_t postag) |
![]() | |
const option_t & | opts |
The options. More... | |
Model * | model |
The model. More... | |
DecodeContext * | ctx |
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::PostagConstrain * | constraint |
The postag constraints. More... | |
ZGen::ShiftReduce::FullDecoder::FullDecoder | ( | const option_t & | opts, |
DecodeContext * | ctx, | ||
Model * | model, | ||
const Knowledge::PostagConstrain * | constrain | ||
) |