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

java.lang.Object
  extended byedu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeState
      extended byedu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeHMMState
All Implemented Interfaces:
HMMSearchState, SearchState, SearchStateArc
Direct Known Subclasses:
LexTreeLinguist.LexTreeNonEmittingHMMState
Enclosing class:
LexTreeLinguist

public class LexTreeLinguist.LexTreeHMMState
extends edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeState
implements HMMSearchState

Represents a HMM state 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 acoustic probability of entering this state
 HMMState getHMMState()
          returns the hmm state associated with this state
 float getInsertionProbability()
          Gets the language 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 ID for this state
 float getSmearProb()
           
 float getSmearTerm()
           
 SearchState getState()
          Gets a successor to this search state
 SearchStateArc[] getSuccessors()
          Retreives the set of successors for 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, getWordHistory, isFinal, toPrettyString
 

Method Detail

getSignature

public java.lang.String getSignature()
Gets the ID for this state

Specified by:
getSignature in interface SearchState
Returns:
the ID

getHMMState

public HMMState getHMMState()
returns the hmm state associated with this state

Specified by:
getHMMState in interface HMMSearchState
Returns:
the hmm state

hashCode

public int hashCode()
Generate a hashcode for an object

Returns:
the hashcode

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

getAcousticProbability

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

Specified by:
getAcousticProbability 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

getInsertionProbability

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

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

getSuccessors

public SearchStateArc[] getSuccessors()
Retreives the set of successors for this state

Specified by:
getSuccessors in interface SearchState
Returns:
the list of sucessor states

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.

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

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

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