|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.result.SimpleWordResult
Represents a single word result with associated scoring and timing information.
Constructor Summary | |
SimpleWordResult(Node node,
double confidence,
LogMath logMath)
Construct a WordResult using a Node object and a confidence (posterior). |
|
SimpleWordResult(java.lang.String w,
double confidence,
LogMath logMath)
Construct a word result from a string and a confidence score. |
|
SimpleWordResult(Word w,
int sf,
int ef,
double score,
double confidence,
LogMath logMath)
Construct a word result with full information. |
Method Summary | |
double |
getConfidence()
Returns a log confidence score for this WordResult. |
Data[] |
getDataFrames()
Gets the feature frames associated with this word |
int |
getEndFrame()
Gets the ending frame number for the word |
LogMath |
getLogMath()
Returns the log math of the scores. |
Pronunciation |
getPronunciation()
Gets the pronunciation for this word. |
double |
getScore()
Gets the total score for this word. |
int |
getStartFrame()
Gets the starting frame number for the word |
java.lang.String |
toString()
Return this WordResult as a string. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SimpleWordResult(java.lang.String w, double confidence, LogMath logMath)
w
- the wordconfidence
- the confidence for this wordpublic SimpleWordResult(Word w, int sf, int ef, double score, double confidence, LogMath logMath)
w
- the word object to storesf
- word start timeef
- word end timescore
- score of the wordconfidence
- confidence (posterior) of the wordpublic SimpleWordResult(Node node, double confidence, LogMath logMath)
node
- the node to extract information fromconfidence
- the confidence (posterior) to assignMethod Detail |
public double getScore()
WordResult
getScore
in interface WordResult
WordResult.getScore()
public double getConfidence()
WordResult
getConfidence
in interface WordResult
WordResult.getConfidence()
public LogMath getLogMath()
WordResult
getLogMath
in interface WordResult
WordResult.getLogMath()
public Pronunciation getPronunciation()
WordResult
getPronunciation
in interface WordResult
WordResult.getPronunciation()
public int getStartFrame()
WordResult
getStartFrame
in interface WordResult
WordResult.getStartFrame()
public int getEndFrame()
WordResult
getEndFrame
in interface WordResult
WordResult.getEndFrame()
public java.lang.String toString()
toString
in interface WordResult
public Data[] getDataFrames()
WordResult
getDataFrames
in interface WordResult
WordResult.getDataFrames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |