Giter Site home page Giter Site logo

sayantani-dey / nlp-analysis-of-amazon-food-reviews Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5.2 MB

Sentiment Analysis of Amazon Food Reviews to the customer ratings using VADER, TextBlob and Flair

Jupyter Notebook 100.00%
flair review-analysis sentiment-analysis star-rating textblob vader-sentiment-analysis

nlp-analysis-of-amazon-food-reviews's Introduction

NLP Analysis of Amazon Food Reviews

In this NLP analysis we check whether the sentiment scores of the reviews match the star ratings given by customers. Checking if sentiment scores match star ratings is important for:

  1. Validating sentiment analysis models.
  2. Identifying errors and improving model accuracy.
  3. Understanding customer feedback comprehensively.
  4. Gaining insights into customer expectations.
  5. Benchmarking and comparing products or services.
  6. Identifying areas for improvement.
  7. Customization and personalization.
  8. Building trust and credibility in analysis and recommendations.

This analysis can provide valuable insights for business and researchers as following:

  1. In cases where sentiment scores do not match star ratings, it may indicate anomalies or inconsistencies in the data. For example, if a review contains negative sentiment words but is accompanied by a high star rating, it could suggest fraudulent or biased reviews.
  2. Understanding the relationship between sentiment scores and star ratings can help businesses gain deeper insights into customer feedback. For instance, if most positive reviews (high star ratings) also have high sentiment scores, it suggests that customers are generally satisfied. Conversely, if there are low sentiment scores for positive star ratings, it may indicate that customers have high expectations and are harder to please.
  3. Analyzing the discrepancies between sentiment scores and star ratings can help businesses identify areas for improvement. For example, if negative sentiment is prevalent in reviews with high star ratings, it may highlight aspects of the product or service that customers find lacking.

This repository for a natural language processing (NLP) analysis of Amazon fine food reviews was conducted using the following steps:

  1. Exploratory data analysis (EDA) was performed on the dataset to identify any patterns or trends.

  2. The NLTK library was used to check the polarity of the sentences in the reviews.

  3. The results of the polarity check were merged with the dataset using VADER's approach.

  4. An assumption was tested, which was that the highest star rating (5) would receive the most positive scores and the lowest star rating (1) would receive the most negative scores. The results of the analysis showed that the assumption was correct. The highest star rating (5) received the most positive scores, while the lowest star rating (1) received the most negative scores. This suggests that the polarity of the reviews is correlated with the star rating.

  5. Textblob method was also used to check for the same and a comparison between the results of VADER's and TextBlob was plotted. Screenshot (120)

  6. Update: After Textblob, Flair was used for the same and comparison were drawn among the models to determine the best one. Screenshot (123) Screenshot (122)

nlp-analysis-of-amazon-food-reviews's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.