public final class TokenNameFinderTrainerTool extends opennlp.tools.cmdline.AbstractTrainerTool<NameSample,opennlp.tools.cmdline.namefind.TokenNameFinderTrainerTool.TrainerToolParams>
| 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.
|
static byte[] |
openFeatureGeneratorBytes(File featureGenDescriptorFile) |
void |
run(String format,
String[] args)
Executes the tool with the given parameters.
|
public String getShortDescription()
opennlp.tools.cmdline.CmdLineToolgetShortDescription in class opennlp.tools.cmdline.CmdLineToolpublic static byte[] openFeatureGeneratorBytes(File featureGenDescriptorFile)
public static Map<String,Object> loadResources(File resourcePath, File featureGenDescriptor) throws IOException
resourcePath - the directory in which the resources are to be foundfeatureGenDescriptor - the feature xml descriptorIOExceptionpublic void run(String format, String[] args)
opennlp.tools.cmdline.TypedCmdLineToolrun in class opennlp.tools.cmdline.AbstractEvaluatorTool<NameSample,opennlp.tools.cmdline.namefind.TokenNameFinderTrainerTool.TrainerToolParams>format - format to work withargs - command line argumentsCopyright © 2021 The Apache Software Foundation. All rights reserved.