1. 学习
  2. /
  3. 课程
  4. /
  5. Sentiment Analysis in Python

Connected

练习

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.

说明 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.