public class LexTreeLinguist.LexTreeEndWordState extends LexTreeLinguist.LexTreeWordState implements WordSearchState
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
|
float |
getInsertionProbability()
Gets the insertion 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 |
getSmearProb() |
float |
getSmearTerm() |
SearchState |
getState()
Gets a successor to this search 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
|
boolean |
isEmitting()
Determines if this is an emitting 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
|
equals, getLanguageProbability, getPronunciation, getSignature, getSuccessors, hashCode, isFinal, isWordStart
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPronunciation, isWordStart
getLexState, getSignature, getSuccessors, getWordHistory, isEmitting, isFinal, toPrettyString
public int getOrder()
SearchState
getOrder
in interface SearchState
getOrder
in class LexTreeLinguist.LexTreeWordState
public float getSmearTerm()
public float getSmearProb()
public SearchState getState()
getState
in interface SearchStateArc
public float getProbability()
getProbability
in interface SearchStateArc
public float getInsertionProbability()
getInsertionProbability
in interface SearchStateArc
public boolean isEmitting()
isEmitting
in interface SearchState
true
if this is an emitting 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 toString()
toString
in class java.lang.Object
public java.lang.String toPrettyString()
toPrettyString
in interface SearchState