Package opennlp.tools.ml
Class AbstractMLModelWriter
java.lang.Object
opennlp.tools.ml.model.AbstractModelWriter
opennlp.tools.ml.AbstractMLModelWriter
- Direct Known Subclasses:
GISModelWriter
,NaiveBayesModelWriter
,PerceptronModelWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
persist()
Serializes themodel
using theAbstractModelWriter.writeUTF(String)
,AbstractModelWriter.writeDouble(double)
, orAbstractModelWriter.writeInt(int)
} methods implemented by extending classes.Methods inherited from class opennlp.tools.ml.model.AbstractModelWriter
close, writeDouble, writeInt, writeUTF
-
Constructor Details
-
AbstractMLModelWriter
public AbstractMLModelWriter()
-
-
Method Details
-
persist
Description copied from class:AbstractModelWriter
Serializes themodel
using theAbstractModelWriter.writeUTF(String)
,AbstractModelWriter.writeDouble(double)
, orAbstractModelWriter.writeInt(int)
} methods implemented by extending classes.- Specified by:
persist
in classAbstractModelWriter
- Throws:
IOException
- Thrown if IO errors occurred.
-