Class TokenNameFinderTrainerTool
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
Methods
GetHelp(string)
A description of how to use the tool with the given format.
public override string GetHelp(string format)
Parameters
formatstring
Returns
GetToolOptions()
The options this tool accepts, beyond the selected format's own.
protected override IEnumerable<Option> GetToolOptions()
Returns
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
resourcePathDirectoryInfothe directory in which the resources are to be found
featureGenDescriptorFileInfothe 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
featureGenDescriptorFileFileInfo
Returns
- byte[]
Run(ParseResult)
Runs the tool once its options and the format's have been parsed.
protected override void Run(ParseResult parseResult)
Parameters
parseResultParseResult