This project analyzes and visualizes customer feedback data using natural language processing (NLP) and sentiment analysis techniques. It generates insights by categorizing feedback into sentiment groups and visualizing the results using pie charts.
- Overview
- Features
- Technologies Used
- How It Works
- Setup and Installation
- Usage
- Output
- Acknowledgments
The Customer Feedback Visualizer processes customer feedback data to:
- Preprocess textual data using spaCy.
- Perform sentiment analysis using TextBlob and VADER.
- Categorize feedback into "Satisfactory," "Unsatisfactory," and "Neutral."
- Visualize the results through pie charts.
- Generate Synthetic Data: Creates a dataset of 100 customer feedback entries using the Faker library.
- Preprocessing: Text preprocessing with stopword removal and tokenization using spaCy.
- Sentiment Analysis:
- TextBlob for polarity scoring.
- VADER for compound sentiment scoring.
- Visualization: Displays sentiment distribution as pie charts for TextBlob and VADER analysis.
- Python (Core Language)
- pandas (Data Manipulation)
- spaCy (Text Preprocessing)
- TextBlob (Sentiment Analysis)
- VADER Sentiment Analysis (Sentiment Scoring)
- Matplotlib & Seaborn (Visualization)
- Faker (Synthetic Data Generation)
- Synthetic Data Generation:
- Creates a dataset with
CustomerID
,Name
,FeedbackText
, and more using the Faker library.
- Creates a dataset with
- Text Preprocessing:
- Tokenizes text and removes stopwords and punctuation using spaCy.
- Sentiment Analysis:
- TextBlob analyzes polarity of feedback text.
- VADER calculates compound sentiment scores.
- Categorization:
- Scores are categorized into "Satisfactory," "Unsatisfactory," or "Neutral" based on thresholds.
- Visualization:
- Pie charts are generated to show sentiment distribution.
- Clone the Repository:
git clone https://github.com/your-repo/customer-feedback-visualizer.git cd customer-feedback-visualizer
- Install the necessary dependencies:
Ensure you have Python 3.6+ installed, then install the required
libraries:
pip install -r requirements.txt
- Run the script:
Run the Python script to generate the feedback data and visualize
the sentiment distribution:
python customer-feedback-visualizer.py
After running the script, it will generate synthetic customer feedback data and perform sentiment analysis using TextBlob and VADER. The results are displayed as pie charts for each sentiment analysis method. The program categorizes feedback into Satisfactory, Unsatisfactory, and Neutral sentiments.
A CSV file (customer_feedback.csv) with customer feedback data. Pie charts showing sentiment distribution (TextBlob and VADER).
Faker: For generating synthetic data.
spaCy: For text preprocessing.
TextBlob: For sentiment analysis.
VADER: For sentiment scoring.
Matplotlib and Seaborn: For data visualization.