public class CensusDictionaryCreatorTool
extends opennlp.tools.cmdline.BasicCmdLineTool
NameFinder,
from data collected from US Census data.
Data for the US Census and names can be found here for the 1990 Census:
www.census.gov
| Constructor and Description |
|---|
CensusDictionaryCreatorTool() |
| Modifier and Type | Method and Description |
|---|---|
static Dictionary |
createDictionary(ObjectStream<StringList> sampleStream)
Creates a dictionary.
|
String |
getHelp()
Retrieves a description on how to use the tool.
|
String |
getShortDescription()
Retrieves a short description of what the tool does.
|
void |
run(String[] args)
Executes the tool with the given parameters.
|
public String getShortDescription()
opennlp.tools.cmdline.CmdLineToolgetShortDescription in class opennlp.tools.cmdline.CmdLineToolpublic String getHelp()
opennlp.tools.cmdline.CmdLineToolgetHelp in class opennlp.tools.cmdline.CmdLineToolpublic static Dictionary createDictionary(ObjectStream<StringList> sampleStream) throws IOException
sampleStream - stream of samples.Dictionary class containing the name dictionary
built from the input file.IOException - IOExceptionpublic void run(String[] args)
opennlp.tools.cmdline.BasicCmdLineToolrun in class opennlp.tools.cmdline.BasicCmdLineToolargs - argumentsCopyright © 2021 The Apache Software Foundation. All rights reserved.