ZGen
0.2.0
a linearization system for natural language.
|
#include <deprel_alphabet.h>
Public Types | |
enum | PENN_REL_ID { NONE = 0, AMOD, DEP, NMOD, OBJ, P, PMOD, PRD, SBAR, SUB, VC, VMOD, kMaxIndexOfDependencyRelation } |
Public Member Functions | |
const char * | decode (int id) const |
int | encode (const char *name) const |
![]() | |
InmutableAlphabet () | |
Static Public Attributes | |
static const char * | PENN_REL_NAME [] |
|
virtual |
Get the dependency relation name for the index.
[in] | id | The encoded index. |
Implements ZGen::Engine::InmutableAlphabet.
|
virtual |
Get the index for the dependency relation name.
[in] | name | The name. |
Implements ZGen::Engine::InmutableAlphabet.
|
static |