|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.AnnotationDiffer
Nested Class Summary | |
(package private) class |
AnnotationDiffer.Choice
Represents a pairing of a key annotation with a response annotation and the associated score for that pairing. |
Field Summary | |
static int |
CORRECT
|
protected int |
correctMatches
|
static int |
DIFFERENT
|
protected List |
finalChoices
A list with the choices selected for the best result. |
protected List |
keyChoices
A list of lists representing all possible choices for each key |
protected List |
keyList
A list with all the key annotations |
static int |
PARTIALLY_CORRECT
|
protected int |
partiallyCorrectMatches
|
protected List |
possibleChoices
All the posible choices are added to this list for easy iteration. |
protected List |
responseChoices
A list of lists representing all possible choices for each response |
protected List |
responseList
A list with all the response annotations |
private Set |
significantFeaturesSet
|
Constructor Summary | |
AnnotationDiffer()
|
Method Summary | |
protected void |
addChoice(AnnotationDiffer.Choice choice,
int index,
List listOfChoices)
|
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()
|
(package private) void |
sanityCheck()
Performs some basic checks over the internal data structures from the last run. |
void |
setSignificantFeaturesSet(Set significantFeaturesSet)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CORRECT
public static final int PARTIALLY_CORRECT
public static final int DIFFERENT
private Set significantFeaturesSet
protected int correctMatches
protected int partiallyCorrectMatches
protected List keyList
protected List responseList
protected List keyChoices
protected List responseChoices
protected List possibleChoices
protected List finalChoices
Constructor Detail |
public AnnotationDiffer()
Method Detail |
public void calculateDiff(Collection key, Collection response)
key
- response
- public double getPrecisionStrict()
public double getRecallStrict()
public double getPrecisionLenient()
public double getRecallLenient()
public double getFMeasureStrict(double beta)
public double getFMeasureLenient(double beta)
public int getFalsePositivesStrict()
public int getFalsePositivesLenient()
public void printMissmatches()
void sanityCheck() throws Exception
Exception
protected void addChoice(AnnotationDiffer.Choice choice, int index, List listOfChoices)
choice
- the choice to be addedindex
- the index in the list of choicespublic Set getSignificantFeaturesSet()
public void setSignificantFeaturesSet(Set significantFeaturesSet)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |