public class PlainTextNaiveBayesModelReader extends NaiveBayesModelReader
Constructor and Description |
---|
PlainTextNaiveBayesModelReader(BufferedReader br)
Constructor which directly instantiates the BufferedReader containing
the model contents.
|
PlainTextNaiveBayesModelReader(File f)
Constructor which takes a File and creates a reader for it.
|
checkModelType, constructModel
getModel, readDouble, readInt, readUTF
public PlainTextNaiveBayesModelReader(BufferedReader br)
br
- The BufferedReader containing the model information.public PlainTextNaiveBayesModelReader(File f) throws IOException
f
- The File in which the model is stored.IOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.