|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.model.AbstractModelReader
opennlp.maxent.io.GISModelReader
opennlp.maxent.io.PlainTextGISModelReader
opennlp.maxent.io.OldFormatGISModelReader
public class OldFormatGISModelReader
A reader for GIS models stored in the format used in v1.0 of Maxent. It extends the PlainTextGISModelReader to read in the info and then overrides the getParameters method so that it can appropriately read the binary file which stores the parameters.
Constructor Summary | |
---|---|
OldFormatGISModelReader(java.lang.String modelname)
Constructor which takes the name of the model without any suffixes, such as ".mei.gz" or ".mep.gz". |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Convert a model created with Maxent 1.0 to a format used with Maxent 1.2. |
Methods inherited from class opennlp.maxent.io.GISModelReader |
---|
checkModelType, constructModel |
Methods inherited from class opennlp.model.AbstractModelReader |
---|
getModel, readDouble, readInt, readUTF |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OldFormatGISModelReader(java.lang.String modelname) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
Usage: java opennlp.maxent.io.OldFormatGISModelReader model_name_prefix (new_model_name)");
If the new_model_name is left unspecified, the new model will be saved in
gzipped, binary format as "
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |