Code Monkey home page Code Monkey logo

customer-reviews-analysis's Introduction

Introduction

Online reviews are important for both seller and customer to evaluate a product. However, it is time-consuming to go through all product reviews to get valuable insights. This analysis will go through two methods that can be used to analyze customers' reviews. I used a Walmart reviews-scraper script to collect the reviews from Walmart.com. This analysis will contain two methods. The first method is to collect reviews based on Term Frequency known as TF. This is used to get reviews that are more representative of the total reviews. The second method is to apply sentiment analysis for sentences based on Term Frequency - Inverse Document Frequency is known as TF-IDF to get a feel of what people feel about a specific feature.

The second part of the project research the possibility of indicating the star reviews based only on the adjectives used in the review.

Analysis

Scraped customer reviews from a retail website and summarized reviews with frequency distribution using NLTK Library. Calculated TF-IDF to collect product features and run sentiment analysis using Scikit-Learn. Implemented XGBoost classifier to predict star reviews based on the adjectives used.

Online Reviews Analysis (Part-1) - EDA + Sentiment analysis

Online_Reviews_Analysis (Part-2) - Classification

Conclusion

The project was successful in extracting the features of the product using TF-IDF. Measuring the accuracy of the sentiment analysis using TextBlob is a challenge without labeling the data. Implementing the XGBoost classifier to predict the star ratings using adjectives was promising, with an accuracy of 72%. Modifying the parameters can help to increase the accuracy.

customer-reviews-analysis's People

Contributors

anasbuhayh avatar

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.