{"title":"Sentiment Analysis using Feature Generation And Machine Learning Approach","authors":"Roopam Srivastava, P. Bharti, Parul Verma","doi":"10.1109/ICCCIS51004.2021.9397135","DOIUrl":null,"url":null,"abstract":"The study of opinion offers answers to what the most critical problems are. Since sentiment analysis can be automated, judgements can be taken based on a significant amount of data rather than plain intuition, which is not always accurate. This paper focuses on the feature generation using Bag-of-Words and TF-IDF and the build model using the machine learning approach for sentiment analysis. The dataset used contains review of trip advisor on various hotels. This dataset consists of 20k reviews. Word cloud had been formed using sentiment ratings. Data was cleaned and pre-processed, and then applied Bow and TF-IDF for feature extraction. After implementation of classifiers, training and evaluation was performed. Evaluation metrics is used for measuring the accuracy of classifier. MultinomialNB obtained the highest accuracy in the realm of Bag of Word features and random forest outperformed in the case of TF-IDF out of three classifiers used to determine accuracy. We got 82% of the classification rate of MultinomialNB in Bag of Word and 78% accuracy in TF-IDF Random Forest.","PeriodicalId":316752,"journal":{"name":"2021 International Conference on Computing, Communication, and Intelligent Systems (ICCCIS)","volume":"48 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-02-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 International Conference on Computing, Communication, and Intelligent Systems (ICCCIS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCCIS51004.2021.9397135","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
The study of opinion offers answers to what the most critical problems are. Since sentiment analysis can be automated, judgements can be taken based on a significant amount of data rather than plain intuition, which is not always accurate. This paper focuses on the feature generation using Bag-of-Words and TF-IDF and the build model using the machine learning approach for sentiment analysis. The dataset used contains review of trip advisor on various hotels. This dataset consists of 20k reviews. Word cloud had been formed using sentiment ratings. Data was cleaned and pre-processed, and then applied Bow and TF-IDF for feature extraction. After implementation of classifiers, training and evaluation was performed. Evaluation metrics is used for measuring the accuracy of classifier. MultinomialNB obtained the highest accuracy in the realm of Bag of Word features and random forest outperformed in the case of TF-IDF out of three classifiers used to determine accuracy. We got 82% of the classification rate of MultinomialNB in Bag of Word and 78% accuracy in TF-IDF Random Forest.
对意见的研究为最关键的问题提供了答案。因为情绪分析可以自动化,所以判断可以基于大量的数据,而不是简单的直觉,这并不总是准确的。本文重点研究了使用Bag-of-Words和TF-IDF的特征生成和使用机器学习方法进行情感分析的构建模型。使用的数据集包含旅行顾问对各个酒店的评论。该数据集由20k条评论组成。词汇云是利用情绪评级形成的。对数据进行清洗和预处理,然后应用Bow和TF-IDF进行特征提取。分类器实现后,进行训练和评估。评价指标用于衡量分类器的准确性。在三个用于确定准确率的分类器中,MultinomialNB在Bag of Word特征领域获得了最高的准确率,而随机森林在TF-IDF的情况下表现优于TF-IDF。我们在Bag of Word中得到了82%的多项式nb分类率,在TF-IDF随机森林中得到了78%的准确率。