Package opennlp.tools.cmdline
Class AbstractConverterTool<T,P>
java.lang.Object
opennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.TypedCmdLineTool<T,P>
opennlp.tools.cmdline.AbstractConverterTool<T,P>
- Type Parameters:
T- The class of data sample the tool converts, for examplePOSSample
- Direct Known Subclasses:
ChunkerConverterTool,DoccatConverterTool,LanguageDetectorConverterTool,ParserConverterTool,POSTaggerConverterTool,SentenceDetectorConverterTool,TokenizerConverterTool,TokenNameFinderConverterTool
Base class for format conversion tools.
-
Field Summary
FieldsFields inherited from class opennlp.tools.cmdline.TypedCmdLineTool
type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractConverterTool(Class<T> sampleType) Constructor with type parameter. -
Method Summary
Methods inherited from class opennlp.tools.cmdline.TypedCmdLineTool
getBasicHelp, getStreamFactory, validateAllArgs, validateFactoryArgsMethods inherited from class opennlp.tools.cmdline.CmdLineTool
getBasicHelp, getName, hasParams, validateAndParseParams
-
Field Details
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
AbstractConverterTool
Constructor with type parameter.- Parameters:
sampleType- class of the template parameter
-
-
Method Details
-
getShortDescription
- Overrides:
getShortDescriptionin classCmdLineTool- Returns:
- Retrieves a short description of what the tool does
-
createHelpString
-
getHelp
- Overrides:
getHelpin classTypedCmdLineTool<T,P> - Returns:
- Retrieves a description on how to use the tool
-
getHelp
- Specified by:
getHelpin classTypedCmdLineTool<T,P> - Parameters:
format- data format- Returns:
- Retrieves a description on how to use the tool.
-
run
Description copied from class:TypedCmdLineToolExecutes the tool with the given parameters.- Specified by:
runin classTypedCmdLineTool<T,P> - Parameters:
format- format to work withargs- command line arguments
-