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
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor which directly instantiates the DataInputStream containing the model contents.Constructor which takes a File and creates a reader for it. -
Method Summary
Methods inherited from class opennlp.tools.ml.perceptron.PerceptronModelReader
checkModelType, constructModelMethods inherited from class opennlp.tools.ml.model.AbstractModelReader
getModel, readDouble, readInt, readUTF
-
Constructor Details
-
BinaryPerceptronModelReader
Constructor which directly instantiates the DataInputStream containing the model contents.- Parameters:
dis- The DataInputStream containing the model information.
-
BinaryPerceptronModelReader
Constructor which takes a File and creates a reader for it. Detects whether the file is gzipped or not based on whether the suffix contains ".gz"- Parameters:
f- The File in which the model is stored.- Throws:
IOException
-