|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopennlp.maxent.io.GISModelWriter
opennlp.maxent.io.SuffixSensitiveGISModelWriter
public class SuffixSensitiveGISModelWriter
A writer for GIS models which inspects the filename and invokes the appropriate GISModelWriter depending on the filename's suffixes.
The following assumption are made about suffixes:
Field Summary |
---|
Fields inherited from class opennlp.maxent.io.GISModelWriter |
---|
CORRECTION_CONSTANT, CORRECTION_PARAM, OUTCOME_LABELS, PARAMS, PRED_LABELS |
Constructor Summary | |
---|---|
SuffixSensitiveGISModelWriter(GISModel model,
java.io.File f)
Constructor which takes a GISModel and a File and invokes the GISModelWriter appropriate for the suffix. |
Method Summary | |
---|---|
protected void |
close()
|
protected void |
writeDouble(double d)
|
protected void |
writeInt(int i)
|
protected void |
writeUTF(java.lang.String s)
|
Methods inherited from class opennlp.maxent.io.GISModelWriter |
---|
compressOutcomes, persist, sortValues |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuffixSensitiveGISModelWriter(GISModel model, java.io.File f) throws java.io.IOException
model
- The GISModel which is to be persisted.f
- The File in which the model is to be stored.
java.io.IOException
Method Detail |
---|
protected void writeUTF(java.lang.String s) throws java.io.IOException
writeUTF
in class GISModelWriter
java.io.IOException
protected void writeInt(int i) throws java.io.IOException
writeInt
in class GISModelWriter
java.io.IOException
protected void writeDouble(double d) throws java.io.IOException
writeDouble
in class GISModelWriter
java.io.IOException
protected void close() throws java.io.IOException
close
in class GISModelWriter
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |