Session Ready
Exercise

LDA model fitting - first iteration

This exercise covers the steps from making a document-term matrix to fitting a topic model and examining the terms in topics.

You are given a table history with two columns: chapter for chapter number, and text for chapter text.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Create a document-term matrix containing counts of words in chapters. Use anti_join to exclude stopwords. Save the result into variable dtm