Class TokenNameFinderTrainerTool

Namespace
NOpenNLP.Tools.Cmdline.Namefind
Assembly
nopennlp.dll
public sealed class TokenNameFinderTrainerTool : AbstractTrainerTool<NameSample?>
Inheritance
TokenNameFinderTrainerTool
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

GetHelp(string)

A description of how to use the tool with the given format.

public override string GetHelp(string format)

Parameters

format string

Returns

string

GetToolOptions()

The options this tool accepts, beyond the selected format's own.

protected override IEnumerable<Option> GetToolOptions()

Returns

IEnumerable<Option>

LoadResources(DirectoryInfo?, FileInfo?)

Load the resources, such as dictionaries, by reading the feature xml descriptor and looking into the directory passed as argument.

public static IDictionary<string, object> LoadResources(DirectoryInfo? resourcePath, FileInfo? featureGenDescriptor)

Parameters

resourcePath DirectoryInfo

the directory in which the resources are to be found

featureGenDescriptor FileInfo

the feature xml descriptor

Returns

IDictionary<string, object>

a map consisting of the file name of the resource and its corresponding Object

Exceptions

IOException

if a resource cannot be read

OpenFeatureGeneratorBytes(FileInfo?)

public static byte[]? OpenFeatureGeneratorBytes(FileInfo? featureGenDescriptorFile)

Parameters

featureGenDescriptorFile FileInfo

Returns

byte[]

Run(ParseResult)

Runs the tool once its options and the format's have been parsed.

protected override void Run(ParseResult parseResult)

Parameters

parseResult ParseResult