edu.stanford.nlp.stats
Class AccuracyStats

java.lang.Object
  extended by 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

Constructor Summary
AccuracyStats(Object posLabel, String saveFile)
           
AccuracyStats(ProbabilisticClassifier classifier, GeneralDataset data, Object posLabel)
           
 
Method Summary
 String getDescription(int numDigits)
           
 double score(ProbabilisticClassifier classifier, GeneralDataset data)
           
static String toStringArr(int[] acc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccuracyStats

public AccuracyStats(ProbabilisticClassifier classifier,
                     GeneralDataset data,
                     Object posLabel)

AccuracyStats

public AccuracyStats(Object posLabel,
                     String saveFile)
Method Detail

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