Package opennlp.tools.parser
Class ParserFactory
java.lang.Object
opennlp.tools.parser.ParserFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic Parsercreate(ParserModel model) Instantiates aParservia a givenmodeland default configuration parameters (see:AbstractBottomUpParser).static Parsercreate(ParserModel model, int beamSize, double advancePercentage) Instantiates aParservia a givenmodeland other configuration parameters.
-
Method Details
-
create
Instantiates aParservia a givenmodeland other configuration parameters.- Parameters:
model- TheParserModelto use.beamSize- The number of different parses kept during parsing.advancePercentage- The minimal amount of probability mass which advanced outcomes must represent. Only outcomes which contribute to the topadvancePercentagewill be explored.- Returns:
- A valid
Parserinstance. - Throws:
IllegalStateException- Thrown if theParserTypeis not supported.- See Also:
-
create
Instantiates aParservia a givenmodeland default configuration parameters (see:AbstractBottomUpParser).- Parameters:
model- TheParserModelto use.- Returns:
- A valid
Parserinstance. - Throws:
IllegalStateException- Thrown if theParserTypeis not supported.- See Also:
-