Session Ready
Exercise

Capturing the actions - dtm with verbs

In this exercise you will construct the dtm that will consist entirely of verbs, and then re-run the LDA algorithm.

You are given the dataframe verbs containing present and past tense forms of English verbs.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Modify the old code so that instead of removing stopwords it will return a dtm that contains only the past tense verbs. You will need to join on columns word and past.