public class WordResult
extends java.lang.Object
| Constructor and Description |
|---|
WordResult(Node node)
Construct a WordResult using a Node object and a confidence (posterior).
|
WordResult(Word w,
TimeFrame timeFrame,
double score,
double posterior)
Construct a word result with full information.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getConfidence()
Returns a log confidence score for this WordResult.
|
Pronunciation |
getPronunciation()
Gets the pronunciation for this word.
|
double |
getScore() |
TimeFrame |
getTimeFrame() |
Word |
getWord()
Gets the word object associated with the given result.
|
boolean |
isFiller()
Does this word result represent a filler token?
|
java.lang.String |
toString() |
public WordResult(Word w, TimeFrame timeFrame, double score, double posterior)
w - the word object to storetimeFrame - time framescore - acoustic score of the wordposterior - of the wordpublic WordResult(Node node)
node - the node to extract information frompublic double getScore()
public double getConfidence()
public Pronunciation getPronunciation()
public Word getWord()
public TimeFrame getTimeFrame()
public boolean isFiller()
public java.lang.String toString()
toString in class java.lang.Object