Skip to content

Twitter sentiment is a Python library leveraging NLP and the Twitter API to determine the emotion of a tweet

License

Notifications You must be signed in to change notification settings

TeddyCr/twitter-sentiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Library to Explore Emotions Behind Tweets

twitter-sentiment is a Python library leveraging NLP algorithm and the Twitter API to classify the sentiment of a tweet.

Installation

Installing twitter-sentiment is simple, you just have to use pip. ::

pip install twitter-sentiment

Documentation

Documentation is available at twitter-sentiment.readthedocs.io

twitter-sentiment in a nutshell

twitter-sentiment lets you classify a tweet/list of tweets as positive (1) or negative (0). twitter-sentiment then calculates and returns the ration of positive tweets. To classify a tweet, twitter-sentiment leverages TextBlob Naive Bayes NLP library. More information can be found at textblob.readthedocs.io

Continuous Integration

twitter-sentiment uses circleci as a continuous integration tool. Pushing a new git tag to the remote repository will trigger circleci workflow and:

  • validate the test in /test/test_twitterSentiment.py
  • check for a match between the VERSION variable in the setup.py file and the git tag version.

If all tests pass, the build will be automatically uploaded to the pypi server.

About

Twitter sentiment is a Python library leveraging NLP and the Twitter API to determine the emotion of a tweet

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages