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