A Python tool that uses AI (Sentence Transformers & K-Means) to cluster customer reviews into topics and analyze their sentiment.
- Text Embeddings: Converts reviews into vector embeddings using
all-MiniLM-L6-v2. - Clustering: Groups similar reviews using K-Means clustering.
- Sentiment Analysis: Detects sentiment using a pre-trained DistilBERT pipeline.
- Interactive Dashboard: Streamlit-based Web UI for easy analysis.
-
Install Dependencies:
python -m venv venv .\venv/Scripts/Activate pip install -r requirements.txt -
Run Web UI (Recommended):
streamlit run src/gui.py
-
Run CLI Mode (Alternative):
- Generate Data:
python src/generate_data.py - Run Analyzer:
python src/app.py
- Generate Data:
Check the output/ folder for:
analysis_report.txtcluster_plot.pngsentiment_dist.png