public class CensusDictionaryCreatorTool extends 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.
|
getBasicHelp, getBasicHelp, getName, hasParams, validateAndParseParamspublic String getShortDescription()
CmdLineToolgetShortDescription in class CmdLineToolpublic String getHelp()
CmdLineToolgetHelp in class 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)
BasicCmdLineToolrun in class BasicCmdLineToolargs - argumentsCopyright © 2015 The Apache Software Foundation. All rights reserved.