user3345168
user3345168

Reputation: 11

text classification using weka in php

I am going to retrieve the posts from facebook and classify the words in the posts into different generic classes like vulgarity,hate,offense,politics,etc inorder to block them. How to use WEKA tool for this purpose? I have used PHP for designing pages.

Upvotes: 0

Views: 3164

Answers (1)

gat
gat

Reputation: 2990

You will first need to build a classification model. I presume that this part can be done using the standard Weka GUI. If you haven't used Weka before, you can read up the documentation and help here: http://www.cs.waikato.ac.nz/ml/weka/

Once you have a model with you then it's upto to you how you'd want to interface it with your PHP scripts. Here are some options:

  1. Use Weka's command line interface and use 'shell_exec' on PHP.
  2. Using PHP and Java (since Weka's code is in Java): http://php.inspire.net.nz/manual/en/book.java.php
  3. Other ideas such as Weka4Web etc. here: http://www.cs.waikato.ac.nz/~fracpete/downloads/#webweka

Upvotes: 2

Related Questions