Skip to content

jyotijangid/twitter-sentiment-analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

twitter-sentiment-analysis

The model takes a certain number of tweets and a keyword both specified by user then checks for the sentiment in those tweets.

Libraries used: TextBlob (for polarity of a tweet), tweepy (getting the tweets from twitter api), matplotlib (plotting the graph of positive,negative,neutral tweets), re (regular expression)
For each tweet, polarity is calculated and tweet is classified into one of these:

  1. positive
  2. negative
  3. weak_positive
  4. strong_positive
  5. weak_negative
  6. strong_negative
  7. neutral

Finally we calculate the percentage of each polarity and print them on graph.

image image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages