|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.BasicCmdLineTool
opennlp.tools.cmdline.namefind.CensusDictionaryCreatorTool
public class CensusDictionaryCreatorTool
This tool helps create a loadable dictionary for the 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 Summary | |
---|---|
CensusDictionaryCreatorTool()
|
Method Summary | |
---|---|
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. |
Methods inherited from class opennlp.tools.cmdline.CmdLineTool |
---|
getBasicHelp, getBasicHelp, getName, hasParams, validateAndParseParams |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CensusDictionaryCreatorTool()
Method Detail |
---|
public String getShortDescription()
CmdLineTool
getShortDescription
in class CmdLineTool
public String getHelp()
CmdLineTool
getHelp
in class 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)
BasicCmdLineTool
run
in class BasicCmdLineTool
args
- arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |