com.thesis.backend.classifiers
Class NaiveBayes_Classifier
java.lang.Object
com.thesis.backend.classifiers.NaiveBayes_Classifier
public class NaiveBayes_Classifier
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NaiveBayes_Classifier
public NaiveBayes_Classifier(java.lang.String modelPath)
throws java.io.FileNotFoundException,
java.io.IOException,
java.lang.ClassNotFoundException
- Throws:
java.io.FileNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
putThroughPipes
public cc.mallet.types.InstanceList putThroughPipes(java.lang.String dataFileName)
throws java.io.UnsupportedEncodingException,
java.io.FileNotFoundException
- Throws:
java.io.UnsupportedEncodingException
java.io.FileNotFoundException
runNaiveBayes
public java.lang.String runNaiveBayes(cc.mallet.types.Instance instance)
getClassifier
public cc.mallet.classify.Classifier getClassifier()