Class ChunkerEvaluatorTool
java.lang.Object
opennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.TypedCmdLineTool<ChunkSample, ChunkerEvaluatorTool.EvalToolParams>
opennlp.tools.cmdline.AbstractTypedParamTool<ChunkSample, ChunkerEvaluatorTool.EvalToolParams>
opennlp.tools.cmdline.AbstractEvaluatorTool<ChunkSample, ChunkerEvaluatorTool.EvalToolParams>
opennlp.tools.cmdline.chunker.ChunkerEvaluatorTool
public final class ChunkerEvaluatorTool
extends AbstractEvaluatorTool<ChunkSample, ChunkerEvaluatorTool.EvalToolParams>
A default
ChunkSample-centric implementation of AbstractEvaluatorTool
that prints to an output stream.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface -
Field Summary
FieldsFields inherited from class AbstractEvaluatorTool
factory, params, sampleStreamFields inherited from class AbstractTypedParamTool
paramsClassFields inherited from class TypedCmdLineTool
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the tool with the given parameters.Methods inherited from class AbstractTypedParamTool
getHelpMethods inherited from class TypedCmdLineTool
getBasicHelp, getHelp, getStreamFactory, validateAllArgs, validateFactoryArgsMethods inherited from class CmdLineTool
getBasicHelp, getName, hasParams, validateAndParseParams
-
Field Details
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
ChunkerEvaluatorTool
public ChunkerEvaluatorTool()
-
-
Method Details
-
getShortDescription
- Overrides:
getShortDescriptionin classCmdLineTool- Returns:
- Retrieves a short description of what the tool does
-
run
Description copied from class:TypedCmdLineToolExecutes the tool with the given parameters.- Overrides:
runin classAbstractEvaluatorTool<ChunkSample, ChunkerEvaluatorTool.EvalToolParams>- Parameters:
format- format to work withargs- command line arguments
-