uk.ac.essex.malexa.nlp
Class NLPEvaluationMeasures

java.lang.Object
  extended byuk.ac.essex.malexa.nlp.NLPEvaluationMeasures

public class NLPEvaluationMeasures
extends Object

A class that provides static methods for computing precision, recall, F, E, Fallout, and accuracy.


Constructor Summary
NLPEvaluationMeasures()
           
 
Method Summary
static double accuracy(Set selected, Set target, Set universe)
           
static double eMeasure(Set selected, Set target)
           
static double eMeasure(Set selected, Set target, double alpha)
           
static double fallout(Set selected, Set target, Set universe)
           
static double fMeasure(Set selected, Set target)
           
static double fMeasure(Set selected, Set target, double alpha)
           
static double precision(Set selected, Set target)
           
static double recall(Set selected, Set target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NLPEvaluationMeasures

public NLPEvaluationMeasures()
Method Detail

precision

public static double precision(Set selected,
                               Set target)

recall

public static double recall(Set selected,
                            Set target)

fMeasure

public static double fMeasure(Set selected,
                              Set target,
                              double alpha)

fMeasure

public static double fMeasure(Set selected,
                              Set target)

eMeasure

public static double eMeasure(Set selected,
                              Set target,
                              double alpha)

eMeasure

public static double eMeasure(Set selected,
                              Set target)

fallout

public static double fallout(Set selected,
                             Set target,
                             Set universe)

accuracy

public static double accuracy(Set selected,
                              Set target,
                              Set universe)