Class ParserTrainerTool
java.lang.Object
opennlp.tools.cmdline.CmdLineTool
opennlp.tools.cmdline.TypedCmdLineTool<Parse, ParserTrainerTool.TrainerToolParams>
opennlp.tools.cmdline.AbstractTypedParamTool<Parse, ParserTrainerTool.TrainerToolParams>
opennlp.tools.cmdline.AbstractEvaluatorTool<Parse, ParserTrainerTool.TrainerToolParams>
opennlp.tools.cmdline.AbstractTrainerTool<Parse, ParserTrainerTool.TrainerToolParams>
opennlp.tools.cmdline.parser.ParserTrainerTool
public final class ParserTrainerTool
extends AbstractTrainerTool<Parse, ParserTrainerTool.TrainerToolParams>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface -
Field Summary
FieldsFields inherited from class AbstractTrainerTool
mlParamsFields inherited from class AbstractEvaluatorTool
factory, params, sampleStreamFields inherited from class AbstractTypedParamTool
paramsClassFields inherited from class TypedCmdLineTool
type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static DictionarybuildDictionary(ObjectStream<Parse> parseSamples, HeadRules headRules, int cutoff) (package private) static HeadRules(package private) static ParserTypeparseParserType(String typeAsString) voidExecutes the tool with the given parameters.Methods inherited from class AbstractTrainerTool
createTerminationIOExceptionMethods inherited from class AbstractTypedParamTool
getHelpMethods inherited from class TypedCmdLineTool
getBasicHelp, getHelp, getStreamFactory, validateAllArgs, validateFactoryArgsMethods inherited from class CmdLineTool
getBasicHelp, getName, hasParams, validateAndParseParams
-
Field Details
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
ParserTrainerTool
public ParserTrainerTool()
-
-
Method Details
-
getShortDescription
- Overrides:
getShortDescriptionin classCmdLineTool- Returns:
- Retrieves a short description of what the tool does
-
buildDictionary
static Dictionary buildDictionary(ObjectStream<Parse> parseSamples, HeadRules headRules, int cutoff) -
parseParserType
-
createHeadRules
- Throws:
IOException
-
run
Description copied from class:TypedCmdLineToolExecutes the tool with the given parameters.- Overrides:
runin classAbstractEvaluatorTool<Parse, ParserTrainerTool.TrainerToolParams>- Parameters:
format- format to work withargs- command line arguments
-