1. Learn
  2. /
  3. Courses
  4. /
  5. Natural Language Processing (NLP) in Python

Connected

Exercise

Analyzing the sentiment of a review

Your team is building a tool to monitor customer sentiment in product reviews. As a first step, you're testing the sentiment of individual reviews using a pre-trained pipeline.

Instructions

100 XP
  • Initialize a pipeline for sentiment-analysis with the "distilbert-base-uncased-finetuned-sst-2-english" model.
  • Use the pipeline to classify the sentiment of review_text.