edu.stanford.nlp.stats
Class AccuracyStats
java.lang.Object
edu.stanford.nlp.stats.AccuracyStats
- All Implemented Interfaces:
- Scorer
public class AccuracyStats
- extends Object
- implements Scorer
Utility class for aggregating counts of true positives, false positives, and
false negatives and computing precision/recall/F1 stats. Can be used for a single
collection of stats, or to aggregate stats from a bunch of runs.
- Author:
- Kristina Toutanova, Jenny Finkel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccuracyStats
public AccuracyStats(ProbabilisticClassifier classifier,
GeneralDataset data,
Object posLabel)
AccuracyStats
public AccuracyStats(Object posLabel,
String saveFile)
score
public double score(ProbabilisticClassifier classifier,
GeneralDataset data)
- Specified by:
score
in interface Scorer
getDescription
public String getDescription(int numDigits)
- Specified by:
getDescription
in interface Scorer
toStringArr
public static String toStringArr(int[] acc)
Stanford NLP Group