{'fraction_non_alphanumeric': 0.019143117593436645, 'fraction_numerical': 0.007292616226071103, 'mean_word_length': 5.274285714285714, '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}}
Extracting User's Food Preferences by Sentiment Analysis

With the growth and development of websites and social networks, the number of user comments on these platforms has grown significantly. These comments contain rich information, which can be analyzed to discover individuals' preferences in various areas, including food. Extracting individuals' preferences can be useful for many applications of the Internet of Things paradigm. This paper proposes a method for extracting individuals' food preferences from their comments. The method includes extracting foods names from individual comments, clustering them, and performing sentiment analysis for each name. Comments on the Trip Advisor website have been used in experiments. In this regard, 100 users have been chosen and their comments from January to September of 2018 have been collected. Data from the first six months has been used for training the proposed method, while the data from the last 3 months has been used for testing. The results indicate the high precision of the proposed method in extracting users' food preferences.