|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--org.apache.taglibs.rdc.core.NBestResults
Deserializes and stores n-best data received from the vxml browser.
| Constructor Summary | |
|---|---|
NBestResults()
|
|
| Method Summary | |
|---|---|
float |
getNthConfidence(int n)
Get confidence for Nth result |
java.util.Map |
getNthInterpretation(int n)
Get interpretation for Nth result, which is stored as a HashMap of attribute-value pairs |
java.lang.String |
getNthUtterance(int n)
Get utterance for Nth result |
int |
getNumNBest()
Get the number of results stored |
void |
setNBestResults(java.lang.String serializedNBest)
Populate this object with the n-best results corresponding to this serialized string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NBestResults()
| Method Detail |
public int getNumNBest()
public float getNthConfidence(int n)
n - the index of the result
public java.util.Map getNthInterpretation(int n)
n - the index of the result
public java.lang.String getNthUtterance(int n)
n - the index of the result
public void setNBestResults(java.lang.String serializedNBest)
serializedNBest - the serialized n-best result string
obtained from the vxml browser
To understand this method, look at the nbest.js file in the
.grammar directory
|
||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||