|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object opennlp.tools.util.model.BaseModel opennlp.tools.postag.POSModel
public final class POSModel
The POSModel
is the model used
by a learnable POSTagger
.
POSTaggerME
Field Summary |
---|
Fields inherited from class opennlp.tools.util.model.BaseModel |
---|
artifactMap, MANIFEST_ENTRY, TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY |
Constructor Summary | |
---|---|
POSModel(InputStream in)
|
|
POSModel(String languageCode,
opennlp.model.AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict)
|
|
POSModel(String languageCode,
opennlp.model.AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict,
Map<String,String> manifestInfoEntries)
|
Method Summary | |
---|---|
protected void |
createArtifactSerializers(Map<String,ArtifactSerializer> serializers)
Registers all ArtifactSerializer for their artifact file name extensions. |
Dictionary |
getNgramDictionary()
Retrieves the ngram dictionary. |
opennlp.model.AbstractModel |
getPosModel()
|
POSDictionary |
getTagDictionary()
Retrieves the tag dictionary. |
static void |
main(String[] args)
Deprecated. |
static void |
usage()
|
protected void |
validateArtifactMap()
Validates the parsed artifacts. |
Methods inherited from class opennlp.tools.util.model.BaseModel |
---|
getArtifactSerializer, getLanguage, getManifestProperty, getVersion, serialize, setManifestProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public POSModel(String languageCode, opennlp.model.AbstractModel posModel, POSDictionary tagDictionary, Dictionary ngramDict, Map<String,String> manifestInfoEntries)
public POSModel(String languageCode, opennlp.model.AbstractModel posModel, POSDictionary tagDictionary, Dictionary ngramDict)
public POSModel(InputStream in) throws IOException, InvalidFormatException
IOException
InvalidFormatException
Method Detail |
---|
protected void createArtifactSerializers(Map<String,ArtifactSerializer> serializers)
BaseModel
ArtifactSerializer
for their artifact file name extensions.
The registered ArtifactSerializer
are used to create and serialize
resources in the model package.
Override this method to register custom ArtifactSerializer
s.
Note:
Subclasses should generally invoke super.createArtifactSerializers at the beginning
of this method.
This method is called during construction.
createArtifactSerializers
in class BaseModel
serializers
- the key of the map is the file extension used to lookup
the ArtifactSerializer
.protected void validateArtifactMap() throws InvalidFormatException
BaseModel
InvalidFormatException
.
Note:
Subclasses should generally invoke super.validateArtifactMap at the beginning
of this method.
validateArtifactMap
in class BaseModel
InvalidFormatException
public opennlp.model.AbstractModel getPosModel()
public POSDictionary getTagDictionary()
public Dictionary getNgramDictionary()
public static void usage()
@Deprecated public static void main(String[] args) throws IOException, InvalidFormatException
IOException
InvalidFormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |