dasher
Class CSymbolAlphabet

java.lang.Object
  extended by dasher.CSymbolAlphabet

public class CSymbolAlphabet
extends java.lang.Object

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

m_iSize

protected int m_iSize
Size of this alphabet


m_SpaceSymbol

protected int m_SpaceSymbol
Index of the space symbol (needed to allow the language model to establish where words end)


AlphabetPointer

protected CAlphabet AlphabetPointer
Companion alphabet

Constructor Detail

CSymbolAlphabet

public CSymbolAlphabet(int iSize)
Creates a new Alphabet with a given size and a space symbol of -1.

Parameters:
iSize - Alphabet size
Method Detail

GetSize

public int GetSize()
Gets the size of this alphabet

Returns:
Size

SetSpaceSymbol

public void SetSpaceSymbol(int _SpaceSymbol)
Sets the index of the space symbol

Parameters:
_SpaceSymbol - Space symbol index

GetSpaceSymbol

public int GetSpaceSymbol()
Gets the index of the space symbol

Returns:
Space symbol index

SetAlphabetPointer

public void SetAlphabetPointer(CAlphabet _AlphabetPointer)
Sets our companion alphabet

Parameters:
_AlphabetPointer - New alphabet

GetAlphabetPointer

CAlphabet GetAlphabetPointer()
Gets our companion alphabet

Returns:
Companion alphabet