/nlp-sentiment-analysis

This repository contains sentiment analysis of Amazon product reviews (NLP) with different machine learning and deep learning models.

Primary LanguageJupyter Notebook

Sentiment Analysis of Amazon Product Reviews

sentiment analysis

Sentiment analysis, which is also known as opinion mining, is one of the major tasks of NLP. It studies people’s sentiments towards certain entities and detects polarity (e.g. a positive or negative opinion) within text. Sentiment analysis is often used in business to detect sentiment in social media, evaluate brand reputation and understand customers.

This project focuses on predicting sentiment of Amazon product reviews from Toys & Games category. Each review has the score that was used as a proxy of sentiment.


Steps of running a sentiment analysis of product reviews:

  1. Text preprocessing & creating word vectors - transform text into word vectors with various methods: Bag of Words, TF-IDF, Co-occurrence Matrix with SVD & NMF decomposition, Word2Vec
  2. Sentiment Analysis with Machine Learning models:
  3. Sentiment Analysis with Deep Learning models - comparison of performance of different neural networks: densely connected, LSTM, CNN.

Reference:

  1. https://jmcauley.ucsd.edu/data/amazon/ - product reviews dataset
  2. https://www.fast.ai/2019/07/08/fastai-nlp/ - Fast.ai NLP course
  3. Chollet, F. (2018). Deep Learning with Python Manning Publications