|
ZGen
0.2.0
a linearization system for natural language.
|
#include <partial_decoder.h>
Public Member Functions | |
| PartialDecoder (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_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::PartialDecoder::PartialDecoder | ( | const option_t & | opts, |
| DecodeContext * | ctx, | ||
| Model * | model, | ||
| const Knowledge::PostagConstrain * | constrain | ||
| ) |
1.8.6