Package opennlp.tools.cmdline.namefind
Klasse CensusDictionaryCreatorTool
java.lang.Object
opennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.BasicCmdLineTool
opennlp.tools.cmdline.namefind.CensusDictionaryCreatorTool
public class CensusDictionaryCreatorTool
extends opennlp.tools.cmdline.BasicCmdLineTool
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
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic DictionarycreateDictionary(ObjectStream<StringList> sampleStream) Creates a dictionary.getHelp()voidExecutes the tool with the given parameters.Von Klasse geerbte Methoden opennlp.tools.cmdline.CmdLineTool
getName, hasParams
-
Konstruktordetails
-
CensusDictionaryCreatorTool
public CensusDictionaryCreatorTool()
-
-
Methodendetails
-
getShortDescription
- Setzt außer Kraft:
getShortDescriptionin Klasseopennlp.tools.cmdline.CmdLineTool- Gibt zurück:
- Retrieves a short description of what the tool does
-
getHelp
- Angegeben von:
getHelpin Klasseopennlp.tools.cmdline.CmdLineTool- Gibt zurück:
- Retrieves a description on how to use the tool
-
createDictionary
Creates a dictionary.- Parameter:
sampleStream- stream of samples.- Gibt zurück:
- a
Dictionaryclass containing the name dictionary built from the input file. - Löst aus:
IOException- IOException
-
run
Beschreibung aus Klasse kopiert:opennlp.tools.cmdline.BasicCmdLineToolExecutes the tool with the given parameters.- Angegeben von:
runin Klasseopennlp.tools.cmdline.BasicCmdLineTool- Parameter:
args- arguments
-