Skip to content

Shadinbm/Macbook-Review-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  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"

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors