ZGen
0.2.0
a linearization system for natural language.
|
#include <action_alphabet.h>
Public Types | |
enum | ACTION_ID { NONE = 0, LA, RA, SH, kMaxIndexOfAction } |
Public Member Functions | |
const char * | decode (int id) const |
int | encode (const char *name) const |
![]() | |
InmutableAlphabet () | |
Static Public Attributes | |
static const char * | ACTION_NAME [] |
|
virtual |
Get the action 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 |