public class SuffixSensitiveGISModelWriter extends GISModelWriter
The following assumption are made about suffixes:
CORRECTION_CONSTANT, CORRECTION_PARAM, OUTCOME_LABELS, PARAMS, PRED_LABELS| Constructor and Description |
|---|
SuffixSensitiveGISModelWriter(opennlp.model.AbstractModel model,
java.io.File f)
Constructor which takes a GISModel and a File and invokes the
GISModelWriter appropriate for the suffix.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeDouble(double d) |
void |
writeInt(int i) |
void |
writeUTF(java.lang.String s) |
compressOutcomes, persist, sortValuespublic SuffixSensitiveGISModelWriter(opennlp.model.AbstractModel 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.IOExceptionpublic void writeUTF(java.lang.String s)
throws java.io.IOException
writeUTF in class opennlp.model.AbstractModelWriterjava.io.IOExceptionpublic void writeInt(int i)
throws java.io.IOException
writeInt in class opennlp.model.AbstractModelWriterjava.io.IOExceptionpublic void writeDouble(double d)
throws java.io.IOException
writeDouble in class opennlp.model.AbstractModelWriterjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in class opennlp.model.AbstractModelWriterjava.io.IOExceptionCopyright ? 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.