public final class POSModel extends BaseModel implements SerializableArtifact
POSTaggerME
,
Serialized FormTRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
Constructor and Description |
---|
POSModel(File modelFile) |
POSModel(InputStream in) |
POSModel(Path modelPath) |
POSModel(String languageCode,
MaxentModel posModel,
int beamSize,
Map<String,String> manifestInfoEntries,
POSTaggerFactory posFactory) |
POSModel(String languageCode,
MaxentModel posModel,
Map<String,String> manifestInfoEntries,
POSTaggerFactory posFactory) |
POSModel(String languageCode,
SequenceClassificationModel<String> posModel,
Map<String,String> manifestInfoEntries,
POSTaggerFactory posFactory) |
POSModel(URL modelURL) |
Modifier and Type | Method and Description |
---|---|
Class<POSModelSerializer> |
getArtifactSerializerClass()
Retrieves the class which can serialize and recreate this artifact.
|
POSTaggerFactory |
getFactory() |
Dictionary |
getNgramDictionary()
Retrieves the ngram dictionary.
|
MaxentModel |
getPosModel()
Deprecated.
use getPosSequenceModel instead. This method will be removed soon.
Only required for Parser 1.5.x backward compatibility. Newer models don't need this anymore.
|
SequenceClassificationModel<String> |
getPosSequenceModel() |
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serialize, serialize, serialize
public POSModel(String languageCode, SequenceClassificationModel<String> posModel, Map<String,String> manifestInfoEntries, POSTaggerFactory posFactory)
public POSModel(String languageCode, MaxentModel posModel, Map<String,String> manifestInfoEntries, POSTaggerFactory posFactory)
public POSModel(String languageCode, MaxentModel posModel, int beamSize, Map<String,String> manifestInfoEntries, POSTaggerFactory posFactory)
public POSModel(InputStream in) throws IOException
IOException
public POSModel(File modelFile) throws IOException
IOException
public POSModel(Path modelPath) throws IOException
IOException
public POSModel(URL modelURL) throws IOException
IOException
@Deprecated public MaxentModel getPosModel()
public SequenceClassificationModel<String> getPosSequenceModel()
public POSTaggerFactory getFactory()
public Dictionary getNgramDictionary()
public Class<POSModelSerializer> getArtifactSerializerClass()
SerializableArtifact
getArtifactSerializerClass
in interface SerializableArtifact
Copyright © 2021 The Apache Software Foundation. All rights reserved.