INRIA & friends

fr.inrialpes.exmo.align.impl.eval
Class PRGraphEvaluator

java.lang.Object
  extended byfr.inrialpes.exmo.align.impl.BasicEvaluator
      extended byfr.inrialpes.exmo.align.impl.eval.PRGraphEvaluator
All Implemented Interfaces:
Evaluator

public class PRGraphEvaluator
extends BasicEvaluator

Compute the precision recall graph on 11 points The first alignment is thus the expected one.

Version:
$Id: PRGraphEvaluator.java 193 2005-10-11 07:58:38Z euzenat $ The computation is remotely inspired from the sample programme of Raymond J. Mooney available under GPL from http://www.cs.utexas.edu/users/mooney/ir-course/ Mooney also provides the averaging of these graphs over several queries: unfortunatelly, the resulting graph is not anymore a Precision/Recall graph
Author:
Jerome Euzenat

Field Summary
private  java.util.Vector points
           
private  double[] precisions
           
private  int STEP
           
 
Fields inherited from class fr.inrialpes.exmo.align.impl.BasicEvaluator
align1, align2, result
 
Constructor Summary
PRGraphEvaluator(Alignment align1, Alignment align2)
          Creation
 
Method Summary
 double eval(Parameters params)
          Compute precision and recall graphs.
 double getPrecision(int i)
           
 void write(java.io.PrintWriter writer)
          This output the result
 void writeFullPlot(java.io.PrintWriter writer)
          This output the result
 void writePlot(java.io.PrintWriter writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STEP

private int STEP

precisions

private double[] precisions

points

private java.util.Vector points
Constructor Detail

PRGraphEvaluator

public PRGraphEvaluator(Alignment align1,
                        Alignment align2)
Creation

Method Detail

eval

public double eval(Parameters params)
            throws AlignmentException
Compute precision and recall graphs. The algorithm is as follows: 1) Order the pairs of the found alignment. 2) For

Throws:
AlignmentException

write

public void write(java.io.PrintWriter writer)
           throws java.io.IOException
This output the result

Specified by:
write in interface Evaluator
Overrides:
write in class BasicEvaluator
Throws:
java.io.IOException

writeFullPlot

public void writeFullPlot(java.io.PrintWriter writer)
                   throws java.io.IOException
This output the result

Throws:
java.io.IOException

writePlot

public void writePlot(java.io.PrintWriter writer)
               throws java.io.IOException
Throws:
java.io.IOException

getPrecision

public double getPrecision(int i)

INRIA & friends

..no bottom yet...