Package opennlp.tools.parser
Klasse ParserFactory
java.lang.Object
opennlp.tools.parser.ParserFactory
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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.
-
Methodendetails
-
create
Instantiates aParser
via a givenmodel
and other configuration parameters.- Parameter:
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.- Gibt zurück:
- A valid
Parser
instance. - Löst aus:
IllegalStateException
- Thrown if theParserType
is not supported.- Siehe auch:
-
create
Instantiates aParser
via a givenmodel
and default configuration parameters (see:AbstractBottomUpParser
).- Parameter:
model
- TheParserModel
to use.- Gibt zurück:
- A valid
Parser
instance. - Löst aus:
IllegalStateException
- Thrown if theParserType
is not supported.- Siehe auch:
-