Package opennlp.tools.ml.perceptron
Class PerceptronModelWriter
java.lang.Object
opennlp.tools.ml.model.AbstractModelWriter
opennlp.tools.ml.AbstractMLModelWriter
opennlp.tools.ml.perceptron.PerceptronModelWriter
- Direct Known Subclasses:
- BinaryPerceptronModelWriter
The base class for 
PerceptronModel 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.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidpersist()Writes theperceptron model, using theAbstractModelWriter.writeUTF(String),AbstractModelWriter.writeDouble(double), orAbstractModelWriter.writeInt(int)} methods implemented by extending classes.Methods inherited from class opennlp.tools.ml.model.AbstractModelWriterclose, writeDouble, writeInt, writeUTF
- 
Constructor Details- 
PerceptronModelWriterInitializes aPerceptronModelWriterfor aperceptron model.- Parameters:
- model- The- perceptron modelto be written.
 
 
- 
- 
Method Details- 
persistWrites theperceptron model, using theAbstractModelWriter.writeUTF(String),AbstractModelWriter.writeDouble(double), orAbstractModelWriter.writeInt(int)} methods implemented by extending classes.If you wish to create a PerceptronModelWriterwhich uses a different structure, it will be necessary to override thepersist()method in addition to implementing thewriteX(..)methods.- Overrides:
- persistin class- AbstractMLModelWriter
- Throws:
- IOException- Thrown if IO errors occurred.
 
 
-