Package opennlp.tools.ml.naivebayes
Class PlainTextNaiveBayesModelReader
- java.lang.Object
- 
- opennlp.tools.ml.model.AbstractModelReader
- 
- opennlp.tools.ml.naivebayes.NaiveBayesModelReader
- 
- opennlp.tools.ml.naivebayes.PlainTextNaiveBayesModelReader
 
 
 
- 
 public class PlainTextNaiveBayesModelReader extends NaiveBayesModelReader ANaiveBayesModelReaderthat reads models from a plain text format.- See Also:
- NaiveBayesModelReader
 
- 
- 
Constructor SummaryConstructors Constructor Description PlainTextNaiveBayesModelReader(BufferedReader br)InstantiatesPlainTextNaiveBayesModelReadervia aBufferedReadercontaining the model contents.PlainTextNaiveBayesModelReader(File f)InstantiatesPlainTextNaiveBayesModelReadervia aFileand 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- 
PlainTextNaiveBayesModelReaderpublic PlainTextNaiveBayesModelReader(BufferedReader br) InstantiatesPlainTextNaiveBayesModelReadervia aBufferedReadercontaining the model contents.- Parameters:
- br- The- BufferedReadercontaining the model information. It must be open and have bytes available.
 
 - 
PlainTextNaiveBayesModelReaderpublic PlainTextNaiveBayesModelReader(File f) throws IOException InstantiatesPlainTextNaiveBayesModelReadervia 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
 
 
- 
 
-