|
|||||||||
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.SuffixSensitiveGISModelReader
public class SuffixSensitiveGISModelReader
A reader for GIS models which inspects the filename and invokes the appropriate GISModelReader depending on the filename's suffixes.
The following assumption are made about suffixes:
Constructor Summary | |
---|---|
SuffixSensitiveGISModelReader(java.io.File f)
Constructor which takes a File and invokes the GISModelReader appropriate for the suffix. |
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
To convert between different formats of the new style. |
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 SuffixSensitiveGISModelReader(java.io.File f) throws java.io.IOException
f
- The File in which the model is stored.
java.io.IOException
Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
java opennlp.maxent.io.SuffixSensitiveGISModelReader old_model_name new_model_name
For example, to convert a model called "model.bin.gz" (which is thus saved in gzipped binary format) to one in (unzipped) text format:
java opennlp.maxent.io.SuffixSensitiveGISModelReader model.bin.gz model.txt
This particular example would of course be useful when you generally want to create models which take up less space (.bin.gz), but want to be able to inspect a few of them as plain text files.
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |