opennlp.perceptron
Class PerceptronModelWriter
java.lang.Object
opennlp.model.AbstractModelWriter
opennlp.perceptron.PerceptronModelWriter
- Direct Known Subclasses:
- BinaryPerceptronModelWriter, PlainTextPerceptronModelWriter, SuffixSensitivePerceptronModelWriter
public abstract class PerceptronModelWriter
- extends AbstractModelWriter
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.
Method Summary |
void |
persist()
Writes the model to disk, using the writeX() methods
provided by extending classes. |
PerceptronModelWriter
public PerceptronModelWriter(AbstractModel model)
persist
public void persist()
throws IOException
- Writes the model to disk, using the
writeX()
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:
persist
in class AbstractModelWriter
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.