|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.tools.util.model.BaseModel
public abstract class BaseModel
This model is a common based which can be used by the components model classes. TODO: Provide sub classes access to serializers already in constructor
Field Summary | |
---|---|
static java.lang.String |
TRAINING_CUTOFF_PROPERTY
|
static java.lang.String |
TRAINING_EVENTHASH_PROPERTY
|
static java.lang.String |
TRAINING_ITERATIONS_PROPERTY
|
Method Summary | |
---|---|
java.lang.String |
getLanguage()
Retrieves the language code of the material which was used to train the model or x-unspecified if non was set. |
java.lang.String |
getManifestProperty(java.lang.String key)
Retrieves the value to the given key from the manifest.properties entry. |
Version |
getVersion()
Retrieves the OpenNLP version which was used to create the model. |
void |
serialize(java.io.OutputStream out)
Serializes the model to the given OutputStream . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TRAINING_CUTOFF_PROPERTY
public static final java.lang.String TRAINING_ITERATIONS_PROPERTY
public static final java.lang.String TRAINING_EVENTHASH_PROPERTY
Method Detail |
---|
public final java.lang.String getManifestProperty(java.lang.String key)
key
-
public final java.lang.String getLanguage()
public final Version getVersion()
public final void serialize(java.io.OutputStream out) throws java.io.IOException
OutputStream
.
out
- stream to write the model to
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |