Package opennlp.tools.parser
Klasse ParserModel
java.lang.Object
opennlp.tools.util.model.BaseModel
opennlp.tools.parser.ParserModel
- Alle implementierten Schnittstellen:
- Serializable,- ArtifactProvider
This is the default 
ParserModel implementation.- Siehe auch:
- 
FeldübersichtVon Klasse geerbte Felder opennlp.tools.util.model.BaseModelTRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
- 
KonstruktorübersichtKonstruktorenKonstruktorBeschreibungParserModel(File modelFile) Initializes aParserModelinstance via a validFile.Initializes aParserModelinstance via a validInputStream.ParserModel(String languageCode, MaxentModel buildModel, MaxentModel checkModel, MaxentModel attachModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType modelType) Initializes aParserModelinstance via given parameters.ParserModel(String languageCode, MaxentModel buildModel, MaxentModel checkModel, MaxentModel attachModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType modelType, Map<String, String> manifestInfoEntries) Initializes aParserModelinstance via given parameters.ParserModel(String languageCode, MaxentModel buildModel, MaxentModel checkModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType type, Map<String, String> manifestInfoEntries) Initializes aParserModelinstance via given parameters.ParserModel(URL modelURL) Initializes aParserModelinstance via a validURL.ParserModel(Path modelPath) Initializes aParserModelinstance via a validPath.
- 
MethodenübersichtModifizierer und TypMethodeBeschreibungbooleaninthashCode()updateBuildModel(MaxentModel buildModel) Instantiates a newParserModelinstance from the existing configuration with the specifiedbuildModelfor exchange.updateCheckModel(MaxentModel checkModel) Instantiates a newParserModelinstance from the existing configuration with the specifiedcheckModelfor exchange.updateChunkerModel(ChunkerModel chunkModel) Instantiates a newParserModelinstance from the existing configuration with the specifiedchunkModelfor exchange.updateTaggerModel(POSModel taggerModel) Instantiates a newParserModelinstance from the existing configuration with the specifiedtaggerModelfor exchange.Von Klasse geerbte Methoden opennlp.tools.util.model.BaseModelgetArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, serialize, serialize
- 
Konstruktordetails- 
ParserModelpublic ParserModel(String languageCode, MaxentModel buildModel, MaxentModel checkModel, MaxentModel attachModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType modelType, Map<String, String> manifestInfoEntries) Initializes aParserModelinstance via given parameters.- Parameter:
- languageCode- An ISO conform language code.
- buildModel- A valid- MaxentModelused to build.
- checkModel- A valid- MaxentModelused to check.
- attachModel- A valid- MaxentModelused to attach.
- parserTagger- A valid- POSModelto parse.
- chunkerTagger- A valid- ChunkerModelto chunk.
- headRules- The- HeadRulesto to use for parsing.
- modelType- The- ParserTypeto use.
- manifestInfoEntries- Additional information kept in the manifest.
 
- 
ParserModelpublic ParserModel(String languageCode, MaxentModel buildModel, MaxentModel checkModel, MaxentModel attachModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType modelType) Initializes aParserModelinstance via given parameters.- Parameter:
- languageCode- An ISO conform language code.
- buildModel- A valid- MaxentModelused to build.
- checkModel- A valid- MaxentModelused to check.
- parserTagger- A valid- POSModelto parse.
- chunkerTagger- A valid- ChunkerModelto chunk.
- headRules- The- HeadRulesto to use for parsing.
- modelType- The- ParserTypeto use.
 
- 
ParserModelpublic ParserModel(String languageCode, MaxentModel buildModel, MaxentModel checkModel, POSModel parserTagger, ChunkerModel chunkerTagger, HeadRules headRules, ParserType type, Map<String, String> manifestInfoEntries) Initializes aParserModelinstance via given parameters.- Parameter:
- languageCode- An ISO conform language code.
- buildModel- A valid- MaxentModelused to build.
- checkModel- A valid- MaxentModelused to check.
- parserTagger- A valid- POSModelto parse.
- chunkerTagger- A valid- ChunkerModelto chunk.
- headRules- The- HeadRulesto to use for parsing.
- type- The- ParserTypeto use.
- manifestInfoEntries- Additional information kept in the manifest.
 
- 
ParserModelInitializes aParserModelinstance via a validInputStream.- Parameter:
- in- The- InputStreamused for loading the model.
- Löst aus:
- IOException- Thrown if IO errors occurred during initialization.
 
- 
ParserModelInitializes aParserModelinstance via a validFile.- Parameter:
- modelFile- The- Fileused for loading the model.
- Löst aus:
- IOException- Thrown if IO errors occurred during initialization.
 
- 
ParserModelInitializes aParserModelinstance via a validPath.- Parameter:
- modelPath- The- Pathused for loading the model.
- Löst aus:
- IOException- Thrown if IO errors occurred during initialization.
 
- 
ParserModelInitializes aParserModelinstance via a validURL.- Parameter:
- modelURL- The- URLused for loading the model.
- Löst aus:
- IOException- Thrown if IO errors occurred during initialization.
 
 
- 
- 
Methodendetails- 
getParserType- Gibt zurück:
- Retrieves the ParserTypeas configured in the manifest.
 
- 
getBuildModel- Gibt zurück:
- Retrieves the build modelas configured in the manifest.
 
- 
getCheckModel- Gibt zurück:
- Retrieves the check modelas configured in the manifest.
 
- 
getAttachModel- Gibt zurück:
- Retrieves the attach modelas configured in the manifest.
 
- 
getParserTaggerModel- Gibt zurück:
- Retrieves the POSModelas configured in the manifest.
 
- 
getParserChunkerModel- Gibt zurück:
- Retrieves the ChunkerModelas configured in the manifest.
 
- 
getHeadRules- Gibt zurück:
- Retrieves the HeadRulesas configured in the manifest.
 
- 
updateBuildModelInstantiates a newParserModelinstance from the existing configuration with the specifiedbuildModelfor exchange.- Parameter:
- buildModel- A valid- MaxentModelused to build.
- Gibt zurück:
- A valid ParserModel.
 
- 
updateCheckModelInstantiates a newParserModelinstance from the existing configuration with the specifiedcheckModelfor exchange.- Parameter:
- checkModel- A valid- MaxentModelused to check.
- Gibt zurück:
- A valid ParserModel.
 
- 
updateTaggerModelInstantiates a newParserModelinstance from the existing configuration with the specifiedtaggerModelfor exchange.- Parameter:
- taggerModel- A valid- POSModelused to tag.
- Gibt zurück:
- A valid ParserModel.
 
- 
updateChunkerModelInstantiates a newParserModelinstance from the existing configuration with the specifiedchunkModelfor exchange.- Parameter:
- chunkModel- A valid- ChunkerModelused to tag.
- Gibt zurück:
- A valid ParserModel.
 
- 
hashCodepublic int hashCode()
- 
equals
 
-