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







Text Classification using SVM Algorithm in Java, Classifying Text with SVM Algorithm Java, Spam Detection using SVM Algorithm

This source code shows how to classify text using SVM 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









Text Classification using C4.5 Algorithm in Java, Classifying Text with C4.5 Algorithm Java, Spam Detection using C4.5 Algorithm

This source code shows how to classify text using C4.5 classification algorithm in java. In this example we show spam detection techniques.


Requirements:


weka-stable-3.6.10.jar







Output:







Thursday, 20 February 2020

Traffic Flow Dataset

This dataset contains traffic flow details. It has 16 attributes.

(1) Current_Location
(2) Destination
(3) Route
(4) Distance
(5) Average_Speed
(6) Time_to_Reach_Destination
(7) Date_&_Time
(8) Two_Wheeler
(9) Truck_Lorry
(10) Car
(11) Bus
(12) Non_Motorised_Vehicles
(13) Other_Motorised_Vehicles
(14) Three_Wheeler
(15) SUVOrStation_Wagon
(16) Jeep