opennlp.tools.cmdline
Class AbstractTypedParamTool<T,P>
java.lang.Object
opennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.TypedCmdLineTool<T>
opennlp.tools.cmdline.AbstractTypedParamTool<T,P>
- Direct Known Subclasses:
- AbstractEvaluatorTool, AbstractTrainerTool, BuildModelUpdaterTool, CheckModelUpdaterTool
public abstract class AbstractTypedParamTool<T,P>
- extends TypedCmdLineTool<T>
Base class for tools which take additional parameters. For example, trainers or evaluators.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
paramsClass
protected final Class<P> paramsClass
- variable to access the parameters
AbstractTypedParamTool
protected AbstractTypedParamTool(Class<T> sampleType,
Class<P> paramsClass)
- Constructor with type parameters.
- Parameters:
sampleType
- class of the template parameterparamsClass
- interface with parameters
getHelp
public String getHelp(String format)
- Description copied from class:
TypedCmdLineTool
- Retrieves a description on how to use the tool.
- Specified by:
getHelp
in class TypedCmdLineTool<T>
- Parameters:
format
- data format
- Returns:
- a description on how to use the tool
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.