|
||||||||||
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.CombineToken
A token for the sentence HMM states that are not feature stream-specific.
The getScore()
method returns the combined score.
A combined token carries a parallel token for each feature stream,
so that scores pertaining to each stream can be propagated.
Field Summary |
Fields inherited from class edu.cmu.sphinx.decoder.search.Token |
COMPARATOR |
Constructor Summary | |
CombineToken(Token predecessor,
SentenceHMMState state,
int frameNumber)
Constructs a CombineToken |
Method Summary | |
void |
addAll(java.util.List tokenList)
Adds all the ParallelTokens in the given list into this CombineToken. |
ParallelToken |
addParallelToken(java.lang.Object key,
ParallelToken parallelToken)
Adds the parallel score of the given parallel stream. |
void |
clear()
Removes all the ParallelTokens from this CombineToken. |
float |
getCombinedScore()
Returns the combined score of this CombineToken. |
ParallelToken |
getParallelToken(FeatureStream stream)
Returns the parallel token of the given parallel stream. |
java.util.Collection |
getParallelTokens()
Returns a Collection of all the parallel tokens. |
java.util.Iterator |
getTokenIterator()
Returns an Iterator for the ParallelToken(s). |
void |
setCombinedScore(float combinedScore)
Sets the combined score. |
void |
setLastCombineTime(int frameNumber)
Sets the last combine time of all the ParallelTokens in this CombineToken. |
java.lang.String |
toString()
Returns the string representation of this object. |
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, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CombineToken(Token predecessor, SentenceHMMState state, int frameNumber)
predecessor
- the predecessor for this tokenstate
- the SentenceHMMState associated with this tokenframeNumber
- the frame number associated with this tokenMethod Detail |
public float getCombinedScore()
public void setCombinedScore(float combinedScore)
combinedScore
- the combined scorepublic ParallelToken addParallelToken(java.lang.Object key, ParallelToken parallelToken)
key
- the stream nameparallelToken
- the the parallel tokenpublic void addAll(java.util.List tokenList)
tokenList
- the list of ParallelTokenspublic void clear()
public java.util.Iterator getTokenIterator()
public java.util.Collection getParallelTokens()
public ParallelToken getParallelToken(FeatureStream stream)
public void setLastCombineTime(int frameNumber)
frameNumber
- the last combine timepublic java.lang.String toString()
toString
in class Token
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |