Session Ready
Exercise

Counting words (II)

Once the vectorizer has been fit to the data, it can be used to transform the text to an array representing the word counts. This array will have a row per block of text and a column for each of the features generated by the vectorizer that you observed in the last exercise.

The vectorizer to you fit in the last exercise (cv) is available in your workspace.

Instructions 1/2
undefined XP
  • 1
  • 2
  • Apply the vectorizer to the text_clean column.
  • Convert this transformed (sparse) array into a numpy array with counts.