Package opennlp.tools.parser
Klasse ParserFactory
java.lang.Object
opennlp.tools.parser.ParserFactory
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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.
-
Methodendetails
-
create
Instantiates aParservia a givenmodeland other configuration parameters.- Parameter:
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.- Gibt zurück:
- A valid
Parserinstance. - Löst aus:
IllegalStateException- Thrown if theParserTypeis not supported.- Siehe auch:
-
create
Instantiates aParservia a givenmodeland default configuration parameters (see:AbstractBottomUpParser).- Parameter:
model- TheParserModelto use.- Gibt zurück:
- A valid
Parserinstance. - Löst aus:
IllegalStateException- Thrown if theParserTypeis not supported.- Siehe auch:
-