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

  • Konstruktordetails

    • CensusDictionaryCreatorTool

      public CensusDictionaryCreatorTool()
  • Methodendetails

    • getShortDescription

      public String getShortDescription()
      Setzt außer Kraft:
      getShortDescription in Klasse opennlp.tools.cmdline.CmdLineTool
      Gibt zurück:
      Retrieves a short description of what the tool does
    • getHelp

      public String getHelp()
      Angegeben von:
      getHelp in Klasse opennlp.tools.cmdline.CmdLineTool
      Gibt zurück:
      Retrieves a description on how to use the tool
    • createDictionary

      public static Dictionary createDictionary(ObjectStream<StringList> sampleStream) throws IOException
      Creates a dictionary.
      Parameter:
      sampleStream - stream of samples.
      Gibt zurück:
      a Dictionary class containing the name dictionary built from the input file.
      Löst aus:
      IOException - IOException
    • run

      public void run(String[] args)
      Beschreibung aus Klasse kopiert: opennlp.tools.cmdline.BasicCmdLineTool
      Executes the tool with the given parameters.
      Angegeben von:
      run in Klasse opennlp.tools.cmdline.BasicCmdLineTool
      Parameter:
      args - arguments