Giter VIP home page Giter VIP logo

location-based-sentiment-analysis-of-tweets's Introduction

Goal of this Project: Perform location based sentiment analysis of live twitter feed on a given theme. In this project, we have chosen elections theme and heat map of US showing percentage of positive tweets from each state for Donald Trump is generated. This model is completely independent of the theme we have chosen. For different theme, all we need to do plug in the keywords associated with that theme in our model!

Steps :

  1. Using twitter4j API, 20,000 live tweets which mentioned certain keywords are collected.

  2. Data is cleaned. i.e urls, hashtags etc. were removed.

  3. Cleaned tweet is fed to Stanford -Core NLP which gives a sentiment score on a scale of 1 to 4.

  4. The origin location data of tweets is not homogeneous. For some tweets, sate name is give and for some, only state code is given, For some tweets only city is given.

  5. Data is cleaned to make all the locations data to be homogeneous. I,e covert given location data to it’s state in US.

  6. All the data is stored in database

  7. Based on above available data, we computed what percent of tweets from each state are positive for each candidate and generated heat map of US using d3js. The same can be seen in index.html

location-based-sentiment-analysis-of-tweets's People

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.