SocialDictionary

SocialDictionary is a Python package that improves sentiment analysis of texts containing emojis. Emojis collected from GetEmoji are stored with their Unicode code and description; each description is scored and labelled as positive, neutral or negative, and assigned an emotion using EmoRoBERTa (trained on GoEmotions). Given an input text, the package returns the text with each emoji replaced by its emotion, the overall sentiment of the text, and details about the emojis it contains.

SocialDictionary on PyPI