edu.stanford.nlp.classify
Class MassVerifier

java.lang.Object
  |
  +--edu.stanford.nlp.classify.MassVerifier

public class MassVerifier
extends Object

Tracks the statistics for a set of test documents.


Constructor Summary
MassVerifier()
          Constructor
 
Method Summary
 double getAccuracy()
          Returns the accuracy from the statistics so far.
 int getNumRight(int i)
          Returns the number of correct classifications for category i.
 int getNumWrong(int i)
          Returns the number of incorrect classifications for category i.
 double getRecall(int i)
          Returns the recall for category i.
 void printStats()
          Prints some statistics for each category.
 void update(boolean result, int real_id, int class_id)
          Updates the statistics with a new instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MassVerifier

public MassVerifier()
Constructor

Method Detail

update

public void update(boolean result,
                   int real_id,
                   int class_id)
Updates the statistics with a new instance.


getAccuracy

public double getAccuracy()
Returns the accuracy from the statistics so far.


getRecall

public double getRecall(int i)
Returns the recall for category i.


getNumRight

public int getNumRight(int i)
Returns the number of correct classifications for category i.


getNumWrong

public int getNumWrong(int i)
Returns the number of incorrect classifications for category i.


printStats

public void printStats()
Prints some statistics for each category.



Stanford NLP Group