com.thesis.backend.classifiers
Class NaiveBayes_Classifier

java.lang.Object
  extended by com.thesis.backend.classifiers.NaiveBayes_Classifier

public class NaiveBayes_Classifier
extends java.lang.Object


Constructor Summary
NaiveBayes_Classifier(java.lang.String modelPath)
           
 
Method Summary
 cc.mallet.classify.Classifier getClassifier()
           
 cc.mallet.types.InstanceList putThroughPipes(java.lang.String dataFileName)
           
 java.lang.String runNaiveBayes(cc.mallet.types.Instance instance)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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()