Class ModelUpdaterTool

Namespace
NOpenNLP.Tools.Cmdline.Parser
Assembly
nopennlp.dll

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

format string

Returns

string

GetToolOptions()

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

protected override IEnumerable<Option> GetToolOptions()

Returns

IEnumerable<Option>

Run(ParseResult)

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

protected override sealed void Run(ParseResult parseResult)

Parameters

parseResult ParseResult

TrainAndUpdate(ParserModel, IObjectStream<Parse?>)

protected abstract ParserModel TrainAndUpdate(ParserModel originalModel, IObjectStream<Parse?> parseSamples)

Parameters

originalModel ParserModel
parseSamples IObjectStream<Parse>

Returns

ParserModel

Exceptions

IOException

if reading the samples fails