Sentiment Analysis on Topics Scraped from Twitter
Sentiment analysis plotted over time stratified by queries.
+20,000 unique twitter posts were scraped with pre-selected search queries: "artificialintelligence", "politics", and "celebrities".
Data is continuously being updated, and the graph will continue changing over time with additional queries being added.
Sentiment analysis was conducted using Natural Language Processing (NLP) Python library Textblob, with a moderate prediction accuracy at around 45%.
Twitter post text was extracted, and fed into the NLP, which generated post-specific sentiment values ranging from -1 (most negative) to +1 (most positive).
This line graph plots the time series of mean artificial intelligence sentiment, along with other query sentiments, with shaded areas representing standard deviation.
All code to scrape twitter and create time-series sentiment plots is open-source and available for use via GitHub (see earlier).