public class PhoneWordSearchState extends PhoneNonEmittingSearchState implements WordSearchState
linguist, unit
Constructor and Description |
---|
PhoneWordSearchState(Unit unit,
AllphoneLinguist linguist,
float insertionProb,
float languageProb) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getOrder()
Returns the order of this particular state
|
Pronunciation |
getPronunciation()
Gets the word (as a pronunciation)
|
SearchStateArc[] |
getSuccessors()
Gets a successor to this search state
|
int |
hashCode() |
boolean |
isFinal()
Determines if this is a final state
|
boolean |
isWordStart()
Returns true if this WordSearchState indicates the start of a word.
|
getInsertionProbability, getLanguageProbability, getLexState, getProbability, getSignature, getState, getWordHistory, isEmitting, toPrettyString
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getLexState, getSignature, getWordHistory, isEmitting, toPrettyString
public PhoneWordSearchState(Unit unit, AllphoneLinguist linguist, float insertionProb, float languageProb)
public SearchStateArc[] getSuccessors()
SearchState
getSuccessors
in interface SearchState
getSuccessors
in class PhoneNonEmittingSearchState
public boolean isFinal()
SearchState
isFinal
in interface SearchState
isFinal
in class PhoneNonEmittingSearchState
true
if the state is a final statepublic Pronunciation getPronunciation()
WordSearchState
getPronunciation
in interface WordSearchState
public boolean isWordStart()
WordSearchState
isWordStart
in interface WordSearchState
public int getOrder()
SearchState
getOrder
in interface SearchState
getOrder
in class PhoneNonEmittingSearchState
public boolean equals(java.lang.Object obj)
equals
in class PhoneNonEmittingSearchState
public int hashCode()
hashCode
in class PhoneNonEmittingSearchState