Giter Site home page Giter Site logo

deepspeech / sentimentanalysis_twitter Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 6 KB

See what tweets are positive, negative, or neutral. You can customize by hashtag sequence and search options. Companies can use this to understand customers' feelings towards products or brands.

Python 100.00%

sentimentanalysis_twitter's Introduction

Goal:

Determine whether a piece of writing is positive, negative or neutral. Also known as opinion mining, driving the opinion or attitude of a speaker.

Marketing:

This Twitter tool will be used by a company to develop their strategies, understand customers’ feelings towards products or brand, hand see how people respond to their campaigns or product launches. Responses provide insight as to why a product will be purchased or not purchased.

What you need to install:

Tweepy: tweepy is the python client for the official Twitter API. Install it using following pip command: pip install tweepy

TextBlob: textblob is the python library for processing textual data. Install it using following pip command: pip install textblob

Also, we need to install some NLTK corpora using following command:

python -m textblob.download_corpora (Corpora is nothing but a large and structured set of texts.)

Additional actions - Authentication: Fetch tweets through Twitter API, one needs to register an App through their twitter account. Follow these steps: Login (https://apps.twitter.com/) and‘Create New App’ Fill the application details. You can leave the callback url field empty. Once the app is created, you will be redirected to the app page. Open the ‘Keys and Access Tokens’ tab. Copy ‘Consumer Key’, ‘Consumer Secret’, ‘Access token’ and ‘Access Token Secret’.

Sample (pending) output:

Positive tweets percentage: 30 %

Negative tweets percentage: 20 %

(The rest is neutral)

The outcome is followed by a list of tweets.

References:

http://www.ijcaonline.org/research/volume125/number3/dandrea-2015-ijca-905866.pdf https://textblob.readthedocs.io/en/dev/quickstart.html#sentiment-analysis textblob.readthedocs.io/en/dev/_modules/textblob/en/sentiments.html

sentimentanalysis_twitter's People

Contributors

deepspeech avatar

Stargazers

 avatar

Watchers

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