public final class POSModel extends BaseModel
POSTaggerME| Modifier and Type | Field and Description |
|---|---|
static String |
POS_MODEL_ENTRY_NAME |
TRAINING_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,
MaxentModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict)
Deprecated.
Use
POSModel(String, MaxentModel, Map, POSTaggerFactory)
instead. |
POSModel(String languageCode,
MaxentModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict,
Map<String,String> manifestInfoEntries)
Deprecated.
Use
POSModel(String, MaxentModel, Map, POSTaggerFactory)
instead. |
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.
|
SequenceClassificationModel<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 String POS_MODEL_ENTRY_NAME
public POSModel(String languageCode, MaxentModel posModel, POSDictionary tagDictionary, Dictionary ngramDict, Map<String,String> manifestInfoEntries)
POSModel(String, MaxentModel, Map, POSTaggerFactory)
instead.public POSModel(String languageCode, MaxentModel posModel, POSDictionary tagDictionary, Dictionary ngramDict)
POSModel(String, MaxentModel, Map, POSTaggerFactory)
instead.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, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic POSModel(File modelFile) throws IOException, InvalidFormatException
IOExceptionInvalidFormatExceptionpublic POSModel(URL modelURL) throws IOException, InvalidFormatException
IOExceptionInvalidFormatException@Deprecated public MaxentModel getPosModel()
public SequenceClassificationModel<String> getPosSequenceModel()
public POSDictionary getTagDictionary()
getFactory() to get a
POSTaggerFactory and
POSTaggerFactory.getTagDictionary() to get a
TagDictionary.IllegalStateException - if the TagDictionary is not an instance of POSDictionarypublic POSTaggerFactory getFactory()
public Dictionary getNgramDictionary()
Copyright © 2015 The Apache Software Foundation. All rights reserved.