|
Alignment API and Server 3.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.inrialpes.exmo.align.impl.BasicEvaluator
fr.inrialpes.exmo.align.impl.eval.ExtPREvaluator
public class ExtPREvaluator
Implement extended precision and recall between alignments. These are the measures corresponding to [Ehrig&Euzenat2005]. The implementation is based on that of PRecEvaluator.
Field Summary | |
---|---|
private double |
effprec
|
private double |
effrec
|
private double |
effsimilarity
|
private int |
nbexpected
|
private int |
nbfound
|
private HeavyLoadedOntology<Object> |
onto1
|
private HeavyLoadedOntology<Object> |
onto2
|
private double |
orientprec
|
private double |
orientrec
|
private double |
orientsimilarity
|
private double |
symALPHA
|
private double |
symprec
|
private double |
symrec
|
private double |
symsimilarity
|
Fields inherited from class fr.inrialpes.exmo.align.impl.BasicEvaluator |
---|
align1, align2, result |
Constructor Summary | |
---|---|
ExtPREvaluator(Alignment align1,
Alignment align2)
Creation |
Method Summary | |
---|---|
protected double |
computeSymSimilarity(Cell c1,
Enumeration s2)
This computes similarity depending on structural measures: the similarity is symALPHA^minval, symALPHA being lower than 1. |
double |
eval(Parameters params)
This is a partial implementation of [Ehrig & Euzenat 2005] because the relations are not taken into account (they are supposed to be always =) |
double |
eval(Parameters params,
Object cache)
Run the evaluation between the two ontologies. |
double |
getEffPrecision()
|
double |
getEffRecall()
|
double |
getEffSimilarity()
|
int |
getExpected()
|
int |
getFound()
|
double |
getOrientPrecision()
|
double |
getOrientRecall()
|
double |
getOrientSimilarity()
|
double |
getSymPrecision()
|
double |
getSymRecall()
|
double |
getSymSimilarity()
|
int |
isSuperClass(Object class1,
Object class2,
HeavyLoadedOntology<Object> ontology)
This is a strange method which returns an integer representing how directly a class is superclass of another or not. |
boolean |
isSuperProperty(Object prop1,
Object prop2,
HeavyLoadedOntology<Object> ontology)
|
protected int |
relativePosition(Object o1,
Object o2,
HeavyLoadedOntology<Object> onto)
|
int |
superClassPosition(Object class1,
Object class2,
HeavyLoadedOntology<Object> onto)
|
void |
write(PrintWriter writer)
This now output the results in Lockheed format. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private HeavyLoadedOntology<Object> onto1
private HeavyLoadedOntology<Object> onto2
private double symALPHA
private double symprec
private double symrec
private double effprec
private double effrec
private double orientprec
private double orientrec
private int nbexpected
private int nbfound
private double symsimilarity
private double effsimilarity
private double orientsimilarity
Constructor Detail |
---|
public ExtPREvaluator(Alignment align1, Alignment align2)
Method Detail |
---|
public double getSymPrecision()
public double getSymRecall()
public double getSymSimilarity()
public double getEffPrecision()
public double getEffRecall()
public double getEffSimilarity()
public double getOrientPrecision()
public double getOrientRecall()
public double getOrientSimilarity()
public int getExpected()
public int getFound()
public double eval(Parameters params) throws AlignmentException
AlignmentException
public double eval(Parameters params, Object cache) throws AlignmentException
Evaluator
AlignmentException
protected double computeSymSimilarity(Cell c1, Enumeration s2)
protected int relativePosition(Object o1, Object o2, HeavyLoadedOntology<Object> onto) throws AlignmentException
AlignmentException
public boolean isSuperProperty(Object prop1, Object prop2, HeavyLoadedOntology<Object> ontology) throws AlignmentException
AlignmentException
public int superClassPosition(Object class1, Object class2, HeavyLoadedOntology<Object> onto) throws AlignmentException
AlignmentException
public int isSuperClass(Object class1, Object class2, HeavyLoadedOntology<Object> ontology) throws AlignmentException
AlignmentException
public void write(PrintWriter writer) throws IOException
write
in interface Evaluator
write
in class BasicEvaluator
IOException
|
Alignment API and Server 3.5 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |