Class ModelUpdaterTool
java.lang.Object
opennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.TypedCmdLineTool<Parse, ModelUpdaterTool.ModelUpdaterParams>
opennlp.tools.cmdline.AbstractTypedParamTool<Parse, ModelUpdaterTool.ModelUpdaterParams>
opennlp.tools.cmdline.parser.ModelUpdaterTool
- Direct Known Subclasses:
BuildModelUpdaterTool, CheckModelUpdaterTool
abstract class ModelUpdaterTool
extends AbstractTypedParamTool<Parse, ModelUpdaterTool.ModelUpdaterParams>
Abstract base class for tools which update the parser model.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface -
Field Summary
Fields inherited from class AbstractTypedParamTool
paramsClassFields inherited from class TypedCmdLineTool
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidExecutes the tool with the given parameters.protected abstract ParserModeltrainAndUpdate(ParserModel originalModel, ObjectStream<Parse> parseSamples, ModelUpdaterTool.ModelUpdaterParams parameters) Methods inherited from class AbstractTypedParamTool
getHelpMethods inherited from class TypedCmdLineTool
getBasicHelp, getHelp, getStreamFactory, validateAllArgs, validateFactoryArgsMethods inherited from class CmdLineTool
getBasicHelp, getName, getShortDescription, hasParams, validateAndParseParams
-
Constructor Details
-
ModelUpdaterTool
protected ModelUpdaterTool()
-
-
Method Details
-
trainAndUpdate
protected abstract ParserModel trainAndUpdate(ParserModel originalModel, ObjectStream<Parse> parseSamples, ModelUpdaterTool.ModelUpdaterParams parameters) throws IOException - Throws:
IOException
-
run
Description copied from class:TypedCmdLineToolExecutes the tool with the given parameters.- Specified by:
runin classTypedCmdLineTool<Parse, ModelUpdaterTool.ModelUpdaterParams>- Parameters:
format- format to work withargs- command line arguments
-