public class WeightedPREvaluator extends BasicEvaluator implements Evaluator
Modifier and Type | Field and Description |
---|---|
protected double |
fmeasure |
(package private) static org.slf4j.Logger |
logger |
protected double |
nbcorrect1 |
protected double |
nbcorrect2 |
protected double |
nbexpected |
protected double |
nbfound |
protected double |
overall |
protected double |
precision |
protected double |
recall |
protected boolean |
relsensitive |
protected long |
time |
align1, align2, result
Constructor and Description |
---|
WeightedPREvaluator(Alignment align1,
Alignment align2)
Creation
Initiate Evaluator for precision and recall
|
Modifier and Type | Method and Description |
---|---|
protected double |
computeDerived() |
double |
eval(java.util.Properties params)
Computes the evaluation measure (the results are stored in the object)
The formulas are standard (see PREvaluation) except that they use
the difference between confidences instead of booleans
|
double |
eval(java.util.Properties params,
java.lang.Object cache)
Run the evaluation between the two ontologies.
|
double |
getCorrect() |
double |
getCorrectExpected() |
double |
getCorrectFound() |
double |
getExpected() |
double |
getFallout() |
double |
getFmeasure() |
double |
getFound() |
double |
getNoise() |
double |
getOverall() |
double |
getPrecision() |
double |
getRecall() |
java.util.Properties |
getResults()
Returns the results as a property list not further described but
suitable for display.
|
double |
getSilence() |
long |
getTime() |
java.lang.String |
HTMLString() |
WeightedPREvaluator |
init() |
void |
write(java.io.PrintWriter writer)
This now output the results in Lockheed format.
|
convertToObjectAlignment, convertToObjectAlignments
static final org.slf4j.Logger logger
protected double precision
protected double recall
protected double overall
protected double fmeasure
protected boolean relsensitive
protected long time
protected double nbexpected
protected double nbfound
protected double nbcorrect1
protected double nbcorrect2
public WeightedPREvaluator(Alignment align1, Alignment align2) throws AlignmentException
align1
- : the reference alignmentalign2
- : the alignment to evaluate
The two parameters are transformed into URIAlignment before being processed
Hence, if one of them is modified after initialisation, this will not be taken into account.AlignmentException
- when something goes wrongpublic WeightedPREvaluator init()
public double eval(java.util.Properties params) throws AlignmentException
eval
in interface Evaluator
params:
- the evaluation parametersAlignmentException
- when something goes wrongpublic double eval(java.util.Properties params, java.lang.Object cache) throws AlignmentException
Evaluator
eval
in interface Evaluator
AlignmentException
- when something goes wrong
//@deprecated The OntologyCache is now internal, use eval( params ) insteadprotected double computeDerived()
public java.lang.String HTMLString()
public void write(java.io.PrintWriter writer) throws java.io.IOException
write
in interface Evaluator
write
in class BasicEvaluator
writer:
- the writer in which to write the resultjava.io.IOException
- when something goes wrongpublic java.util.Properties getResults()
Evaluator
getResults
in interface Evaluator
public double getPrecision()
public double getRecall()
public double getOverall()
public double getFallout() throws AlignmentException
AlignmentException
public double getNoise()
public double getSilence()
public double getFmeasure()
public double getExpected()
public double getFound()
public double getCorrect()
public double getCorrectExpected()
public double getCorrectFound()
public long getTime()
(C) INRIA & friends, 2003-2020