|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap
java.util.TreeMap
edu.cmu.sphinx.result.ConfusionSet
A confusion set is a set of words with their associated posteriors. In Java terms it's a SortedMap from posteriors to sets of WordResults, but the class is called a set because that's what this beast is known as in the literature.
Constructor Summary | |
ConfusionSet()
|
Method Summary | |
void |
addWordHypothesis(WordResult word)
Add a word hypothesis to this confusion set. |
void |
dump(java.lang.String name)
Dumps out the contents of this ConfusionSet. |
WordResult |
getBestHypothesis()
Return the single best hypothesis. |
java.util.Set |
getBestHypothesisSet()
Return the set of best hypothesis. |
double |
getBestPosterior()
Get the highest posterior (confidence) stored in this set. |
WordResult |
getWordResult(java.lang.String word)
Returns the WordResult in this ConfusionSet for the given word. |
java.util.Set |
getWordSet(double posterior)
Get the word set with this confidence. |
Methods inherited from class java.util.TreeMap |
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, put, putAll, remove, size, subMap, tailMap, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, isEmpty, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode, isEmpty |
Constructor Detail |
public ConfusionSet()
Method Detail |
public void addWordHypothesis(WordResult word)
word
- the hypothesis to addpublic java.util.Set getWordSet(double posterior)
posterior
- the confidence (posterior)
public java.util.Set getBestHypothesisSet()
public WordResult getBestHypothesis()
public double getBestPosterior()
public WordResult getWordResult(java.lang.String word)
word
- the word to look for
public void dump(java.lang.String name)
name
- the name of the confusion set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |