|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.decoder.search.Token
edu.cmu.sphinx.research.parallel.ParallelToken
A Token for the within parallel stream sentence HMM states.
The getScore()
method returns the parallel stream score.
Field Summary |
Fields inherited from class edu.cmu.sphinx.decoder.search.Token |
COMPARATOR |
Constructor Summary | |
ParallelToken(ParallelToken predecessor,
SentenceHMMState state,
float featureScore,
float combinedScore,
int frameNumber)
Constructs a ParallelToken |
|
ParallelToken(ParallelToken predecessor,
SentenceHMMState state,
float featureScore,
float combinedScore,
int frameNumber,
int lastCombineFrame)
Constructs a ParallelToken |
|
ParallelToken(ParallelToken predecessor,
SentenceHMMState state,
float featureScore,
float combinedScore,
int frameNumber,
java.lang.String lastCombineStamp)
Constructs a ParallelToken |
|
ParallelToken(SentenceHMMState state,
FeatureStream featureStream,
int frameNumber)
Constructs a ParallelToken with no predecessors, i.e., this is the ParallelToken at the first state of the SentenceHMM. |
Method Summary | |
float |
getCombinedScore()
Returns the combined score of this ParallelToken. |
float |
getEta()
Returns the eta factor for the feature stream of this ParallelToken. |
float |
getFeatureScore()
Returns the feature score of this ParallelToken. |
FeatureStream |
getFeatureStream()
Returns the FeatureStream of this ParallelToken. |
java.lang.String |
getLastCombineStamp()
Returns the stamp used to identify the last score combination event. |
int |
getLastCombineTime()
Returns the last frame score combination takes place. |
java.lang.String |
getModelName()
Returns the name of the acoustic model. |
boolean |
isPruned()
Returns true if this ParallelToken has been pruned. |
void |
setCombinedScore(float combinedScore)
Sets the combined score of this ParallelToken. |
void |
setFeatureScore(float featureScore)
Sets the feature score of this ParallelToken. |
void |
setLastCombineStamp(java.lang.String stamp)
Sets the stamp used to identify the last score combination event. |
void |
setLastCombineTime(int frameNumber)
Sets the frame number at which score combination takes place. |
void |
setPruned(boolean pruned)
Sets this ParallelToken to be pruned. |
Methods inherited from class edu.cmu.sphinx.decoder.search.Token |
calculateScore, child, dumpTokenPath, dumpTokenPath, getAcousticScore, getAppObject, getData, getFrameNumber, getInsertionProbability, getLanguageScore, getLocation, getPredecessor, getScore, getSearchState, getWord, getWordPath, getWordPath, getWordPathNoFiller, getWordUnitPath, getWorkingScore, isEmitting, isFinal, isWord, normalizeScore, setAppObject, setLocation, setPredecessorClass, setScore, setWorkingScore, showCount, toString, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ParallelToken(ParallelToken predecessor, SentenceHMMState state, float featureScore, float combinedScore, int frameNumber)
predecessor
- the predecessor for this tokenstate
- the SentenceHMMState associated with this tokenfeatureScore
- the score for this feature streamcombinedScore
- the combinedScoreframeNumber
- the frame number associated with this tokenpublic ParallelToken(ParallelToken predecessor, SentenceHMMState state, float featureScore, float combinedScore, int frameNumber, int lastCombineFrame)
predecessor
- the predecessor for this tokenstate
- the SentenceHMMState associated with this tokenfeatureScore
- the score for this feature streamcombinedScore
- the combinedScoreframeNumber
- the frame number associated with this tokenlastCombineFrame
- the frame number at which score combination
last occurredpublic ParallelToken(ParallelToken predecessor, SentenceHMMState state, float featureScore, float combinedScore, int frameNumber, java.lang.String lastCombineStamp)
predecessor
- the predecessor for this tokenstate
- the SentenceHMMState associated with this tokenfeatureScore
- the score for this feature streamcombinedScore
- the combinedScoreframeNumber
- the frame number associated with this tokenlastCombineStamp
- the stamp used to identify the last
score combination eventpublic ParallelToken(SentenceHMMState state, FeatureStream featureStream, int frameNumber)
state
- the SentenceHMMState associated with this tokenfeatureStream
- the feature stream of this ParallelTokenframeNumber
- the frame number of this tokenMethod Detail |
public FeatureStream getFeatureStream()
public float getEta()
public float getCombinedScore()
public float getFeatureScore()
public java.lang.String getModelName()
public int getLastCombineTime()
public java.lang.String getLastCombineStamp()
public void setCombinedScore(float combinedScore)
combinedScore
- the new combined scorepublic void setFeatureScore(float featureScore)
featureScore
- the new feature scorepublic void setLastCombineTime(int frameNumber)
frameNumber
- the frame at which score combination last took
place.public void setLastCombineStamp(java.lang.String stamp)
stamp
- the stamp for identificationpublic boolean isPruned()
public void setPruned(boolean pruned)
pruned
- sets this ParallelToken to be pruned or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |