public final class POSModel extends BaseModel
POSTaggerME| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
POS_MODEL_ENTRY_NAME |
TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY| Constructor and Description |
|---|
POSModel(java.io.File modelFile) |
POSModel(java.io.InputStream in) |
POSModel(java.lang.String languageCode,
MaxentModel posModel,
int beamSize,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries,
POSTaggerFactory posFactory) |
POSModel(java.lang.String languageCode,
MaxentModel posModel,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries,
POSTaggerFactory posFactory) |
POSModel(java.lang.String languageCode,
MaxentModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict)
Deprecated.
Use
POSModel(String, MaxentModel, Map, POSTaggerFactory)
instead. |
POSModel(java.lang.String languageCode,
MaxentModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries)
Deprecated.
Use
POSModel(String, MaxentModel, Map, POSTaggerFactory)
instead. |
POSModel(java.lang.String languageCode,
SequenceClassificationModel<java.lang.String> posModel,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries,
POSTaggerFactory posFactory) |
POSModel(java.net.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.
|
SequenceClassificationModel<java.lang.String> |
getPosSequenceModel() |
POSDictionary |
getTagDictionary()
Deprecated.
Use
getFactory() to get a
POSTaggerFactory and
POSTaggerFactory.getTagDictionary() to get a
TagDictionary. |
getArtifact, getLanguage, getManifestProperty, getVersion, isLoadedFromSerialized, serializepublic static final java.lang.String POS_MODEL_ENTRY_NAME
public POSModel(java.lang.String languageCode,
MaxentModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries)
POSModel(String, MaxentModel, Map, POSTaggerFactory)
instead.public POSModel(java.lang.String languageCode,
MaxentModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict)
POSModel(String, MaxentModel, Map, POSTaggerFactory)
instead.public POSModel(java.lang.String languageCode,
SequenceClassificationModel<java.lang.String> posModel,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries,
POSTaggerFactory posFactory)
public POSModel(java.lang.String languageCode,
MaxentModel posModel,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries,
POSTaggerFactory posFactory)
public POSModel(java.lang.String languageCode,
MaxentModel posModel,
int beamSize,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries,
POSTaggerFactory posFactory)
public POSModel(java.io.InputStream in)
throws java.io.IOException,
InvalidFormatException
java.io.IOExceptionInvalidFormatExceptionpublic POSModel(java.io.File modelFile)
throws java.io.IOException,
InvalidFormatException
java.io.IOExceptionInvalidFormatExceptionpublic POSModel(java.net.URL modelURL)
throws java.io.IOException,
InvalidFormatException
java.io.IOExceptionInvalidFormatException@Deprecated public MaxentModel getPosModel()
public SequenceClassificationModel<java.lang.String> getPosSequenceModel()
public POSDictionary getTagDictionary()
getFactory() to get a
POSTaggerFactory and
POSTaggerFactory.getTagDictionary() to get a
TagDictionary.java.lang.IllegalStateException - if the TagDictionary is not an instance of POSDictionarypublic POSTaggerFactory getFactory()
public Dictionary getNgramDictionary()
Copyright © 2010 - 2020 Adobe. All Rights Reserved