Class CensusDictionaryCreatorTool

Namespace
NOpenNLP.Tools.Cmdline.Namefind
Assembly
nopennlp.dll

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

public class CensusDictionaryCreatorTool : BasicCmdLineTool
Inheritance
CensusDictionaryCreatorTool
Inherited Members

Properties

ShortDescription

A short description of what the tool does, shown in the usage listing.

public override string ShortDescription { get; }

Property Value

string

Methods

CreateCommand(string)

Builds the command that parses this tool's arguments and runs it.

public override Command CreateCommand(string commandName)

Parameters

commandName string

the name the user typed, which for a typed tool includes the .format suffix and so is not always Name

Returns

Command

CreateDictionary(IObjectStream<StringList?>)

Creates a dictionary.

public static Dictionary CreateDictionary(IObjectStream<StringList?> sampleStream)

Parameters

sampleStream IObjectStream<StringList>

stream of samples.

Returns

Dictionary

a Dictionary class containing the name dictionary built from the input file.

Exceptions

IOException

IOException

GetHelp()

A description of how to use the tool.

public override string GetHelp()

Returns

string

Run(string[])

Executes the tool with the given positional arguments.

public override void Run(string[] args)

Parameters

args string[]