Package opennlp.tools.parser
Class ParserFactory
java.lang.Object
opennlp.tools.parser.ParserFactory
- 
Method SummaryModifier 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- 
createInstantiates aParservia a givenmodeland other configuration parameters.- Parameters:
- model- The- ParserModelto 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 top- advancePercentagewill be explored.
- Returns:
- A valid Parserinstance.
- Throws:
- IllegalStateException- Thrown if the- ParserTypeis not supported.
- See Also:
 
- 
createInstantiates aParservia a givenmodeland default configuration parameters (see:AbstractBottomUpParser).- Parameters:
- model- The- ParserModelto use.
- Returns:
- A valid Parserinstance.
- Throws:
- IllegalStateException- Thrown if the- ParserTypeis not supported.
- See Also:
 
 
-