|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.sphinx.util.ResultAnalyzer
Compares a reference result strings to actual result strings and keeps track of statistics with regard to the strings
Constructor Summary | |
ResultAnalyzer(boolean verbose)
Creates a result analyzer |
Method Summary | |
boolean |
analyze(java.lang.String ref,
java.lang.String hyp)
Compare the hypothesis to the reference string collecting statistics on it. |
java.lang.String |
getHypothesis()
Returns the list of hypothesized words only to a space separated string. |
float |
getSentenceAccuracy()
Returns the sentence accuracy |
float |
getWordAccuracy()
Returns the accuracy |
static void |
main(java.lang.String[] args)
Quick and dirty test program |
void |
reset()
Resets all the accuracy and error statistics. |
void |
showMisrecognitions()
Shows the misrecognized utterances. |
void |
showResults()
Shows the results for this analyzer |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ResultAnalyzer(boolean verbose)
verbose
- if true output comparisons as they are madeMethod Detail |
public boolean analyze(java.lang.String ref, java.lang.String hyp)
ref
- the reference stringhyp
- the hypothesis string
public float getWordAccuracy()
public float getSentenceAccuracy()
public java.lang.String getHypothesis()
public void reset()
public void showMisrecognitions()
public void showResults()
public static void main(java.lang.String[] args)
args
- the commandline arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |