|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.sphinx.result.SimpleWordResult
public class 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 |
boolean |
isFiller()
Does this word result represent a filler token? |
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 word
public 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 word
public SimpleWordResult(Node node,
double confidence,
LogMath logMath)
node - the node to extract information fromconfidence - the confidence (posterior) to assign| Method Detail |
|---|
public double getScore()
WordResult
getScore in interface WordResultWordResult.getScore()public double getConfidence()
WordResult
getConfidence in interface WordResultWordResult.getConfidence()public LogMath getLogMath()
WordResult
getLogMath in interface WordResultWordResult.getLogMath()public Pronunciation getPronunciation()
WordResult
getPronunciation in interface WordResultWordResult.getPronunciation()public int getStartFrame()
WordResult
getStartFrame in interface WordResultWordResult.getStartFrame()public int getEndFrame()
WordResult
getEndFrame in interface WordResultWordResult.getEndFrame()public java.lang.String toString()
toString in interface WordResulttoString in class java.lang.Objectpublic Data[] getDataFrames()
WordResult
getDataFrames in interface WordResultWordResult.getDataFrames()public boolean isFiller()
WordResult
isFiller in interface WordResultWordResult.isFiller()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||