NLP and LLMs - Lab - Build a Sentiment Analyis Classifier

About

In this lab, you will use CountVectorizer and TF-IDF in a classification model to predict customer star ratings based on their reviews of a product. (This will serve as proxy for sentiment analysis.)

  1. Process review text using both CountVectorizer and TF-IDF
  2. Build a logistic regression model to predict sentiment
  3. Compare the performance of both approaches

Scenario

You are an analyst for a marketing company that has just launched a new product suite of mobile devices. You have data from product reviews of one of these new products, the TechWave X1. For this lab you will use the text and star ratings from the reviews to predict customer sentiment.

Dataset

Materials We Provide

Topic Description Link
Activity Building and Optimizing a Feedforward Neural Network with PyTorch Link

Prerequisites

Before this activity, you should already be able to:

Important note

Please ignore the _layouts folder and the config.yml file in the root of this repo. They are needed to make sure the repo renders well; please don’t change them or delete them and your repo will work fine :)