Sentiment analysis for twitter in python

Posted by Ran on Stack Overflow See other posts from Stack Overflow or by Ran
Published on 2009-02-21T21:20:24Z Indexed on 2010/03/13 2:17 UTC
Read the original article Hit count: 523

I'm looking for an open source implementation, preferably in python, of Textual Sentiment Analysis (http://en.wikipedia.org/wiki/Sentiment_analysis). Is anyone familiar with such open source implementation I can use?

I'm writing an application that searches twitter for some search term, say "youtube", and counts "happy" tweets vs. "sad" tweets. I'm using Google's appengine, so it's in python. I'd like to be able to classify the returned search results from twitter and I'd like to do that in python. I haven't been able to find such sentiment analyzer so far, specifically not in python. Are you familiar with such open source implementation I can use? Preferably this is already in python, but if not, hopefully I can translate it to python.

Note, the texts I'm analyzing are VERY short, they are tweets. So ideally, this classifier is optimized for such short texts.

BTW, twitter does support the ":)" and ":(" operators in search, which aim to do just this, but unfortunately, the classification provided by them isn't that great, so I figured I might give this a try myself.

Thanks!

BTW, an early demo is here and the code I have so far is here and I'd love to opensource it with any interested developer.

© Stack Overflow or respective owner

Related posts about python

Related posts about open-source