de.fu_berlin.ties.eval
Class PredictionEvaluator

java.lang.Object
  extended by de.fu_berlin.ties.ConfigurableProcessor
      extended by de.fu_berlin.ties.CollectingProcessor
          extended by de.fu_berlin.ties.eval.PredictionEvaluator
All Implemented Interfaces:
Closeable, Processor

public class PredictionEvaluator
extends CollectingProcessor

Reads a set of files that must contain predictions and evaluates them against the corresponding answer keys (*.ans files).

Version:
$Revision: 1.4 $, $Date: 2006/10/21 16:04:11 $, $Author: siefkes $
Author:
Christian Siefkes

Constructor Summary
PredictionEvaluator()
          Creates a new instance, using the standard configuration.
PredictionEvaluator(TiesConfiguration conf)
          Creates a new instance.
 
Method Summary
 void process(List<String> collected, ContextMap context)
          Processes the collected input arguments.
 
Methods inherited from class de.fu_berlin.ties.CollectingProcessor
close, process
 
Methods inherited from class de.fu_berlin.ties.ConfigurableProcessor
getConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredictionEvaluator

public PredictionEvaluator()
Creates a new instance, using the standard configuration.


PredictionEvaluator

public PredictionEvaluator(TiesConfiguration conf)
Creates a new instance.

Parameters:
conf - used to configure this instance
Method Detail

process

public void process(List<String> collected,
                    ContextMap context)
             throws IOException,
                    ProcessingException
Processes the collected input arguments.

Specified by:
process in class CollectingProcessor
Parameters:
collected - a list of Strings containing the collected input arguments
context - a map of objects that are made available for processing; will be empty when called from the CollectingProcessor.close(int) method in this class
Throws:
IOException - if an I/O error occurs
ProcessingException - if an error occurs during processing


Copyright © 2003-2007 Christian Siefkes. All Rights Reserved.