edu.cmu.sphinx.linguist.lextree
Class LexTreeLinguist.LexTreeEndUnitState

java.lang.Object
  extended byedu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeState
      extended byedu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeEndUnitState
All Implemented Interfaces:
SearchState, SearchStateArc, UnitSearchState
Enclosing class:
LexTreeLinguist

public class LexTreeLinguist.LexTreeEndUnitState
extends edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeState
implements UnitSearchState

Represents a unit in the search space


Method Summary
 boolean equals(java.lang.Object o)
          Determines if the given object is equal to this object
 float getAcousticProbability()
          Gets the language probability of entering this state
 float getInsertionProbability()
          Gets the acoustic probability of entering this state
 float getLanguageProbability()
          Gets the language probability of entering this state
 java.lang.Object getLexState()
          Returns the lex tree state
 int getOrder()
          Returns the order of this particular state
 float getProbability()
          Gets the composite probability of entering this state
 java.lang.String getSignature()
          Gets the unique signature for this state.
 float getSmearProb()
           
 float getSmearTerm()
           
 SearchState getState()
          Gets a successor to this search state
 SearchStateArc[] getSuccessors()
          Returns the list of successors to this state
 Unit getUnit()
          Returns the base unit assciated with this state
 WordSequence getWordHistory()
          Returns the word sequence for this state
 int hashCode()
          Generate a hashcode for an object
 boolean isEmitting()
          Determines if this is an emitting state
 boolean isFinal()
          Determines if this is a final state
 java.lang.String toPrettyString()
          Returns a pretty version of the string representation for this object
 java.lang.String toString()
          Returns the string representation of this object
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.cmu.sphinx.linguist.SearchState
getLexState, getSignature, getWordHistory, isEmitting, isFinal, toPrettyString
 

Method Detail

getUnit

public Unit getUnit()
Returns the base unit assciated with this state

Specified by:
getUnit in interface UnitSearchState
Returns:
the base unit

hashCode

public int hashCode()
Generate a hashcode for an object

Returns:
the hashcode

getInsertionProbability

public float getInsertionProbability()
Gets the acoustic probability of entering this state

Specified by:
getInsertionProbability in interface SearchStateArc
Returns:
the log probability

getLanguageProbability

public float getLanguageProbability()
Gets the language probability of entering this state

Specified by:
getLanguageProbability in interface SearchStateArc
Returns:
the log probability

equals

public boolean equals(java.lang.Object o)
Determines if the given object is equal to this object

Parameters:
o - the object to test
Returns:
true if the object is equal to this

getSuccessors

public SearchStateArc[] getSuccessors()
Returns the list of successors to this state

Specified by:
getSuccessors in interface SearchState
Returns:
a list of SearchState objects

toString

public java.lang.String toString()
Description copied from class: edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeState
Returns the string representation of this object

Returns:
the string representation

getOrder

public int getOrder()
Description copied from interface: SearchState
Returns the order of this particular state

Specified by:
getOrder in interface SearchState

getSignature

public java.lang.String getSignature()
Gets the unique signature for this state. The signature building code is slow and should only be used for non-time-critical tasks such as plotting states.

Specified by:
getSignature in interface SearchState
Returns:
the signature

getSmearTerm

public float getSmearTerm()

getSmearProb

public float getSmearProb()

getState

public SearchState getState()
Gets a successor to this search state

Specified by:
getState in interface SearchStateArc
Returns:
the sucessor state

getProbability

public float getProbability()
Gets the composite probability of entering this state

Specified by:
getProbability in interface SearchStateArc
Returns:
the log probability

getAcousticProbability

public float getAcousticProbability()
Gets the language probability of entering this state

Specified by:
getAcousticProbability in interface SearchStateArc
Returns:
the log probability

isEmitting

public boolean isEmitting()
Determines if this is an emitting state

Specified by:
isEmitting in interface SearchState
Returns:
true if this is an emitting state.

isFinal

public boolean isFinal()
Determines if this is a final state

Specified by:
isFinal in interface SearchState
Returns:
true if this is an final state.

getWordHistory

public WordSequence getWordHistory()
Returns the word sequence for this state

Specified by:
getWordHistory in interface SearchState
Returns:
the word sequence

getLexState

public java.lang.Object getLexState()
Description copied from interface: SearchState
Returns the lex tree state

Specified by:
getLexState in interface SearchState
Returns:
the lex tree state

toPrettyString

public java.lang.String toPrettyString()
Returns a pretty version of the string representation for this object

Specified by:
toPrettyString in interface SearchState
Returns:
a pretty string