|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.cmdline.postag.POSTaggerFineGrainedReportListener
public class POSTaggerFineGrainedReportListener
Generates a detailed report for the POS Tagger.
It is possible to use it from an API and access the statistics using the provided getters
Constructor Summary | |
---|---|
POSTaggerFineGrainedReportListener()
Creates a listener that will print to System.err |
|
POSTaggerFineGrainedReportListener(OutputStream outputStream)
Creates a listener that prints to a given OutputStream |
Method Summary | |
---|---|
void |
correctlyClassified(POSSample reference,
POSSample prediction)
|
double |
getAccuracy()
|
double |
getAverageSentenceSize()
|
double[][] |
getConfusionMatrix()
|
double[][] |
getConfusionMatrix(String token)
|
SortedSet<String> |
getConfusionMatrixTagset()
|
SortedSet<String> |
getConfusionMatrixTagset(String token)
|
int |
getMaxSentenceSize()
|
int |
getMinSentenceSize()
|
long |
getNumberOfSentences()
|
int |
getNumberOfTags()
|
int |
getTagErrors(String tag)
|
double |
getTagFMeasure(String tag)
|
int |
getTagFrequency(String tag)
|
double |
getTagPrecision(String tag)
|
double |
getTagRecall(String tag)
|
SortedSet<String> |
getTagsOrderedByErrors()
|
double |
getTokenAccuracy(String token)
|
int |
getTokenErrors(String token)
|
int |
getTokenFrequency(String token)
|
SortedSet<String> |
getTokensOrderedByFrequency()
|
SortedSet<String> |
getTokensOrderedByNumberOfErrors()
|
void |
missclassified(POSSample reference,
POSSample prediction)
|
void |
writeReport()
Writes the report to the OutputStream . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public POSTaggerFineGrainedReportListener()
System.err
public POSTaggerFineGrainedReportListener(OutputStream outputStream)
OutputStream
Method Detail |
---|
public void missclassified(POSSample reference, POSSample prediction)
missclassified
in interface EvaluationMonitor<POSSample>
public void correctlyClassified(POSSample reference, POSSample prediction)
correctlyClassified
in interface EvaluationMonitor<POSSample>
public void writeReport()
OutputStream
. Should be called only after
the evaluation process
public long getNumberOfSentences()
public double getAverageSentenceSize()
public int getMinSentenceSize()
public int getMaxSentenceSize()
public int getNumberOfTags()
public double getAccuracy()
public double getTokenAccuracy(String token)
public SortedSet<String> getTokensOrderedByFrequency()
public int getTokenFrequency(String token)
public int getTokenErrors(String token)
public SortedSet<String> getTokensOrderedByNumberOfErrors()
public SortedSet<String> getTagsOrderedByErrors()
public int getTagFrequency(String tag)
public int getTagErrors(String tag)
public double getTagPrecision(String tag)
public double getTagRecall(String tag)
public double getTagFMeasure(String tag)
public SortedSet<String> getConfusionMatrixTagset()
public SortedSet<String> getConfusionMatrixTagset(String token)
public double[][] getConfusionMatrix()
public double[][] getConfusionMatrix(String token)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |