Code Monkey home page Code Monkey logo

sentiona's Introduction

Sentiona (Beta)

Sentiment Analytics Framework

My first cut of a python-based Sentiment Analytics framework that canvases cryptotwitter sentiments towards a particular project/personality.

It runs on live twitter data via the Twitter API and uses an existing machine learning dataset to train the sentiment analysis model.

This concept isn't new but it obviously would need a lot more training to be aware of nuances on cryptotwitter.

I've also set the retrieval to time out after 150 seconds to avoid spamming the twitter API.

screenshot

Setup:

  1. Apply to Twitter to become a Twitter Developer https://developer.twitter.com/content/developer-twitter/en.html

  2. Extract the API key, API secret key, Access token and Access token secret from your developer app page https://developer.twitter.com/en/apps and update the following initialization parameters

#connection to twitter API
consumer_api_key = 'USE_YOUR_OWN'
consumer_api_secret = 'USE_YOUR_OWN' 
access_token = 'USE_YOUR_OWN'
access_token_secret ='USE_YOUR_OWN'
  1. Clone this repo
git clone https://github.com/fifikobayashi/Sentiona
cd Sentiona
  1. install dependencies
pip3 install numpy
pip3 install pandas
pip3 install matplotlib
pip3 install seaborn
pip3 install nltk
pip3 install sklearn
  1. update the dataset to be loaded in the code "tweets = pd.read_csv()" to point to your trained ML models
# load twitter dataset
tweets = pd.read_csv("https://....
  1. To execute, just run
python3 Sentiona.py

Notes on dependencies:

Built upon techniques and samples from the following projects/articles:

https://towardsdatascience.com/creating-the-twitter-sentiment-analysis-program-in-python-with-naive-bayes-classification-672e5589a7ed

https://github.com/g3n1uss/generating-reviews-discovering-sentiment

https://python.gotrained.com/scraping-tweets-sentiment-analysis/

sentiona's People

Contributors

fifikobayashi avatar

Stargazers

ymd avatar  avatar Yaz Khoury avatar Emnlts avatar

Watchers

James Cloos avatar jyfocus avatar  avatar

Forkers

falsekelvin

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.