{'fraction_non_alphanumeric': 0.021877205363443897, 'fraction_numerical': 0.0035285815102328866, 'mean_word_length': 5.112068965517241, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Sentiment Analysis in Twitter: From Classification to Quantification of Sentiments within Tweets

Twitter is attracting significant interests from the research community in the last few years. Sentiment analysis of tweets is among the hottest topics of research nowadays. State of the art approaches of sentiment analysis present many shortcomings when classifying tweets, in particular when the classification goes beyond the binary or ternary classification. Multi-class sentiment analysis has proven to be a very challenging task. This is mainly for the simple reason that a tweet usually does not contain a single sentiment, but many ones. In this paper, we propose a pattern-based approach for sentiment quantification in Twitter. By quantification, we refer to the detection of the existing sentiments within a tweet and the detection of the weight of these sentiments. In a first step, we classify tweets into positive, negative, or neutral. Our approach reaches an accuracy of 81%. We then perform the sentiment quantification on the sentimental tweets (i.e., positive and negative ones) to extract the sentiments within them: we define 5 positive sentiment sub-classes 5 negative ones and detect which exist in each tweet. We define 2 metrics to measure the correctness of sentiment detection, and prove that sentiment quantification can be a more meaningful task than the regular multi-class classification.