Giter VIP home page Giter VIP logo

twittersentimentanalysis's Introduction

Twitter-Sentiment-Analysis of COVID-19 Tweets

The sentiment analysis of Indians after the extension of lockdown announcements to be analyzed with the relevant #tags on twitter and build a predictive analytics model to understand the behavior of people if the lockdown is further extended. Also develop a dashboard with visualization of people reaction to the govt announcements on lockdown extension.

Website Link: TSA
Video Explaination: https://drive.google.com/file/d/1n9pUBTNtpbAKnvoJ0HTzufntSq60fyFa/view?usp=sharing
PPT Explaination: https://drive.google.com/file/d/1ZMPTEt26YY8UiGMDeT5MknRKUEoF11lZ/view?usp=sharing

Objective

Twitter hosts abundant user-generated posts, which closely reflect the public’s reactions towards this pandemic with low latency.
Collecting and analyzing different demographic data helps compare and contrast that how different groups are affected in society.

Libraries

Software Recommended

Project Miletones

  1. Data Gathering
  2. Data Preprocessing
  3. Analyzing Polarity and Subjectivity
  4. Analyzing emotions using IBM Watson Tone Analyzer
  5. Data Visualization
  6. Creating Visualization Dashboard

Data Gathering
Tweets are scraped using web-scraping. Scraped data is stored in JSON format and then combining each tweet, converted into .csv file. CSV file then goes for data preprocessing.
Click here for dataset.

Data Preprocessing

  1. Remove Punctuations
  2. Tokenizing Words
  3. Stop words Removal
  4. Stemming
  5. Lemmatizing
    Click here for Data Preprocessing Folder

Analyzing Polarity and Subjectivity
Each Tweet will be subdivided according to Polarity and Subjectivity: Polarity: Ranges from -1 to +1, -1 being most negative and +1 being most positive comment. Subjectivity: Ranges from 0 to 1, w.r.t its analytics. TextBlob has predefined functions and NLP models embedded in it, which makes this task efficient and smooth.
Sentiments folder contains all files for this process.
Textblob functions file contains imported textblob library and functions are created.
Polarity Subjectivity Analysis file implement those functions on dataset.
Polarity Subjectivity Dataset is created.

Analyzing tweet using IBM Watson Tone Analyzer
Analyzes the sentiment in the deeper way to classify and reveal the trend more comprehensively.
This technique uses linguistic analysis to detect joy, sadness, anger, fear, analytical, tentative and also confidence tones found in text.
ToneAnalyzer folder contains all files for this process.
IBM Watson Tone Analyzer, code for calling API from IBM Cloud Service.
Dataset Creation, seperate dataset is created for each sentiment.

Data Visualization
Technologies used:

  1. Matplotlib
  2. Plotly
  3. Tableau
  4. Seaborn

Creating Visualization Dashboard
Stack used:

  1. HTML
  2. CSS
  3. JavaScript
  4. Tableau
  5. Bootstrap

Website code

Summary

You can visit Visualization Dashboard for analyzing tweets.

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.