Package opennlp.tools.ml.perceptron
Class 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.- 
Constructor SummaryConstructorsConstructorDescriptionInstantiatesBinaryPerceptronModelReadervia aDataInputStreamcontaining the model contents.InstantiatesBinaryPerceptronModelReadervia aFileand creates a reader for it.
- 
Method SummaryMethods inherited from class opennlp.tools.ml.perceptron.PerceptronModelReadercheckModelType, constructModelMethods inherited from class opennlp.tools.ml.model.AbstractModelReadergetModel, readDouble, readInt, readUTF
- 
Constructor Details- 
BinaryPerceptronModelReaderInstantiatesBinaryPerceptronModelReadervia aDataInputStreamcontaining the model contents.- Parameters:
- dis- The- DataInputStreamcontaining the model information. It must be open and have bytes available.
 
- 
BinaryPerceptronModelReaderInstantiatesBinaryPerceptronModelReadervia aFileand creates a reader for it. Based on whether the file's suffix contains.gz, it detects whether the file is gzipped or not.- Parameters:
- f- The- Filethat references the model to be read.
- Throws:
- IOException
 
 
-