Edunet
Edunet
• The end users for the “sentiment analysis of restaurant reviews” project are mainly the restaurant
owners, managers, and marketers who want to understand the opinions and feedback of their
customers.
• They can use sentiment analysis to identify the strengths and weaknesses of their products and services,
improve customer satisfaction, increase loyalty, and attract new customers.
• They can also use sentiment analysis to monitor their competitors and benchmark their performance.
Solution for the problem
1. Data Collection- Dataset of all the reviews are collected first in the form of TSV file.
2. Data Preprocessing- The collected raw data of restaurant reviews consist of large number of
attributes and also there will be missing values. The reducing the attributes is required, extracting
the required attributes is also much essential. In Data cleaning once attributes are removed, filling
the missing values, removing inconsistent data measuring
3. Sentiment Analysis- The reviews sources are mainly review sites. Sentiment analysis is not only
applied on product reviews but can also be applied on stock market, news articles, or political
debates
4. Classification- The lexicon-based approach is to finding the opinion mining which is used to analyze
or to predict the text. Classification model classifies discrete, unordered values or data. In this
prediction process, the classification techniques utilized are, naive bayes classifier.
CODE SOLUTION
CODE SOLUTION
Working architecture of the project
Modelling techniques
1. Naïve Bayes-
It is one of the popular classification techniques of algorithms used in data mining. It is a
probability classifier. It links the attributes mutually & is dependent on the number of
parameters. The principle here is that the variables provided are independent. It
generates accurate results with appropriate calculation & provides fast results.
and Y- axis represents the Probability of positive or negative with the percentage values.
results
Data analysis is the most crucial part of any proposed work. Data analysis
summarizes collected data. It involves the interpretation of data gathered through
the use of analytical and logical reasoning to determine patterns, relationships or
trends. To examine critically and to bring out the essential elements or give the
essence to analyze a data. To examine carefully and in detail so as to key factors,
possible results. Following snapshots shows the results obtained in each step of the
process.
• GOOGLE COLAB -
https://colab.research.google.com/drive/1FTr-anEcPOR_n1QKsoMD0-VzjVLvWkLw?usp=sha
ring
• GITHUB- https://github.com/durgesh-h/Sentiment-analysis-of-restaurant-reviews/tree/main