close questionmark user search earth triangle retweet users star home mention pencil info lightbulb-o icon_fullscreen images refresh list grid mail in eye export twitter facebook linkedin

Due to Twitter API changes outside our control, we are sad to say (and like many other Twitter tools facing the same fate) Social Bearing is no longer operational. Annoucement here.

How is tweet sentiment analysis calculated?

12 December, 2014 by Tom

The sentiment shown for each tweet should be used as an indication only. Tweet sentiment in Social Bearing is not always accurate and as with any natural language detection, there will always be false positives. Concepts such as sarcasm and irony are particularly hard to detect algorithmically.

The sentiment scores given on Social Bearing can often be useful to give an overall sense of sentiment for a particular search term, or to find the passionate tweets in any set of search results. The best results are usually around more emotive subjects.

Social Bearing gives a sentiment score based on the ‘bag of words’ technique, where each word in each tweet is matched against a set of positive and negative words. The sentiment score for each word is then added together to create an overall sentiment score for the tweet.

I used the ‘bag of words’ technique as a basis for sentiment scoring over more complex methods of language algorithms such as ‘Latent semantic analysis’ because:

  1. I was concerned that more complex analysis would take longer of process and adversely affect the performance of tweet display
  2. Other methods of sentiment analysis don’t seem to be that much more accurate than the bag of words method I’m using
  3. It is by far the easiest method to implement

I have plans to further refine the sentiment analysis by matching tweets against common emoji 😉 and other language patterns.

In the future, I may look to 3rd party API’s for sentiment analysis. Meta Mind’s deep learning platform for example looks incredibly promising.

Leave a Reply

Your email address will not be published. Required fields are marked *