opennlp.perceptron
Class BinaryPerceptronModelReader

java.lang.Object
  extended by opennlp.model.AbstractModelReader
      extended by opennlp.perceptron.PerceptronModelReader
          extended by opennlp.perceptron.BinaryPerceptronModelReader

public class BinaryPerceptronModelReader
extends PerceptronModelReader


Constructor Summary
BinaryPerceptronModelReader(DataInputStream dis)
          Constructor which directly instantiates the DataInputStream containing the model contents.
BinaryPerceptronModelReader(File f)
          Constructor which takes a File and creates a reader for it.
 
Method Summary
 
Methods inherited from class opennlp.perceptron.PerceptronModelReader
checkModelType, constructModel
 
Methods inherited from class opennlp.model.AbstractModelReader
getModel, readDouble, readInt, readUTF
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryPerceptronModelReader

public BinaryPerceptronModelReader(DataInputStream dis)
Constructor which directly instantiates the DataInputStream containing the model contents.

Parameters:
dis - The DataInputStream containing the model information.

BinaryPerceptronModelReader

public BinaryPerceptronModelReader(File f)
                            throws IOException
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


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.