|
Alignment API and Server 4.1.${version.update} | |||||||||
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.DiffEvaluator
public class DiffEvaluator
Evaluate proximity between two alignments. This function implements Precision/Recall/Fallout. The first alignment is thus the expected one.
Field Summary | |
---|---|
(package private) Set<Cell> |
falsenegative
|
(package private) Set<Cell> |
falsepositive
|
(package private) Set<Cell> |
truepositive
|
Fields inherited from class fr.inrialpes.exmo.align.impl.BasicEvaluator |
---|
align1, align2, result |
Constructor Summary | |
---|---|
DiffEvaluator(Alignment align1,
Alignment align2)
Creation Initiate Evaluator for precision and recall |
Method Summary | |
---|---|
void |
diff()
|
double |
eval(Properties params)
Run the evaluation between the two ontologies. |
double |
eval(Properties params,
Object cache)
Run the evaluation between the two ontologies. |
Set<Cell> |
getFalseNegative()
|
Set<Cell> |
getFalsePositive()
|
Properties |
getResults()
Returns the results as a property list not further described but suitable for display. |
Set<Cell> |
getTruePositive()
|
String |
HTMLString()
|
void |
init()
|
void |
write(PrintWriter writer)
Outputs (in XML/RDF) a full report on the proximity of the two ontologies. |
private String |
writeCellsHTML(Set<Cell> set,
String what)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Set<Cell> truepositive
Set<Cell> falsenegative
Set<Cell> falsepositive
Constructor Detail |
---|
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
Method Detail |
---|
public void init()
public void diff()
public double eval(Properties params) throws AlignmentException
Evaluator
eval
in interface Evaluator
AlignmentException
public double eval(Properties params, Object cache) throws AlignmentException
Evaluator
eval
in interface Evaluator
AlignmentException
public String HTMLString()
private String writeCellsHTML(Set<Cell> set, String what)
public void write(PrintWriter writer) throws IOException
Evaluator
write
in interface Evaluator
write
in class BasicEvaluator
IOException
public Properties getResults()
Evaluator
getResults
in interface Evaluator
public Set<Cell> getTruePositive()
public Set<Cell> getFalseNegative()
public Set<Cell> getFalsePositive()
|
Alignment API and Server 4.1.${version.update} | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |