Closed Bharat00007 closed 3 months ago
Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our [CONTRIBUTING.md]. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊
Please create an issue of this pull request
Pull Request: Sentiment Analysis Machine Learning Project #301
Overview
This pull request introduces a complete Sentiment Analysis project that utilizes various machine learning models to classify text data, specifically tweets, into positive or negative sentiments. The project covers data preprocessing, feature extraction, model training, and evaluation.
Functionalities
1. Data Loading
2. Data Preprocessing
@username
) are removed from the tweets using regular expressions.3. Data Visualization
4. Feature Extraction
CountVectorizer
is used to convert the cleaned tweets into a BOW representation, creating a sparse matrix of word counts.TfidfVectorizer
is applied to transform the text into Term Frequency-Inverse Document Frequency (TF-IDF) features, which provide more refined text representation than raw word counts.5. Model Training
6. Model Evaluation