ZGen  0.2.0
a linearization system for natural language.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Attributes | List of all members
ZGen::Engine::ActionAlphabet Class Reference

#include <action_alphabet.h>

Inheritance diagram for ZGen::Engine::ActionAlphabet:
ZGen::Engine::InmutableAlphabet

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
 
- Public Member Functions inherited from ZGen::Engine::InmutableAlphabet
 InmutableAlphabet ()
 

Static Public Attributes

static const char * ACTION_NAME []
 

Member Enumeration Documentation

Enumerator
NONE 
LA 
RA 
SH 
kMaxIndexOfAction 

Member Function Documentation

const char * ZGen::Engine::ActionAlphabet::decode ( int  id) const
virtual

Get the action name for the index.

Parameters
[in]idThe encoded index.
Returns
const char* The name for the postag.

Implements ZGen::Engine::InmutableAlphabet.

int ZGen::Engine::ActionAlphabet::encode ( const char *  name) const
virtual

Get the index for the certain name.

Parameters
[in]nameThe name.
Returns
int The encoded index.

Implements ZGen::Engine::InmutableAlphabet.

Member Data Documentation

const char * ZGen::Engine::ActionAlphabet::ACTION_NAME
static
Initial value:
= {
"-NONE-", "LA", "RA", "SH",
}

The documentation for this class was generated from the following files: