Alignment API and Server 4.6 (1875M)

fr.inrialpes.exmo.align.cli
Class GenPlot

java.lang.Object
  extended by fr.inrialpes.exmo.align.cli.CommonCLI
      extended by fr.inrialpes.exmo.align.cli.GenPlot

public class GenPlot
extends CommonCLI

A basic class for ploting the results of an evaluation. These graphs are however computed on averaging the precision recall/graphs on test directories instead of recording the actual precision recall graphs which would amount at recoding all the valid and invalid alignment cells and their level.

  java -cp procalign.jar fr.inrialpes.exmo.align.util.GenPlot [options]
  
where the options are:
  -o filename --output=filename
  -l list of compared algorithms
  -t output --type=output: xml/tex/html/ascii
  -e classname --evaluator=classname
  -g classname --grapher=classname
 
The input is taken in the current directory in a set of subdirectories (one per test) each directory contains a the alignment files (one per algorithm) for that test and the reference alignment file. If output is requested (-o flags), then output will be written to output if present, stdout by default. In case of the Latex output, there are numerous files generated (regardless the -o flag).
 $Id: GenPlot.java 1871 2014-01-16 20:25:53Z euzenat $
 

Author:
Jérôme Euzenat

Field Summary
(package private)  Constructor evalConstructor
           
(package private)  String fileNames
           
(package private)  Constructor graphConstructor
           
(package private)  String[] listAlgo
           
(package private)  Vector<GraphEvaluator> listEvaluators
           
(package private) static org.slf4j.Logger logger
           
(package private)  String ontoDir
           
(package private)  int size
           
(package private)  int STEP
           
(package private)  String type
           
(package private)  String xlabel
           
(package private)  String ylabel
           
 
Fields inherited from class fr.inrialpes.exmo.align.cli.CommonCLI
options, outputfilename, parameters
 
Constructor Summary
GenPlot()
           
 
Method Summary
 void iterateAlignments(File dir, Vector<GraphEvaluator> evaluators)
           
 Vector<GraphEvaluator> iterateDirectories()
          Iterate on each subdirectory Returns a vector[ each algo ] of vector [ each point ] The points are computed by aggregating the values (and in the end computing the average)
static void main(String[] args)
           
 void printHTMLGGraph(Vector<Vector<Pair>> result, PrintWriter writer)
          This does average plus generate the call for Google Chart API
 void printPGFTex(Vector<Vector<Pair>> result, PrintWriter writer)
          This does average plus plot
 void printTSV(Vector<Vector<Pair>> points, PrintWriter writer)
           
 void run(String[] args)
           
 Vector<Pair> scaleResults(int STEP, Vector<Pair> input)
           
 void usage()
           
 
Methods inherited from class fr.inrialpes.exmo.align.cli.CommonCLI
exit, parseCommandLine, parseSpecificCommandLine, usage, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static final org.slf4j.Logger logger

STEP

int STEP

listAlgo

String[] listAlgo

listEvaluators

Vector<GraphEvaluator> listEvaluators

fileNames

String fileNames

evalConstructor

Constructor evalConstructor

graphConstructor

Constructor graphConstructor

xlabel

String xlabel

ylabel

String ylabel

type

String type

size

int size

ontoDir

String ontoDir
Constructor Detail

GenPlot

public GenPlot()
Method Detail

main

public static void main(String[] args)

run

public void run(String[] args)
         throws Exception
Throws:
Exception

iterateDirectories

public Vector<GraphEvaluator> iterateDirectories()
Iterate on each subdirectory Returns a vector[ each algo ] of vector [ each point ] The points are computed by aggregating the values (and in the end computing the average)


iterateAlignments

public void iterateAlignments(File dir,
                              Vector<GraphEvaluator> evaluators)

scaleResults

public Vector<Pair> scaleResults(int STEP,
                                 Vector<Pair> input)

printPGFTex

public void printPGFTex(Vector<Vector<Pair>> result,
                        PrintWriter writer)
This does average plus plot


printHTMLGGraph

public void printHTMLGGraph(Vector<Vector<Pair>> result,
                            PrintWriter writer)
This does average plus generate the call for Google Chart API


printTSV

public void printTSV(Vector<Vector<Pair>> points,
                     PrintWriter writer)

usage

public void usage()
Specified by:
usage in class CommonCLI

Alignment API and Server 4.6 (1875M)

(C) INRIA & friends, 2003-2014