de.fu_berlin.ties.eval
Class PredictionEvaluator
java.lang.Object
de.fu_berlin.ties.ConfigurableProcessor
de.fu_berlin.ties.CollectingProcessor
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
argumentscontext
- 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.