public class PhoneHmmSearchState extends java.lang.Object implements SearchState, SearchStateArc, ScoreProvider
| Constructor and Description |
|---|
PhoneHmmSearchState(HMMState hmmState,
AllphoneLinguist linguist,
float insertionProb,
float languageProb) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getBaseId() |
float[] |
getComponentScore(Data feature)
Provides component score
|
float |
getInsertionProbability()
Gets the insertion 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
|
float |
getScore(Data data)
Provides the score
|
java.lang.String |
getSignature()
Returns a unique signature for this state
|
SearchState |
getState()
Gets a successor to this search state
|
SearchStateArc[] |
getSuccessors()
Gets a successor to this search state
|
WordSequence |
getWordHistory()
Gets the word history for this state
|
int |
hashCode() |
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
|
public PhoneHmmSearchState(HMMState hmmState, AllphoneLinguist linguist, float insertionProb, float languageProb)
public SearchState getState()
SearchStateArcgetState in interface SearchStateArcpublic int getBaseId()
public float getProbability()
SearchStateArcgetProbability in interface SearchStateArcpublic float getLanguageProbability()
SearchStateArcgetLanguageProbability in interface SearchStateArcpublic float getInsertionProbability()
SearchStateArcgetInsertionProbability in interface SearchStateArcpublic SearchStateArc[] getSuccessors()
SearchStategetSuccessors in interface SearchStatepublic boolean isEmitting()
SearchStateisEmitting in interface SearchStatetrue if the state is an emitting statepublic boolean isFinal()
SearchStateisFinal in interface SearchStatetrue if the state is a final statepublic java.lang.String toPrettyString()
SearchStatetoPrettyString in interface SearchStatepublic java.lang.String getSignature()
SearchStategetSignature in interface SearchStatepublic WordSequence getWordHistory()
SearchStategetWordHistory in interface SearchStatepublic java.lang.Object getLexState()
SearchStategetLexState in interface SearchStatepublic int getOrder()
SearchStategetOrder in interface SearchStatepublic float getScore(Data data)
ScoreProvidergetScore in interface ScoreProviderdata - data to scorepublic float[] getComponentScore(Data feature)
ScoreProvidergetComponentScore in interface ScoreProviderfeature - data to scorepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object