Package opennlp.tools.parser
Class ParserFactory
java.lang.Object
opennlp.tools.parser.ParserFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic Parser
create
(ParserModel model) Instantiates aParser
via a givenmodel
and default configuration parameters (see:AbstractBottomUpParser
).static Parser
create
(ParserModel model, int beamSize, double advancePercentage) Instantiates aParser
via a givenmodel
and other configuration parameters.
-
Method Details
-
create
Instantiates aParser
via a givenmodel
and other configuration parameters.- Parameters:
model
- TheParserModel
to 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 topadvancePercentage
will be explored.- Returns:
- A valid
Parser
instance. - Throws:
IllegalStateException
- Thrown if theParserType
is not supported.- See Also:
-
create
Instantiates aParser
via a givenmodel
and default configuration parameters (see:AbstractBottomUpParser
).- Parameters:
model
- TheParserModel
to use.- Returns:
- A valid
Parser
instance. - Throws:
IllegalStateException
- Thrown if theParserType
is not supported.- See Also:
-