public class LexTreeLinguist.LexTreeHMMState extends java.lang.Object implements HMMSearchState, ScoreProvider
Modifier and Type | Method and Description |
---|---|
protected SearchStateArc |
createWordStateArc(edu.cmu.sphinx.linguist.lextree.WordNode wordNode,
edu.cmu.sphinx.linguist.lextree.HMMNode lastUnit,
edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeState previous)
Creates a word search state for the given word node
|
boolean |
equals(java.lang.Object o)
Determines if the given object is equal to this object
|
float[] |
getComponentScore(Data feature)
Provides component score
|
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
|
edu.cmu.sphinx.linguist.lextree.Node |
getLexState()
Returns the lex tree state
|
protected edu.cmu.sphinx.linguist.lextree.Node |
getNode()
Gets the hmm tree node representing the unit
|
int |
getOrder()
Returns the order of this particular state
|
float |
getProbability()
Gets the composite probability of entering this state
|
float |
getScore(Data data)
Provides the score
|
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()
Retrieves the set of successors for this state
|
protected SearchStateArc[] |
getSuccessors(edu.cmu.sphinx.linguist.lextree.Node theNode)
Returns the list of successors to 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
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getLexState, getWordHistory, isFinal, toPrettyString
public java.lang.String getSignature()
getSignature
in interface SearchState
public HMMState getHMMState()
getHMMState
in interface HMMSearchState
public int hashCode()
public boolean equals(java.lang.Object o)
o
- the object to testtrue
if the object is equal to thispublic float getLanguageProbability()
getLanguageProbability
in interface SearchStateArc
public float getInsertionProbability()
getInsertionProbability
in interface SearchStateArc
public SearchStateArc[] getSuccessors()
getSuccessors
in interface SearchState
public boolean isEmitting()
isEmitting
in interface SearchState
true
if this is an emitting state.public java.lang.String toString()
public int getOrder()
SearchState
getOrder
in interface SearchState
public float getScore(Data data)
ScoreProvider
getScore
in interface ScoreProvider
data
- data to scorepublic float[] getComponentScore(Data feature)
ScoreProvider
getComponentScore
in interface ScoreProvider
feature
- data to scorepublic float getSmearTerm()
public float getSmearProb()
public SearchState getState()
getState
in interface SearchStateArc
public float getProbability()
getProbability
in interface SearchStateArc
public boolean isFinal()
isFinal
in interface SearchState
true
if this is an final state.protected edu.cmu.sphinx.linguist.lextree.Node getNode()
public WordSequence getWordHistory()
getWordHistory
in interface SearchState
public edu.cmu.sphinx.linguist.lextree.Node getLexState()
SearchState
getLexState
in interface SearchState
protected SearchStateArc[] getSuccessors(edu.cmu.sphinx.linguist.lextree.Node theNode)
theNode
- node to get successorsprotected SearchStateArc createWordStateArc(edu.cmu.sphinx.linguist.lextree.WordNode wordNode, edu.cmu.sphinx.linguist.lextree.HMMNode lastUnit, edu.cmu.sphinx.linguist.lextree.LexTreeLinguist.LexTreeState previous)
wordNode
- the wordNodelastUnit
- last unit of the wordprevious
- previous statepublic java.lang.String toPrettyString()
toPrettyString
in interface SearchState