1. Learn
  2. /
  3. Courses
  4. /
  5. Sentiment Analysis in Python

Connected

Exercise

A feature for the length of a review

You have now worked with a string and a list with string items, it is time to use a larger sample of data.

Your task in this exercise is to create a new feature for the length of a review, using the familiar reviews dataset.

Instructions 1/2

undefined XP
    1
    2
  • Import the word tokenizing function from the required package.
  • Apply the function to the review column of the reviews dataset.