๐๏ธ NLP Capstone Project: Customer Review Analysis โ Womenโs Clothing E-Commerce ๐ Project Overview This project analyzes over 23,000 customer reviews for a leading womenโs clothing e-commerce platform. The goal is to extract meaningful insights using Natural Language Processing (NLP), understand customer sentiment, and build predictive models for recommendation and rating prediction.
๐ฏ Business Objectives ๐ Perform exploratory data analysis (EDA) on customer reviews and demographics.
๐ฌ Conduct text mining to identify frequent words in positive and negative reviews.
๐ Analyze sentiment trends by category, location, age group, and channel (Web/Mobile).
๐ค Build predictive models to:
Classify customers likely to recommend a product.
Predict product ratings based on review text.
๐ง Perform topic modeling to uncover themes in customer reviews.
๐ Dataset Details Column Name Description Product ID Unique ID of the product Category Product category Subcategory1 Subcategory level 1 Subcategory2 Subcategory level 2 Location Customerโs geographic location Customer Age Age of the customer Channel Purchase channel (Web or Mobile) Review Title Short title for the review Review Text Full review text Rating Rating given by the customer Recommend Flag Whether the customer recommends the product (Yes/No)
๐งช Techniques & Tools Used Programming Language: Python
Libraries: Pandas, NumPy, Matplotlib, Seaborn, Plotly
NLP: NLTK, spaCy, WordCloud, scikit-learn, TextBlob
Modeling: Logistic Regression, XGBoost, Random Forest
Topic Modeling: LDA (Latent Dirichlet Allocation)
Dashboarding: Streamlit / Plotly Dash (optional)
๐ Key Features ๐ EDA Dashboard: Category-wise review count, age distribution, recommendation trends
๐ Word Clouds: For positive vs negative reviews
๐ Sentiment Analysis: By channel, location, product category, and age group
๐ Topic Modeling: Extracting key themes from customer feedback
๐ง Classification Models: Predicting recommendation flag
๐ฏ Regression Models: Predicting customer rating from review text
๐ How to Run Clone the repo
bash Copy Edit git clone https://github.com/rahulraimau/womens-clothing-nlp.git cd womens-clothing-nlp Install dependencies
bash Copy Edit pip install -r requirements.txt Run the Jupyter notebook or Streamlit app
bash Copy Edit jupyter notebook
streamlit run app.py ๐ Sample Visualizations WordCloud of Top Positive/Negative Words
Sentiment by Age Group
Top Recommended Categories
Topic Clusters per Product Type
๐ฆ Outputs sentiment_model.joblib: Trained sentiment classification model
rating_predictor.pkl: Regression model for rating prediction
lda_model.pkl: Topic model with top keywords
final_dashboard.html: Interactive dashboard output (optional)
๐ค Author Rahul Rai ๐ง rahulraimau5@gmail.com ๐ GitHub | Kaggle | HackerRank