public class LexTreeLinguist.LexTreeWordState extends java.lang.Object 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
|
boolean |
equals(java.lang.Object o)
Determines if the given object is equal to this object
|
float |
getInsertionProbability()
Gets the insertion 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
|
Pronunciation |
getPronunciation()
Gets the word pronunciation for 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
|
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
|
boolean |
isWordStart()
Returns true if this LexTreeWordState indicates the start of a word.
|
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, waitgetLexState, getWordHistory, isEmitting, toPrettyStringpublic Pronunciation getPronunciation()
getPronunciation in interface WordSearchStatepublic boolean isFinal()
isFinal in interface SearchStatetrue if this is an final state.public int hashCode()
public java.lang.String getSignature()
getSignature in interface SearchStatepublic boolean equals(java.lang.Object o)
o - the object to testtrue if the object is equal to thispublic float getLanguageProbability()
getLanguageProbability in interface SearchStateArcpublic SearchStateArc[] getSuccessors()
getSuccessors in interface SearchStatepublic int getOrder()
SearchStategetOrder in interface SearchStatepublic boolean isWordStart()
isWordStart in interface WordSearchStatepublic float getSmearTerm()
public float getSmearProb()
public SearchState getState()
getState in interface SearchStateArcpublic float getProbability()
getProbability in interface SearchStateArcpublic float getInsertionProbability()
getInsertionProbability in interface SearchStateArcpublic boolean isEmitting()
isEmitting in interface SearchStatetrue if this is an emitting state.protected edu.cmu.sphinx.linguist.lextree.Node getNode()
public WordSequence getWordHistory()
getWordHistory in interface SearchStatepublic edu.cmu.sphinx.linguist.lextree.Node getLexState()
SearchStategetLexState in interface SearchStateprotected 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.Objectpublic java.lang.String toPrettyString()
toPrettyString in interface SearchState