Package opennlp.tools.ml.naivebayes
Klasse PlainTextNaiveBayesModelReader
java.lang.Object
opennlp.tools.ml.model.AbstractModelReader
opennlp.tools.ml.naivebayes.NaiveBayesModelReader
opennlp.tools.ml.naivebayes.PlainTextNaiveBayesModelReader
A
NaiveBayesModelReader
that reads models from a plain text format.- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiatesPlainTextNaiveBayesModelReader
via aBufferedReader
containing the model contents.InstantiatesPlainTextNaiveBayesModelReader
via aFile
and creates a reader for it. -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.ml.naivebayes.NaiveBayesModelReader
checkModelType, constructModel
Von Klasse geerbte Methoden opennlp.tools.ml.model.AbstractModelReader
getModel, readDouble, readInt, readUTF
-
Konstruktordetails
-
PlainTextNaiveBayesModelReader
InstantiatesPlainTextNaiveBayesModelReader
via aBufferedReader
containing the model contents.- Parameter:
br
- TheBufferedReader
containing the model information. It must be open and have bytes available.
-
PlainTextNaiveBayesModelReader
InstantiatesPlainTextNaiveBayesModelReader
via aFile
and creates a reader for it. Based on whether the file's suffix contains.gz
, it detects whether the file is gzipped or not.- Parameter:
f
- TheFile
that references the model to be read.- Löst aus:
IOException
-