|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdasher.CSymbolAlphabet
public class CSymbolAlphabet
A symbol alphabet is a companion to an Alphabet which contains the minimal information needed to perform language modelling across said alphabet.
Essentially all it knows about is the size of the alphabet and the indices of the space symbol.
Typically, a CAlphabet will be formed first, and a SymbolAlphabet produced afterwards prior to creating a LanguageModel.
| Field Summary | |
|---|---|
protected CAlphabet |
AlphabetPointer
Companion alphabet |
protected int |
m_iSize
Size of this alphabet |
protected int |
m_SpaceSymbol
Index of the space symbol (needed to allow the language model to establish where words end) |
| Constructor Summary | |
|---|---|
CSymbolAlphabet(int iSize)
Creates a new Alphabet with a given size and a space symbol of -1. |
|
| Method Summary | |
|---|---|
(package private) CAlphabet |
GetAlphabetPointer()
Gets our companion alphabet |
int |
GetSize()
Gets the size of this alphabet |
int |
GetSpaceSymbol()
Gets the index of the space symbol |
void |
SetAlphabetPointer(CAlphabet _AlphabetPointer)
Sets our companion alphabet |
void |
SetSpaceSymbol(int _SpaceSymbol)
Sets the index of the space symbol |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int m_iSize
protected int m_SpaceSymbol
protected CAlphabet AlphabetPointer
| Constructor Detail |
|---|
public CSymbolAlphabet(int iSize)
iSize - Alphabet size| Method Detail |
|---|
public int GetSize()
public void SetSpaceSymbol(int _SpaceSymbol)
_SpaceSymbol - Space symbol indexpublic int GetSpaceSymbol()
public void SetAlphabetPointer(CAlphabet _AlphabetPointer)
_AlphabetPointer - New alphabetCAlphabet GetAlphabetPointer()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||