Package opennlp.tools.ml.perceptron
Klasse BinaryPerceptronModelReader
java.lang.Object
opennlp.tools.ml.model.AbstractModelReader
opennlp.tools.ml.perceptron.PerceptronModelReader
opennlp.tools.ml.perceptron.BinaryPerceptronModelReader
A
PerceptronModelReader that reads models from a binary format.-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiatesBinaryPerceptronModelReadervia aDataInputStreamcontaining the model contents.InstantiatesBinaryPerceptronModelReadervia aFileand creates a reader for it. -
Methodenübersicht
Von Klasse geerbte Methoden opennlp.tools.ml.perceptron.PerceptronModelReader
checkModelType, constructModelVon Klasse geerbte Methoden opennlp.tools.ml.model.AbstractModelReader
getModel, readDouble, readInt, readUTF
-
Konstruktordetails
-
BinaryPerceptronModelReader
InstantiatesBinaryPerceptronModelReadervia aDataInputStreamcontaining the model contents.- Parameter:
dis- TheDataInputStreamcontaining the model information. It must be open and have bytes available.
-
BinaryPerceptronModelReader
InstantiatesBinaryPerceptronModelReadervia aFileand 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- TheFilethat references the model to be read.- Löst aus:
IOException
-