Class PlainTextNaiveBayesModelReader
- Namespace
- NOpenNLP.Tools.Ml.Naivebayes
- Assembly
- NOpenNLP.Tools.dll
public class PlainTextNaiveBayesModelReader : NaiveBayesModelReader
- Inheritance
-
PlainTextNaiveBayesModelReader
- Inherited Members
Constructors
PlainTextNaiveBayesModelReader(FileInfo)
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".
public PlainTextNaiveBayesModelReader(FileInfo f)
Parameters
fFileInfoThe File in which the model is stored.
PlainTextNaiveBayesModelReader(StreamReader)
Constructor which directly instantiates the StreamReader containing the model contents.
public PlainTextNaiveBayesModelReader(StreamReader br)
Parameters
brStreamReaderThe StreamReader containing the model information.
Remarks
NOpenNLP: upstream takes a BufferedReader; StreamReader
is the equivalent used by PlainTextFileDataReader.