Package opennlp.tools.ml.naivebayes
Klasse NaiveBayesModelWriter
java.lang.Object
opennlp.tools.ml.model.AbstractModelWriter
opennlp.tools.ml.AbstractMLModelWriter
opennlp.tools.ml.naivebayes.NaiveBayesModelWriter
- Bekannte direkte Unterklassen:
BinaryNaiveBayesModelWriter,PlainTextNaiveBayesModelWriter
The base class for
NaiveBayesModel 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.
- Siehe auch:
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidpersist()Writes theperceptron model, using theAbstractModelWriter.writeUTF(String),AbstractModelWriter.writeDouble(double), orAbstractModelWriter.writeInt(int)} methods implemented by extending classes.Von Klasse geerbte Methoden opennlp.tools.ml.model.AbstractModelWriter
close, writeDouble, writeInt, writeUTF
-
Konstruktordetails
-
NaiveBayesModelWriter
Initializes aNaiveBayesModelWriterfor aNaiveBayes model.- Parameter:
model- TheNaiveBayes modelto be written.
-
-
Methodendetails
-
persist
Writes theperceptron model, using theAbstractModelWriter.writeUTF(String),AbstractModelWriter.writeDouble(double), orAbstractModelWriter.writeInt(int)} methods implemented by extending classes.If you wish to create a
NaiveBayesModelWriterwhich uses a different structure, it will be necessary to override thepersist()method in addition to implementing thewriteX(..)methods.- Setzt außer Kraft:
persistin KlasseAbstractMLModelWriter- Löst aus:
IOException- Thrown if IO errors occurred.
-