Andrazp

Andrazp / EmoticonbasedSentimentAnalysis / 0.1.0

README.md

Overview

The algorithm estimates the sentiment of a string of text based on the included emojis. It is language independent. The output is a value between -1 and 1, with -1 representing negative sentiment and 1 positive sentiment.

The emoji ranking is based on the following article:

Kralj Novak P, Smailović J, Sluban B, Mozetič I (2015) Sentiment of Emojis. PLoS ONE 10(12): e0144296. https://doi.org/10.1371/journal.pone.0144296.

Applicable Scenarios and Problems

The algorithm can be used to estimate the sentiment of messages which include emojis, for example tweets and other social media posts. It can be used effectively on its own or in combination with other algorithms for sentiment analysis.

Usage

Input

ParameterDescription
sentencestring

Output

ParameterDescription
sentiment_scorefloat