Friday, 20 March 2020

Text Classification using Naive Bayes Algorithm in Java, Classifying Text with Naive Bayes Algorithm Java, Spam Detection using Naive Bayes Algorithm

This source code shows how to classify text using Naive Bayes classification algorithm in java.

Requirements:

weka-stable-3.6.10.jar


Source Code:




Output:

In command prompt first set jar file for run using this below line

set classpath=%classpath%;weka-stable-3.6.10.jar;

javac TextClassifier.java

java TextClassifier







No comments:

Post a Comment