Class ModelUpdaterTool
Abstract base class for tools which update the parser model.
public abstract class ModelUpdaterTool : AbstractEvaluatorTool<Parse?>
- Inheritance
-
ModelUpdaterTool
- Derived
- Inherited Members
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
Run(ParseResult)
Runs the tool once its options and the format's have been parsed.
protected override sealed void Run(ParseResult parseResult)
Parameters
parseResultParseResult
TrainAndUpdate(ParserModel, IObjectStream<Parse?>)
protected abstract ParserModel TrainAndUpdate(ParserModel originalModel, IObjectStream<Parse?> parseSamples)
Parameters
originalModelParserModelparseSamplesIObjectStream<Parse>
Returns
Exceptions
- IOException
if reading the samples fails