opennlp.tools.postag
Class POSModel

java.lang.Object
  extended by opennlp.tools.util.model.BaseModel
      extended by opennlp.tools.postag.POSModel

public final class POSModel
extends BaseModel

The POSModel is the model used by a learnable POSTagger.

See Also:
POSTaggerME

Field Summary
 
Fields inherited from class opennlp.tools.util.model.BaseModel
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
 Dictionary getNgramDictionary()
          Retrieves the ngram dictionary.
 opennlp.model.AbstractModel getPosModel()
           
 POSDictionary getTagDictionary()
          Retrieves the tag dictionary.
 
Methods inherited from class opennlp.tools.util.model.BaseModel
getLanguage, getManifestProperty, getVersion, serialize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

POSModel

public POSModel(String languageCode,
                opennlp.model.AbstractModel posModel,
                POSDictionary tagDictionary,
                Dictionary ngramDict,
                Map<String,String> manifestInfoEntries)

POSModel

public POSModel(String languageCode,
                opennlp.model.AbstractModel posModel,
                POSDictionary tagDictionary,
                Dictionary ngramDict)

POSModel

public POSModel(InputStream in)
         throws IOException,
                InvalidFormatException
Throws:
IOException
InvalidFormatException
Method Detail

getPosModel

public opennlp.model.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


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.