public class SemPRecEvaluator extends PRecEvaluator implements Evaluator
Modifier and Type | Field and Description |
---|---|
(package private) static org.slf4j.Logger |
logger |
protected org.semanticweb.owlapi.model.OWLOntologyManager |
manager
It would be useful to directly use the Ontologies since they are already loaded
Two implementation of Alignment loading: one with intermediate file and one without.
|
private int |
nbexpectedentailed |
private int |
nbfoundentailed |
protected org.semanticweb.owlapi.reasoner.OWLReasoner |
reasoner |
private fr.paris8.iut.info.draon.conf.Semantics |
semantics |
fmeasure, nbcorrect, nbexpected, nbfound, overall, precision, recall, relsensitive, time
align1, align2, result
Constructor and Description |
---|
SemPRecEvaluator(Alignment al1,
Alignment al2)
Creation
Initiate Evaluator for precision and recall
|
Modifier and Type | Method and Description |
---|---|
org.semanticweb.owlapi.model.OWLAxiom |
correspToAxiom(ObjectAlignment al,
ObjectCell corresp) |
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 entailment of a correspondence by an alignment instead of set-membership
This takes semantics as a parameter which should be a litteral of fr.paris8.iut.info.draon.conf.Semantics
|
int |
getExpectedEntailed() |
int |
getFoundEntailed() |
java.util.Properties |
getResults()
Returns the results as a property list not further described but
suitable for display.
|
SemPRecEvaluator |
init(java.util.Properties params) |
void |
loadAlignedOntologies(ObjectAlignment align)
Even simpler if they are loaded: just merge them on the spot
|
void |
loadFileAlignedOntologies(ObjectAlignment align)
Loads the Aligned ontologies through an intermediate file
|
void |
loadPipedAlignedOntologies(ObjectAlignment align)
Loads the Aligned ontologies without intermediate file
|
int |
nbEntailedCorrespondences(ObjectAlignment al1,
ObjectAlignment al2) |
computeDerived, eval, getCorrect, getExpected, getFallout, getFmeasure, getFound, getNoise, getOverall, getPrecision, getRecall, getSilence, getTime, HTMLString, init, write
convertToObjectAlignment, convertToObjectAlignments
static final org.slf4j.Logger logger
private int nbfoundentailed
private int nbexpectedentailed
private fr.paris8.iut.info.draon.conf.Semantics semantics
protected org.semanticweb.owlapi.model.OWLOntologyManager manager
protected org.semanticweb.owlapi.reasoner.OWLReasoner reasoner
public SemPRecEvaluator(Alignment al1, Alignment al2) throws AlignmentException
al1
- : the reference alignmental2
- : the alignment to evaluateAlignmentException
- when something goes wrongpublic SemPRecEvaluator init(java.util.Properties params)
public double eval(java.util.Properties params) throws AlignmentException
eval
in interface Evaluator
eval
in class PRecEvaluator
params:
- the evaluation parametersAlignmentException
- when something goes wrongpublic int getFoundEntailed()
public int getExpectedEntailed()
public java.util.Properties getResults()
Evaluator
getResults
in interface Evaluator
getResults
in class PRecEvaluator
public int nbEntailedCorrespondences(ObjectAlignment al1, ObjectAlignment al2) throws AlignmentException
AlignmentException
public void loadAlignedOntologies(ObjectAlignment align) throws AlignmentException
align:
- the alignment to loadAlignmentException
- when something goes wrong (typically IO and syntax problem)public void loadPipedAlignedOntologies(ObjectAlignment align) throws AlignmentException
align:
- the alignment to loadAlignmentException
- when something goes wrong (typically IO and syntax problem)public void loadFileAlignedOntologies(ObjectAlignment align) throws AlignmentException
align:
- the alignment to loadAlignmentException
- when something goes wrong (typically IO and syntax problem)public org.semanticweb.owlapi.model.OWLAxiom correspToAxiom(ObjectAlignment al, ObjectCell corresp) throws AlignmentException
AlignmentException
(C) INRIA & friends, 2003-2020