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.CmdLineTool
getShortDescription
in class opennlp.tools.cmdline.CmdLineTool
public String getHelp()
opennlp.tools.cmdline.CmdLineTool
getHelp
in class opennlp.tools.cmdline.CmdLineTool
public 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.BasicCmdLineTool
run
in class opennlp.tools.cmdline.BasicCmdLineTool
args
- argumentsCopyright © 2021 The Apache Software Foundation. All rights reserved.