Giter VIP home page Giter VIP logo

f1-twitter-sentiment-analysis's Introduction

Sentiment Analysis on F1 Twitter's Reaction to controversial 2021 Driver's Championship won by Max Verstappen

This project involved scraping and cleaning tweets related to Max Verstappen's win at the Abu Dhabi 2021 Grand Prix and 2021 Driver's Title, and performing sentiment analysis on the resulting dataset.

Files

  • replies.csv - Final dataset built by scraping and cleaning tweets
  • F1TwitterScrape.ipynb - Scraping for tweets using Tweepy library and Twitter API
  • F1TwitterSentimentAnalysis.ipynb - Performing sentiment analysis on the dataset; building our own classifiers to see which performs better.
  • LSTMModel.pkl - LSTM model trained on Sentiment140 Dataset

Methodology

We used a combination of Python libraries such as Tweepy, Pandas, and NLTK for data scraping, cleaning, and preprocessing. We then trained and tested an LSTM model for sentiment analysis, Finally, we used the best performing classifier to analyze the sentiment of tweets related to Max Verstappen's win.

Results

The results of our sentiment analysis showed that the majority of tweets related to Max Verstappen's win had a positive sentiment, despite the controversy surrounding the race. Our best performing classifier was an LSTM model trained on the Sentiment140 dataset, which achieved an accuracy of 78%.

Conclusion

Overall, our project demonstrated the effectiveness of sentiment analysis in understanding public opinion on a particular event or topic. We were able to gain insights into the sentiment of F1 fans towards Max Verstappen's win at the Abu Dhabi 2021 Grand Prix.

f1-twitter-sentiment-analysis's People

Contributors

ramselvaraj avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.