This project is a dashboard for analyzing the sentiment of comments of Brand from YouTube and Reddit. It visualizes the data using various charts and tables to provide insights into customer sentiment.
- Sentiment distribution donut charts.
- Weekly sentiment bar chart.
- Word clouds for positive, neutral, and negative sentiments.
- Top keywords for each sentiment.
- Data table displaying comments with sentiment scores.
To run this application, you will need to have Python 3 installed along with the following Python packages:
- dash
- dash-bootstrap-components
- plotly
- pandas
- scikit-learn
- wordcloud
Here is the requirements.txt file for the specified Python libraries:
dash==2.9.3
dash-bootstrap-components==1.4.1
plotly==5.15.0
pandas==2.0.3
scikit-learn==1.3.0
wordcloud==1.9.2
To run this application you will need to have Python 3 installed on your machine. Follow the steps below to set up your environment and run the application:
-
Clone the repository:
git clone https://github.com/3L1NK/Brand_sentiment_analysis.git cd https://github.com/3L1NK/Brand_sentiment_analysis.git -
Create a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the application:
python app.py
To start the application, run the following command:
python app.pyThis will launch the dashboard locally at http://127.0.0.1:8050/ and open it in your default web browser.