at.aictopic1.sentimentanalysis.machinelearning.impl.NaiveBayesMultinomialClassifier.java Source code

Java tutorial

Introduction

Here is the source code for at.aictopic1.sentimentanalysis.machinelearning.impl.NaiveBayesMultinomialClassifier.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package at.aictopic1.sentimentanalysis.machinelearning.impl;

import weka.classifiers.bayes.NaiveBayesMultinomial;

/**
 *
 * 
 */
public class NaiveBayesMultinomialClassifier extends BasicClassifier {

    //no options

    /**
     * sets classifier
     */
    @Override
    protected void setClassifier() {

        //classifier
        NaiveBayesMultinomial usedClassifier = new NaiveBayesMultinomial();
        //.. other options
        this.fcClassifier.setClassifier(usedClassifier);
    }

}