public final class TokenNameFinderTrainerTool extends AbstractTrainerTool<NameSample,opennlp.tools.cmdline.namefind.TokenNameFinderTrainerTool.TrainerToolParams>
factory, mlParams, params, sampleStream
paramsClass
type
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.
|
getHelp
getBasicHelp, getHelp, getStreamFactory, validateAllArgs, validateFactoryArgs
getBasicHelp, getName, hasParams, validateAndParseParams
public String getShortDescription()
CmdLineTool
getShortDescription
in class CmdLineTool
public 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)
TypedCmdLineTool
run
in class AbstractTrainerTool<NameSample,opennlp.tools.cmdline.namefind.TokenNameFinderTrainerTool.TrainerToolParams>
format
- format to work withargs
- command line argumentsCopyright © 2015 The Apache Software Foundation. All rights reserved.