public abstract class GISModelWriter
extends opennlp.model.AbstractModelWriter
| Modifier and Type | Field and Description |
|---|---|
protected int |
CORRECTION_CONSTANT |
protected double |
CORRECTION_PARAM |
protected java.lang.String[] |
OUTCOME_LABELS |
protected opennlp.model.Context[] |
PARAMS |
protected java.lang.String[] |
PRED_LABELS |
| Constructor and Description |
|---|
GISModelWriter(opennlp.model.AbstractModel model) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List |
compressOutcomes(opennlp.model.ComparablePredicate[] sorted) |
void |
persist()
Writes the model to disk, using the
writeX() methods
provided by extending classes. |
protected opennlp.model.ComparablePredicate[] |
sortValues() |
protected opennlp.model.Context[] PARAMS
protected java.lang.String[] OUTCOME_LABELS
protected int CORRECTION_CONSTANT
protected double CORRECTION_PARAM
protected java.lang.String[] PRED_LABELS
public void persist()
throws java.io.IOException
writeX() methods
provided by extending classes.
If you wish to create a GISModelWriter which uses a different
structure, it will be necessary to override the persist method in
addition to implementing the writeX() methods.
persist in class opennlp.model.AbstractModelWriterjava.io.IOExceptionprotected opennlp.model.ComparablePredicate[] sortValues()
protected java.util.List compressOutcomes(opennlp.model.ComparablePredicate[] sorted)
Copyright ? 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.