|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectse.lth.cs.nlp.nlputils.annotations.CompareResult
public class CompareResult
The result of a comparison of two layers.
| Field Summary | |
|---|---|
int |
nCorrect
|
int |
nInGold
|
int |
nPartialMatches
|
int |
nPredicted
|
| Constructor Summary | |
|---|---|
CompareResult()
|
|
| Method Summary | |
|---|---|
void |
add(CompareResult other)
Adds another CompareResult to this one. |
double |
getF(double beta)
Returns a weighted F-measure. |
double |
getF1()
Returns the F-measure with equal weights, that is the harmonic mean of the precision and the recall. |
double |
getLenientPrecision()
Returns the precision when partial matches are counted as correct. |
double |
getPrecision()
Returns the precision, that is the probability that a guess is correct. |
double |
getRecall()
Returns the recall, that is the probability that an item from the gold standard is retrieved. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int nCorrect
public int nPartialMatches
public int nPredicted
public int nInGold
| Constructor Detail |
|---|
public CompareResult()
| Method Detail |
|---|
public double getPrecision()
public double getRecall()
public double getF1()
public double getF(double beta)
beta value below 1
pulls the F-measure towards the precision and a value above 1
towards the recall.
beta - the parameter beta
public double getLenientPrecision()
public String toString()
toString in class Objectpublic void add(CompareResult other)
other - the other CompareResult.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||