public class DiffEvaluator extends BasicEvaluator implements Evaluator
Modifier and Type | Field and Description |
---|---|
(package private) java.util.Set<Cell> |
falsenegative |
(package private) java.util.Set<Cell> |
falsepositive |
(package private) static org.slf4j.Logger |
logger |
(package private) java.util.Set<Cell> |
truepositive |
align1, align2, result
Constructor and Description |
---|
DiffEvaluator(Alignment align1,
Alignment align2)
Creation
Initiate Evaluator for precision and recall
|
Modifier and Type | Method and Description |
---|---|
void |
diff() |
double |
eval(java.util.Properties params)
Run the evaluation between the two ontologies.
|
double |
eval(java.util.Properties params,
java.lang.Object cache)
Run the evaluation between the two ontologies.
|
java.util.Set<Cell> |
getFalseNegative() |
java.util.Set<Cell> |
getFalsePositive() |
java.util.Properties |
getResults()
Returns the results as a property list not further described but
suitable for display.
|
java.util.Set<Cell> |
getTruePositive() |
java.lang.String |
HTMLString() |
void |
init() |
void |
printAsCells(java.lang.String what,
java.util.Set<Cell> set,
java.io.PrintWriter writer) |
void |
write(java.io.PrintWriter writer)
Outputs (in XML/RDF) a full report on the proximity of the two
ontologies.
|
private java.lang.String |
writeCellsHTML(java.util.Set<Cell> set,
java.lang.String what) |
convertToObjectAlignment, convertToObjectAlignments
static final org.slf4j.Logger logger
java.util.Set<Cell> truepositive
java.util.Set<Cell> falsenegative
java.util.Set<Cell> falsepositive
public DiffEvaluator(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 void init()
public void diff()
public double eval(java.util.Properties params) throws AlignmentException
Evaluator
eval
in interface Evaluator
AlignmentException
- 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 ) insteadpublic java.lang.String HTMLString()
private java.lang.String writeCellsHTML(java.util.Set<Cell> set, java.lang.String what)
public void printAsCells(java.lang.String what, java.util.Set<Cell> set, java.io.PrintWriter writer)
public void write(java.io.PrintWriter writer) throws java.io.IOException
Evaluator
write
in interface Evaluator
write
in class BasicEvaluator
java.io.IOException
- when the output cannot be performedpublic java.util.Properties getResults()
Evaluator
getResults
in interface Evaluator
public java.util.Set<Cell> getTruePositive()
public java.util.Set<Cell> getFalseNegative()
public java.util.Set<Cell> getFalsePositive()
(C) INRIA & friends, 2003-2020