Giter Site home page Giter Site logo

devinaa1604 / demonetization_sentiment_analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.12 MB

This project aims to understand the sentiment when a bit policy is introduced by the government. I have used Twitter data to do sentiment analysis using R.

twitter-api natural-language-processing sentiment-analysis nrc-emotion-lexicon bing-lexicon

demonetization_sentiment_analysis's Introduction

Sentiment Analysis on Demonetization in India

Background

The demonetization of ₹500 and ₹1000 banknotes was a step taken by the Government of India on 8 November 2016, ceasing the usage of all ₹500 and ₹1000 banknotes of the Mahatma Gandhi Series as a form of legal tender in India from 9 November 2016.

The announcement was made by the Prime Minister of India Narendra Modi in an unscheduled live televised address to the nation at 20:15 Indian Standard Time (IST) the same day. In the announcement, Modi declared circulation of all ₹500 and ₹1000 banknotes of the Mahatma Gandhi Series as invalid and announced the issuance of new ₹500 and ₹2000 banknotes of the Mahatma Gandhi New Series in exchange for the old banknotes. Ever since then, there have been multiple debates about the decision and effects of it.

This project aims to understand the sentiments in the population of India right after the announcement was made.

Data

The data set was picked up from Kaggle.

It contains 14,940 tweets ranging from Nov 8th 2016 to the end of 2017.

Data Cleaning

Removed

  • Links
  • Retweets
  • Converted everything to lower case
  • Usernames
  • Tabs
  • Blank spaces before and after the tweets
  • Punctuation

Removed stop words after unnesting tweets

Analysis

Top 15 words

This gives a count of top 15 unique words that are most used in the tweets.

Word Cloud

Here, the red words show negative words and the green are the positive words. This was made by using the Bing Lexicon.

Results of NRC Lexicon

NRC Lexicon analyzes the words on a spectrum of 8 emotions: Anger, Anticipation, Disgust, fear, Joy, Sadness, Surprise, and Trust.

Here, trust is highest and still not too far behind is fear. This aligns with the fact that India is the biggest democracy in the world, policies of the government are supported by the majority with a feeling of trust however, a big change like this also bring in the feeling of fear.

Overall Sentiment

Even in the previous plot, even through the highest feeling was of trust, the other feelings that followed that were of fear, anger and sadness. Therefore, the cumulative total shows a overall negative feeling.

demonetization_sentiment_analysis's People

Contributors

devinaa1604 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.