Class AbstractConverterTool<T>
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
Methods
CreateCommand(string)
Builds the command that parses this tool's arguments and runs it.
public override Command CreateCommand(string commandName)
Parameters
commandNamestringthe name the user typed, which for a typed tool includes the
.formatsuffix and so is not always Name
Returns
GetFormatNames()
The format names registered for this tool's sample type, in registration order.
protected override IEnumerable<string> GetFormatNames()
Returns
GetFormatParameters(string)
The parameters the named format accepts, or null when it is not registered.
protected override IEnumerable<IFormatParameter>? GetFormatParameters(string format)
Parameters
formatstring
Returns
GetHelp()
A description of how to use the tool.
public override string GetHelp()
Returns
GetHelp(string)
A description of how to use the tool with the given format.
public override string GetHelp(string format)
Parameters
formatstring