|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.model.AbstractModelWriter
opennlp.perceptron.PerceptronModelWriter
public abstract class PerceptronModelWriter
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 | |
|---|---|
PerceptronModelWriter(AbstractModel model)
|
|
| Method Summary | |
|---|---|
void |
persist()
Writes the model to disk, using the writeX() methods
provided by extending classes. |
| Methods inherited from class opennlp.model.AbstractModelWriter |
|---|
close, writeDouble, writeInt, writeUTF |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PerceptronModelWriter(AbstractModel model)
| Method Detail |
|---|
public void persist()
throws java.io.IOException
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.
persist in class AbstractModelWriterjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||