A few months ago, I developed a web application called SentimentSpectrum using the Flask framework. This project aimed to predict customer sentiment for eCommerce websites like Flipkart by leveraging a BERT-based pre-trained model. What makes this application truly remarkable is its ability to provide real-time sentiment analysis, categorizing feedback into labels such as Positive, Negative, and Neutral, These insights empower businesses to better understand customer opinions, enabling data-driven decision-making and enhanced customer experiences.
In the fast-paced world of eCommerce, understanding customer sentiment is essential for improving product offerings and enhancing customer satisfaction. That’s where SentimentSpectrum steps in—a web application I developed using the Flask framework, designed to provide real-time sentiment analysis on eCommerce reviews, specifically for platforms like Flipkart. Built on the BERT-based pre-trained model, SentimentSpectrum predicts sentiments as Positive, Negative, or Neutral, offering crucial insights for businesses and analysts. Here's an overview of what makes SentimentSpectrum a groundbreaking tool.
This project focuses on automating customer review scraping, sentiment analysis using a pre-trained BERT model, and generating visual representations of the data.
nlptown/bert-base-multilingual-uncased-sentiment
model.Ensure that the ChromeDriver version matches your installed Chrome browser version. Incompatible versions can result in errors during data retrieval.
To check your Chrome version, navigate to chrome://settings/help
in Chrome and download the
appropriate version of ChromeDriver.
git clone https://github.com/augustine-aj/SentimentSpectrum.git
cd SentimentSpectrum
pip install -r requirements.txt
python connections.py
http://localhost:5000/
in your browser.SentimentSpectrum/ ├── chromedriver/ │ └── chromedriver.exe ├── Data/ │ ├── Raw Data/ │ ├── Sentiment Data/ │ ├── documents/ ├── frontend/ │ ├── static/ │ ├── templates/ ├── config.py ├── connections.py ├── datacleaner.py ├── phone_list.py ├── reviewScraper.py ├── sentiment_model.py ├── visualisations.py
The Sentiment Spectrum Review & Analysis System is a user-friendly web interface designed for conducting sentiment analysis on customer reviews using advanced AI tools. Here's a detailed explanation of how your index.html page works
The page introduces and explains the purpose of the Sentiment Spectrum system. It allows users to interact with the tool by selecting brands, models, or providing product links to scrape and analyze customer reviews. The functionalities include scraping reviews, analyzing trends, visualizing data, and downloading CSV reports.
The Analysis and Visualization page of Sentiment Spectrum is designed to offer detailed insights into product reviews by visualizing customer sentiment and performance data. It utilizes powerful libraries like Matplotlib and Seaborn to create dynamic and engaging visualizations.
Here are the primary visualizations provided on the Analysis and Visualization page:
After analyzing the visualizations, the page provides actionable insights:
The system encourages businesses to:
The Sentiment Spectrum is a powerful tool that uses interactive visualizations to analyze customer review data. By combining geographical distributions with feature-specific insights, it helps businesses uncover trends, improve strategies, and enhance customer satisfaction.
The tool uses Leaflet, an open-source JavaScript library, to display reviewer locations on an interactive map. Each location is marked with a color representing customer sentiment:
This visualization identifies regional trends and areas with predominant positive or negative feedback, aiding businesses in addressing regional disparities in customer satisfaction.
To delve deeper, heatmaps for specific product features (e.g., camera, battery, display, performance) reveal concentrated feedback. These insights allow for:
Integrating such dynamic visualizations makes data analysis more effective, guiding businesses to improve products, tailor marketing, and enhance overall customer engagement. Through the Sentiment Spectrum, actionable insights drive growth and satisfaction.
This page offers a user-friendly interface to access and manage review datasets categorized by product features and overall sentiments. Users can view or download CSV files for detailed analysis of customer feedback on Battery, Camera, Display, and Performance, enabling actionable insights.
This streamlined approach ensures comprehensive customer feedback analysis and aids in strategic decision-making.
SentimentSpectrum provides businesses and data scientists with powerful tools for extracting and analyzing customer sentiments from live eCommerce reviews. Its comprehensive features and user-friendly interface make it an essential resource for data-driven decision-making.
To explore the project, visit the SentimentSpectrum GitHub Repository.