Package opennlp.tools.ml.perceptron
Class PerceptronModelWriter
java.lang.Object
opennlp.tools.ml.model.AbstractModelWriter
opennlp.tools.ml.perceptron.PerceptronModelWriter
- Direct Known Subclasses:
BinaryPerceptronModelWriter
Abstract parent class for Perceptron writers. It provides the persist method
which takes care of the structure of a stored document, and requires an
extending class to define precisely how the data should be stored.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpersist()Writes the model to disk, using thewriteX()methods provided by extending classes.Methods inherited from class opennlp.tools.ml.model.AbstractModelWriter
close, writeDouble, writeInt, writeUTF
-
Constructor Details
-
PerceptronModelWriter
-
-
Method Details
-
persist
Writes the model to disk, using thewriteX()methods provided by extending classes.If you wish to create a PerceptronModelWriter which uses a different structure, it will be necessary to override the persist method in addition to implementing the
writeX()methods.- Specified by:
persistin classAbstractModelWriter- Throws:
IOException
-