An NLP-based sentiment analysis project that analyzes tweets related to political leaders using Python and TextBlob. The project classifies tweets into positive and negative sentiments and visualizes the results using interactive Plotly charts and Word Clouds.
- Data Cleaning & Preprocessing
- Sentiment Analysis using TextBlob
- Positive & Negative Tweet Classification
- Interactive Plotly Visualizations
- Top 20 Frequent Words Analysis
- Separate Word Clouds for Modi and Rahul Tweets
- Comparative Sentiment Analysis
- 📈 Sentiment Comparison Bar Chart
- 🥧 Sentiment Distribution Pie Chart
- 📊 Sentiment Percentage Comparison
- 🌞 Sunburst Chart
- 🌳 Treemap
- 📦 Box Plot
- 🎻 Violin Plot
- 📋 Top 20 Frequent Words
- ☁️ Modi Tweets Word Cloud
- ☁️ Rahul Tweets Word Cloud
- Python
- Pandas
- NumPy
- TextBlob
- Plotly
- Matplotlib
- WordCloud
- NLTK
- Jupyter Notebook
political-tweet-sentiment-analysis
│
├── Sentiment_Analysis.ipynb
├── README.md
├── requirements.txt
├── dataset/
├── screenshots/
└── .gitignore
Clone the repository
git clone https://github.com/YOUR_USERNAME/political-tweet-sentiment-analysis.gitMove inside the project
cd political-tweet-sentiment-analysisInstall dependencies
pip install -r requirements.txtRun the notebook
jupyter notebook- Deep Learning based Sentiment Analysis
- Transformer Models (BERT)
- Live Twitter API Integration
- Dashboard using Streamlit






