ZGen
0.2.0
a linearization system for natural language.
|
#include <postag_alphabet.h>
Public Types | |
enum | PENN_POS_ID { NONE = 0, BEGIN, END, DOLLAR, L_QUOTE, R_QUOTE, L_BRACKET, R_BRACKET, COMMA, PERIOD, COLUM, SHARP, CC, CD, DT, EX, FW, IN, JJ, JJR, JJS, LS, MD, NN, NNP, NNPS, NNS, NP, PDT, POS, PRP, PRP_DOLLAR, RB, RBR, RBS, RP, SYM, TO, UH, VB, VBD, VBG, VBN, VBP, VBZ, WDT, WP, WP_DOLLAR, WRB, kMaxIndexOfPosTag } |
Public Member Functions | |
const char * | decode (int id) const |
int | encode (const char *name) const |
![]() | |
InmutableAlphabet () | |
Static Public Attributes | |
static const char * | PENN_POS_NAME [] |
|
virtual |
Get the Postag name for the index.
[in] | id | The encoded index. |
Implements ZGen::Engine::InmutableAlphabet.
|
virtual |
Get the index for the certain name.
[in] | name | The name. |
Implements ZGen::Engine::InmutableAlphabet.
|
static |