opennlp.tools.namefind
Class TokenNameFinderModel

java.lang.Object
  extended by opennlp.tools.util.model.BaseModel
      extended by opennlp.tools.namefind.TokenNameFinderModel

public class TokenNameFinderModel
extends BaseModel

The TokenNameFinderModel is the model used by a learnable TokenNameFinder.

See Also:
NameFinderME

Field Summary
 
Fields inherited from class opennlp.tools.util.model.BaseModel
TRAINING_CUTOFF_PROPERTY, TRAINING_EVENTHASH_PROPERTY, TRAINING_ITERATIONS_PROPERTY
 
Constructor Summary
TokenNameFinderModel(java.io.InputStream in)
           
TokenNameFinderModel(java.lang.String languageCode, AbstractModel nameFinderModel, java.util.Map<java.lang.String,java.lang.Object> resources, java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries)
           
 
Method Summary
 AbstractModel getNameFinderModel()
          Retrieves the TokenNameFinder model.
static boolean isModelValid(MaxentModel model)
           
 
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

TokenNameFinderModel

public TokenNameFinderModel(java.lang.String languageCode,
                            AbstractModel nameFinderModel,
                            java.util.Map<java.lang.String,java.lang.Object> resources,
                            java.util.Map<java.lang.String,java.lang.String> manifestInfoEntries)

TokenNameFinderModel

public TokenNameFinderModel(java.io.InputStream in)
                     throws java.io.IOException,
                            InvalidFormatException
Throws:
java.io.IOException
InvalidFormatException
Method Detail

getNameFinderModel

public AbstractModel getNameFinderModel()
Retrieves the TokenNameFinder model.

Returns:

isModelValid

public static boolean isModelValid(MaxentModel model)


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