Text mining with PHP

Posted by garyc40 on Stack Overflow See other posts from Stack Overflow or by garyc40
Published on 2010-05-06T17:17:53Z Indexed on 2010/05/07 0:28 UTC
Read the original article Hit count: 663

Filed under:
|
|
|
|

Hi,

I'm doing a project for a college class I'm taking.

I'm using PHP to build a simple web app that classify tweets as "positive" (or happy) and "negative" (or sad) based on a set of dictionaries. The algorithm I'm thinking of right now is Naive Bayes classifier or decision tree.

However, I can't find any PHP library that helps me do some serious language processing. Python has NLTK (http://www.nltk.org). Is there anything like that for PHP?

I'm planning to use WEKA as the back end of the web app (by calling Weka in command line from within PHP), but it doesn't seem that efficient.

Do you have any idea what I should use for this project? Or should I just switch to Python?

Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about nlp