public final class TokenNameFinderTrainerTool extends AbstractTrainerTool<NameSample,opennlp.tools.cmdline.namefind.TokenNameFinderTrainerTool.TrainerToolParams>
mlParamsfactory, params, sampleStreamparamsClasstype| Constructor and Description |
|---|
TokenNameFinderTrainerTool() |
| Modifier and Type | Method and Description |
|---|---|
String |
getShortDescription()
Retrieves a short description of what the tool does.
|
static Map<String,Object> |
loadResources(File resourcePath,
File featureGenDescriptor)
Load the resources, such as dictionaries, by reading the feature xml descriptor
and looking into the directory passed as argument.
|
void |
run(String format,
String[] args)
Executes the tool with the given parameters.
|
createTerminationIOExceptiongetHelpgetBasicHelp, getHelp, getStreamFactory, validateAllArgs, validateFactoryArgsgetBasicHelp, getName, hasParams, validateAndParseParamspublic String getShortDescription()
CmdLineToolgetShortDescription in class CmdLineToolpublic static Map<String,Object> loadResources(File resourcePath, File featureGenDescriptor)
resourcePath - the directory in which the resources are to be foundfeatureGenDescriptor - the feature xml descriptorpublic void run(String format, String[] args)
TypedCmdLineToolrun in class AbstractEvaluatorTool<NameSample,opennlp.tools.cmdline.namefind.TokenNameFinderTrainerTool.TrainerToolParams>format - format to work withargs - command line argumentsCopyright © 2017 The Apache Software Foundation. All rights reserved.