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 TypedCmdLineTool
type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractConverterTool(Class<T> sampleType) Constructor with type parameter. -
Method Summary
Methods inherited from class TypedCmdLineTool
getBasicHelp, getStreamFactory, validateAllArgs, validateFactoryArgsMethods inherited from class CmdLineTool
getBasicHelp, getName, hasParams, validateAndParseParams
-
Field Details
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
AbstractConverterTool
-
-
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
-
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
-