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

Connected

Exercise

Batch classifying multiple reviews

Your sentiment analysis pipeline works well on one review. Now it's time to handle multiple reviews in one batch. This is a key step before analyzing user feedback at scale.

Instructions

100 XP
  • Initialize a pipeline for sentiment-analysis using "distilbert-base-uncased-finetuned-sst-2-english".
  • Use the pipeline to classify all reviews in the review_batch list.