Package opennlp.tools.ml.naivebayes
Class BinaryNaiveBayesModelReader
- java.lang.Object
- 
- opennlp.tools.ml.model.AbstractModelReader
- 
- opennlp.tools.ml.naivebayes.NaiveBayesModelReader
- 
- opennlp.tools.ml.naivebayes.BinaryNaiveBayesModelReader
 
 
 
- 
 public class BinaryNaiveBayesModelReader extends NaiveBayesModelReader 
- 
- 
Constructor SummaryConstructors Constructor Description BinaryNaiveBayesModelReader(DataInputStream dis)Constructor which directly instantiates the DataInputStream containing the model contents.BinaryNaiveBayesModelReader(File f)Constructor which takes a File and creates a reader for it.
 - 
Method Summary- 
Methods inherited from class opennlp.tools.ml.naivebayes.NaiveBayesModelReadercheckModelType, constructModel
 - 
Methods inherited from class opennlp.tools.ml.model.AbstractModelReadergetModel, readDouble, readInt, readUTF
 
- 
 
- 
- 
- 
Constructor Detail- 
BinaryNaiveBayesModelReaderpublic BinaryNaiveBayesModelReader(DataInputStream dis) Constructor which directly instantiates the DataInputStream containing the model contents.- Parameters:
- dis- The DataInputStream containing the model information.
 
 - 
BinaryNaiveBayesModelReaderpublic BinaryNaiveBayesModelReader(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
 
 
- 
 
-