Giter Site home page Giter Site logo

vishalshar / sentimentanalysisontweet Goto Github PK

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

Compute the sentiment of each tweet based on the sentiment scores of the terms in the tweet. The sentiment of a tweet is equivalent to the sum of the sentiment scores for each term in the tweet.

Python 100.00%
sentiment-scores python tweets py-tweets equivalent occurences sum geolocation frequency-histogram livestream-data

sentimentanalysisontweet's Introduction

SentimentAnalysisOnTweet

Collecting Twitter Data

Run TwitterStream.py with access codes to get tweets from Twitter API.

Calculating Tweet sentiment

Program to compute the sentiment of each tweet based on the sentiment scores of the terms in the tweet. The sentiment of a tweet is equivalent to the sum of the sentiment scores for each term in the tweet.

to execute use below command : python tweetSentiment.py AFINN-111.txt tweets.txt

Calculating sentiment score of unknow term

termSentiment.py calculates sentiment score for terms which sentiment score is not provided. Based on metric score of tweet and positive and negative word occurence in the tweet.

to execute use below command : python termSentiment.py AFINN-111.txt tweets.txt

Frequency histogram of Livestream Twitter Data

frequency.py to compute the term frequency histogram of the livestream data

to execute use below command : python frequency.py tweets.txt

Predicting happiest state in USA using sentiment score and geo-location

happiest_state.py calculates the happiest state in United states based on sentiment score and Geo-Location of tweets and returns the name of the happiest state as a string.

to execute use below command : $ python happiest_state.py <sentiment_file> <tweet_file>

Top Ten HashTags

top_ten.py that computes the ten most frequently occurring hashtags from the data you gathered.

to execute use below command : $ python top_ten.py <tweet_file>

sentimentanalysisontweet's People

Contributors

vishalshar avatar

Watchers

 avatar  avatar

Forkers

shishir9kumar

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.