The following repository is about sentiment analysis on Twitter data.
Learn to perform basic sentiment analysis on real time data using Natural Language Processing libraries of Python. Also, get to know about WordCloud library to visualise the data and work on Twitter API.
You can read more about these libraries in the documentation.
Click here to read more Tweepy, TextBlob, WordCloud
In this project, I am using tweepy, TextBlob and WordCloud libraries of Python to perform the analysis. Our task is to analyse the data in terms of subjectivity and plolarity.
The sentiment funtion of TextBlob returns these two properties, subjectivity and polarity.
Polarity is float which lies in the range of [-1,1] where 1 means positive statement and -1 means a negative statement. Subjective sentences generally refer to personal opinion, emotion or judgment whereas objective refers to factual information. Subjectivity is also a float which lies in the range of [0,1].
1. Create Twitter API keys - for this, create developer account at developer.twitter.com. Standard Twitter account will let you log in. Apply for the developer access by answering few question about why you need it.
2. After getting keys - create a csv file and store ConsumerKey, ConsumerSecretKey, AccessToken and AccessTokenSecret.
3. Upload the file as given in code
4. Start writing code and perfrom the analysis.
Note: This work is highly inpired from few other kernals, github sources and data science resources. Due respect and credit.