AbstractMLModelWriter (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.ml, class: AbstractMLModelWriter

# Class AbstractMLModelWriter

java.lang.Object
opennlp.tools.ml.model.AbstractModelWriter
opennlp.tools.ml.AbstractMLModelWriter

Direct Known Subclasses:
  `GISModelWriter, NaiveBayesModelWriter, PerceptronModelWriter`

public abstract class AbstractMLModelWriter extends AbstractModelWriter

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AbstractMLModelWriter()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `persist()`
  Serializes the `model` using the `AbstractModelWriter.writeUTF(String)`, `AbstractModelWriter.writeDouble(double)`, or `AbstractModelWriter.writeInt(int)`} methods implemented by extending classes.

  ### Methods inherited from class AbstractModelWriter

  `close, writeDouble, writeInt, writeUTF`

  ### Methods inherited from class Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AbstractMLModelWriter

    public AbstractMLModelWriter()

- ## Method Details

  - ### persist

    public void persist() throws IOException
    Description copied from class: `AbstractModelWriter`
    Serializes the `model` using the `AbstractModelWriter.writeUTF(String)`, `AbstractModelWriter.writeDouble(double)`, or `AbstractModelWriter.writeInt(int)`} methods implemented by extending classes.
    Specified by:
      `persist` in class `AbstractModelWriter`
    Throws:
      `IOException` - Thrown if IO errors occurred.