gate.util
Class AnnotationDiffer

java.lang.Object
  extended bygate.util.AnnotationDiffer

public class AnnotationDiffer
extends Object


Field Summary
static int CORRECT
           
static int DIFFERENT
           
static int PARTIALLY_CORRECT
           
 
Constructor Summary
AnnotationDiffer()
           
 
Method Summary
 void calculateDiff(Collection key, Collection response)
          Computes a diff between two collections of annotations.
 int getFalsePositivesLenient()
           
 int getFalsePositivesStrict()
           
 double getFMeasureLenient(double beta)
           
 double getFMeasureStrict(double beta)
           
 double getPrecisionLenient()
           
 double getPrecisionStrict()
           
 double getRecallLenient()
           
 double getRecallStrict()
           
 Set getSignificantFeaturesSet()
           
 void printMissmatches()
           
 void setSignificantFeaturesSet(Set significantFeaturesSet)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CORRECT

public static final int CORRECT
See Also:
Constant Field Values

PARTIALLY_CORRECT

public static final int PARTIALLY_CORRECT
See Also:
Constant Field Values

DIFFERENT

public static final int DIFFERENT
See Also:
Constant Field Values
Constructor Detail

AnnotationDiffer

public AnnotationDiffer()
Method Detail

calculateDiff

public void calculateDiff(Collection key,
                          Collection response)
Computes a diff between two collections of annotations.

Parameters:
key -
response -

getPrecisionStrict

public double getPrecisionStrict()

getRecallStrict

public double getRecallStrict()

getPrecisionLenient

public double getPrecisionLenient()

getRecallLenient

public double getRecallLenient()

getFMeasureStrict

public double getFMeasureStrict(double beta)

getFMeasureLenient

public double getFMeasureLenient(double beta)

getFalsePositivesStrict

public int getFalsePositivesStrict()

getFalsePositivesLenient

public int getFalsePositivesLenient()

printMissmatches

public void printMissmatches()

getSignificantFeaturesSet

public Set getSignificantFeaturesSet()

setSignificantFeaturesSet

public void setSignificantFeaturesSet(Set significantFeaturesSet)