opennlp.tools.postag
Class POSModel
java.lang.Object
opennlp.tools.util.model.BaseModel
opennlp.tools.postag.POSModel
- All Implemented Interfaces:
- ArtifactProvider
public final class POSModel
- extends BaseModel
The POSModel
is the model used
by a learnable POSTagger
.
- See Also:
POSTaggerME
Constructor Summary |
POSModel(File modelFile)
|
POSModel(InputStream in)
|
POSModel(String languageCode,
opennlp.model.AbstractModel posModel,
Map<String,String> manifestInfoEntries,
POSTaggerFactory posFactory)
|
POSModel(String languageCode,
opennlp.model.AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict)
Deprecated. Use
POSModel(String, AbstractModel, Map, POSTaggerFactory)
instead. |
POSModel(String languageCode,
opennlp.model.AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict,
Map<String,String> manifestInfoEntries)
Deprecated. Use
POSModel(String, AbstractModel, Map, POSTaggerFactory)
instead. |
POSModel(URL modelURL)
|
POS_MODEL_ENTRY_NAME
public static final String POS_MODEL_ENTRY_NAME
- See Also:
- Constant Field Values
POSModel
public POSModel(String languageCode,
opennlp.model.AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict,
Map<String,String> manifestInfoEntries)
- Deprecated. Use
POSModel(String, AbstractModel, Map, POSTaggerFactory)
instead.
POSModel
public POSModel(String languageCode,
opennlp.model.AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict)
- Deprecated. Use
POSModel(String, AbstractModel, Map, POSTaggerFactory)
instead.
POSModel
public POSModel(String languageCode,
opennlp.model.AbstractModel posModel,
Map<String,String> manifestInfoEntries,
POSTaggerFactory posFactory)
POSModel
public POSModel(InputStream in)
throws IOException,
InvalidFormatException
- Throws:
IOException
InvalidFormatException
POSModel
public POSModel(File modelFile)
throws IOException,
InvalidFormatException
- Throws:
IOException
InvalidFormatException
POSModel
public POSModel(URL modelURL)
throws IOException,
InvalidFormatException
- Throws:
IOException
InvalidFormatException
getPosModel
public opennlp.model.AbstractModel getPosModel()
getTagDictionary
public POSDictionary getTagDictionary()
- Deprecated. Use
getFactory()
to get a
POSTaggerFactory
and
POSTaggerFactory.getTagDictionary()
to get a
TagDictionary
.
- Retrieves the tag dictionary.
- Returns:
- tag dictionary or null if not used
- Throws:
IllegalStateException
- if the TagDictionary is not an instance of POSDictionary
getFactory
public POSTaggerFactory getFactory()
getNgramDictionary
public Dictionary getNgramDictionary()
- Retrieves the ngram dictionary.
- Returns:
- ngram dictionary or null if not used
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.