Package opennlp.tools.postag
Klasse POSModel
java.lang.Object
opennlp.tools.util.model.BaseModel
opennlp.tools.postag.POSModel
- Alle implementierten Schnittstellen:
Serializable,ArtifactProvider,SerializableArtifact
- Siehe auch:
-
Feldübersicht
Von Klasse geerbte Felder opennlp.tools.util.model.BaseModel
TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPOSModel(InputStream in) Initializes aPOSModelinstance via a validInputStream.POSModel(String languageCode, MaxentModel posModel, int beamSize, Map<String, String> manifestInfoEntries, POSTaggerFactory posFactory) Initializes aPOSModelinstance via given parameters.POSModel(String languageCode, MaxentModel posModel, Map<String, String> manifestInfoEntries, POSTaggerFactory posFactory) Initializes aPOSModelinstance via given parameters.POSModel(String languageCode, SequenceClassificationModel posModel, Map<String, String> manifestInfoEntries, POSTaggerFactory posFactory) Initializes aPOSModelinstance via given parameters. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanRetrieves the class which can serialize and recreate this artifact.inthashCode()Von Klasse geerbte Methoden opennlp.tools.util.model.BaseModel
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, serialize, serialize
-
Konstruktordetails
-
POSModel
public POSModel(String languageCode, SequenceClassificationModel posModel, Map<String, String> manifestInfoEntries, POSTaggerFactory posFactory) Initializes aPOSModelinstance via given parameters.- Parameter:
languageCode- An ISO conform language code.posModel- A validSequenceClassificationModel.manifestInfoEntries- Additional information kept in the manifest.posFactory- ThePOSTaggerFactoryfor creating related objects.
-
POSModel
public POSModel(String languageCode, MaxentModel posModel, Map<String, String> manifestInfoEntries, POSTaggerFactory posFactory) Initializes aPOSModelinstance via given parameters.- Parameter:
languageCode- An ISO conform language code.posModel- A validMaxentModel.manifestInfoEntries- Additional information kept in the manifest.posFactory- ThePOSTaggerFactoryfor creating related objects.
-
POSModel
public POSModel(String languageCode, MaxentModel posModel, int beamSize, Map<String, String> manifestInfoEntries, POSTaggerFactory posFactory) Initializes aPOSModelinstance via given parameters.- Parameter:
languageCode- An ISO conform language code.posModel- A validMaxentModel.beamSize- The size of the beam that should be used when decoding sequences.manifestInfoEntries- Additional information kept in the manifest.posFactory- ThePOSTaggerFactoryfor creating related objects.
-
POSModel
Initializes aPOSModelinstance via a validInputStream.- Parameter:
in- TheInputStreamused for loading the model.- Löst aus:
IOException- Thrown if IO errors occurred during initialization.
-
POSModel
- Parameter:
modelFile- TheFileused for loading the model.- Löst aus:
IOException- Thrown if IO errors occurred during initialization.
-
POSModel
- Parameter:
modelPath- ThePathused for loading the model.- Löst aus:
IOException- Thrown if IO errors occurred during initialization.
-
POSModel
- Parameter:
modelURL- TheURLused for loading the model.- Löst aus:
IOException- Thrown if IO errors occurred during initialization.
-
-
Methodendetails
-
getPosSequenceModel
- Gibt zurück:
- Retrieves a
SequenceClassificationModel.
-
getFactory
- Gibt zurück:
- Retrieves the active
POSTaggerFactory.
-
getArtifactSerializerClass
Beschreibung aus Schnittstelle kopiert:SerializableArtifactRetrieves the class which can serialize and recreate this artifact.Note: The serializer class must have a
public zero argument constructoror an exception is thrown during model serialization/loading.- Angegeben von:
getArtifactSerializerClassin SchnittstelleSerializableArtifact- Gibt zurück:
- The corresponding
ArtifactSerializerclass.
-
hashCode
public int hashCode() -
equals
-