Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add: [AI-ML] Sentiment-Analyzer-Using-Neural-Networks #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Add: [AI-ML] Sentiment-Analyzer-Using-Neural-Networks #18
Changes from all commits
7cf0a21File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
Contributor: Em-Vi
⚽ Football Review Sentiment Analyzer
This project was updated to use neural network and more powerful vectorizer
A simple AI tool that classifies football match reviews as Positive, Negative, or Neutral using Machine Learning.
This project demonstrates the workflow of an AI/ML engineer — from data preparation to model training, evaluation, and prediction.
🚀 Features
🧠 Tech Stack
📂 Dataset
The dataset (
dataset.csv) contains 40 football match reviews with labeled sentiments:The data is small but balanced — good for demonstrating text classification basics.
⚙️ Installation
requirements.txtshould include:🧩 How It Works
1️⃣ Data Preparation
Reads
dataset.csvand splits it into training (80%) and testing (20%) sets usingtrain_test_split().2️⃣ Text Vectorization
Uses CountVectorizer (Bag of Words) to convert text into numerical vectors so that the ML model can process them.
3️⃣ Model Training
A Logistic Regression classifier is trained on the training set to learn word patterns related to sentiments.
4️⃣ Evaluation
The model’s accuracy is measured using the test data via
accuracy_score().5️⃣ Real-Time Prediction
The user can input a custom football review, and the model will predict the sentiment.
🧪 Example Run
$ python main.py Model Accuracy: 85.00% Enter a football review: What a fantastic match! Predicted Sentiment: Positive🧠 Understanding the Model
💬 Future Improvements
Contributor:
Em-VEm-ViUsage
Then enter the path of the image (e.g.,
photo.jpg).The blurred image will be saved as
blurred_photo.jpg.Example
Input:
Output: