|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopennlp.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)
|
String |
getHelp()
Gets the expected usage of the tool as an example. |
String |
getName()
Gets the name for the tool. |
String |
getShortDescription()
Gets a short description for the tool. |
void |
run(String[] args)
This method is much like the old main() method used in prior class construction, and allows another main class to run() this classes method to perform the operations. |
| 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 getName()
getName in interface CmdLineToolString a name to be used to call this class.public String getShortDescription()
getShortDescription in interface CmdLineToolString a short description describing the purpose of
the tool to the user.public String getHelp()
getHelp in interface CmdLineToolString a descriptive example on how to properly call
the tool from the command line.
public static Dictionary createDictionary(ObjectStream<StringList> sampleStream)
throws IOException
sampleStream -
Dictionary class containing the name dictionary
built from the input file.
IOExceptionpublic void run(String[] args)
run in interface CmdLineToolargs - a String[] array of arguments passed to the run method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||