๐ง MacBook Review Analysis using NLP ๐ Project Overview
This project performs sentiment analysis and text classification on MacBook product reviews using Natural Language Processing (NLP) techniques. The goal is to understand customer opinions, identify key sentiment trends, and visualize insights from real-world review data.
โ๏ธ Key Features
๐งน Data Cleaning: Removed URLs, numbers, punctuation, and stopwords.
๐ค Text Preprocessing: Tokenization, lemmatization using spaCy.
๐ฌ Sentiment Scoring: Used TextBlob to calculate polarity scores.
๐ Feature Extraction: Converted text into TF-IDF vectors for machine learning models.
๐งฎ Model Training: Implemented multiple classifiers โ
Logistic Regression (Accuracy: ~97%)
Multinomial Naive Bayes (Accuracy: ~97%)
Compared results with an Artificial Neural Network (ANN).
๐ Evaluation: Measured precision, recall, F1-score, and accuracy.
๐ Insights: Identified most frequent positive/negative words and sentiment distribution among MacBook reviews.
๐งฐ Tech Stack
Python
Pandas, NumPy, Matplotlib, Seaborn
spaCy, TextBlob
scikit-learn
TensorFlow / Keras
NLTK
๐ Workflow
Data Collection โ Imported MacBook reviews dataset (CSV).
Text Preprocessing โ Cleaned and normalized textual data.
Exploratory Data Analysis (EDA) โ Visualized review lengths, sentiment polarity, and word clouds.
Model Building โ Trained multiple ML models for sentiment classification.
Evaluation & Comparison โ Compared performance of Logistic Regression, Naive Bayes, and ANN.
Visualization โ Displayed sentiment distribution and model accuracy comparisons.
๐ Results
Best Model: Logistic Regression
Accuracy: 97.2%
Conclusion: Most reviews are positive, showing high customer satisfaction with MacBook performance, design, and battery life, though some negative feedback relates to pricing and overheating issues.
๐ Future Enhancements
Integrate BERT / Transformer models for deeper context understanding.
Build a dashboard (Streamlit) to visualize sentiment interactively.
Add aspect-based sentiment analysis (battery, performance, price, etc.)."# Macbook-Review-Analysis"