Class AbstractConverterTool<T>

Namespace
NOpenNLP.Tools.Cmdline
Assembly
nopennlp.dll

Base class for tools which convert a foreign corpus format into the native OpenNLP format, writing the converted samples to standard output.

public abstract class AbstractConverterTool<T> : TypedCmdLineTool

Type Parameters

T
Inheritance
AbstractConverterTool<T>
Derived
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

GetFormatNames()

The format names registered for this tool's sample type, in registration order.

protected override IEnumerable<string> GetFormatNames()

Returns

IEnumerable<string>

GetFormatParameters(string)

The parameters the named format accepts, or null when it is not registered.

protected override IEnumerable<IFormatParameter>? GetFormatParameters(string format)

Parameters

format string

Returns

IEnumerable<IFormatParameter>

GetHelp()

A description of how to use the tool.

public override string GetHelp()

Returns

string

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