opennlp.tools.postag
Class POSModel
java.lang.Object
opennlp.tools.util.model.BaseModel
opennlp.tools.postag.POSModel
public final class POSModel
- extends BaseModel
The POSModel
is the model used
by a learnable POSTagger
.
- See Also:
POSTaggerME
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POSModel
public POSModel(java.lang.String languageCode,
AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict,
java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries)
POSModel
public POSModel(java.lang.String languageCode,
AbstractModel posModel,
POSDictionary tagDictionary,
Dictionary ngramDict)
POSModel
public POSModel(java.io.InputStream in)
throws java.io.IOException,
InvalidFormatException
- Throws:
java.io.IOException
InvalidFormatException
getPosModel
public AbstractModel getPosModel()
getTagDictionary
public POSDictionary getTagDictionary()
- Retrieves the tag dictionary.
- Returns:
- tag dictionary or null if not used
getNgramDictionary
public Dictionary getNgramDictionary()
- Retrieves the ngram dictionary.
- Returns:
- ngram dictionary or null if not used
usage
public static void usage()
main
@Deprecated
public static void main(java.lang.String[] args)
throws java.io.IOException,
InvalidFormatException
- Deprecated.
- Throws:
java.io.IOException
InvalidFormatException
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.