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()
SearchStateArc
getState
in interface SearchStateArc
public int getBaseId()
public float getProbability()
SearchStateArc
getProbability
in interface SearchStateArc
public float getLanguageProbability()
SearchStateArc
getLanguageProbability
in interface SearchStateArc
public float getInsertionProbability()
SearchStateArc
getInsertionProbability
in interface SearchStateArc
public SearchStateArc[] getSuccessors()
SearchState
getSuccessors
in interface SearchState
public boolean isEmitting()
SearchState
isEmitting
in interface SearchState
true
if the state is an emitting statepublic boolean isFinal()
SearchState
isFinal
in interface SearchState
true
if the state is a final statepublic java.lang.String toPrettyString()
SearchState
toPrettyString
in interface SearchState
public java.lang.String getSignature()
SearchState
getSignature
in interface SearchState
public WordSequence getWordHistory()
SearchState
getWordHistory
in interface SearchState
public java.lang.Object getLexState()
SearchState
getLexState
in interface SearchState
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 boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object