Pustaka Taratsa
Twitter Sentiment Analysis with NLTK

Twitter Sentiment Analysis with NLTK

Penulis: Onno Widodo Purbo

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 StreamListener consumer key, consumer