public final class POSModel extends BaseModel
POSTaggerME
,
Serialized FormTRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
Constructor and Description |
---|
POSModel(File modelFile) |
POSModel(InputStream in) |
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 |
---|---|
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
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(URL modelURL) throws IOException
IOException
@Deprecated public MaxentModel getPosModel()
public SequenceClassificationModel<String> getPosSequenceModel()
public POSTaggerFactory getFactory()
public Dictionary getNgramDictionary()
Copyright © 2017 The Apache Software Foundation. All rights reserved.