Pustaka Taratsa
Python: NLTK Twitter Sentiment Analysis 2

Python: NLTK Twitter Sentiment Analysis 2

Penulis: Onno Widodo Purbo

Twitter Sentiment Analysis with NLTK Now that we have a sentiment analysis module, we can apply it to just about any text, but preferrably short bits of text, like from Twitter! To do this, we're going to combine this tutorial with the Twitter streaming API tutorial. The initial code from that tutorial is: from tweepy import Stream from tweepy import OAuthHandler from tweepy.streaming import