π¦ Twitter Sentiment Analysis: Vaccination Tweets π π― Objective: Analyze sentiments in tweets related to vaccination using NLP and machine learning techniques.
π Data Overview: π Dataset: Kaggle's vaccination tweets dataset with 11,020 tweets. π Key Columns: text (tweet content), sentiment (Positive, Neutral, Negative). π οΈ Preprocessing: Removed URLs, mentions, hashtags, and punctuation. Tokenized and removed stopwords. Applied stemming.
π Sentiment Analysis: π Polarity Calculation: Used TextBlob to determine the sentiment polarity. π€ Classification: Logistic Regression model. π Test Accuracy: 84.64% π Best Parameters: C=10
π Visualization: Word clouds for positive, negative, and neutral tweets. Confusion matrix for model evaluation.