opennlp.tools.cmdline
Class AbstractEvaluatorTool<T,P>
java.lang.Object
opennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.TypedCmdLineTool<T>
opennlp.tools.cmdline.AbstractTypedParamTool<T,P>
opennlp.tools.cmdline.AbstractEvaluatorTool<T,P>
- Direct Known Subclasses:
- ChunkerEvaluatorTool, POSTaggerEvaluatorTool, SentenceDetectorEvaluatorTool, TokenizerMEEvaluatorTool, TokenNameFinderEvaluatorTool
public class AbstractEvaluatorTool<T,P>
- extends AbstractTypedParamTool<T,P>
Base class for evaluator tools.
Method Summary |
void |
run(String format,
String[] args)
Executes the tool with the given parameters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
params
protected P params
factory
protected ObjectStreamFactory<T> factory
sampleStream
protected ObjectStream<T> sampleStream
AbstractEvaluatorTool
protected AbstractEvaluatorTool(Class<T> sampleType,
Class<P> params)
- Constructor with type parameters.
- Parameters:
sampleType
- class of the template parameterparams
- interface with parameters
run
public void run(String format,
String[] args)
- Description copied from class:
TypedCmdLineTool
- Executes the tool with the given parameters.
- Specified by:
run
in class TypedCmdLineTool<T>
- Parameters:
format
- format to work withargs
- command line arguments
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.