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

#include <alphabet.h>

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

Public Member Functions

 InmutableAlphabet ()
 
virtual const char * decode (int id) const =0
 
virtual int encode (const char *name) const =0
 

Constructor & Destructor Documentation

ZGen::Engine::InmutableAlphabet::InmutableAlphabet ( )
inline

Member Function Documentation

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

Get the name of index from the alphabet.

Parameters
[in]idThe encoded index.
Returns
const char* The name string.

Implemented in ZGen::Engine::ActionAlphabet, ZGen::Engine::PennTreebankDeprelAlphabet, and ZGen::Engine::PennTreebankPostagAlphabet.

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

Get the index of the name from the alphabet.

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

Implemented in ZGen::Engine::ActionAlphabet, ZGen::Engine::PennTreebankDeprelAlphabet, and ZGen::Engine::PennTreebankPostagAlphabet.


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