Aan de slagGa gratis aan de slag

Summarizing topics

Let's explore some of the implied features of the LDA output using some grouped summaries.

Deze oefening maakt deel uit van de cursus

Introduction to Text Analysis in R

Cursus bekijken

Oefeninstructies

  • Produce a grouped summary of the LDA output by topic.
  • Calculate the sum of the word probabilities.
  • Count the number of terms.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Produce a grouped summary of the LDA output by topic
lda_topics %>% 
  ___(___) %>% 
  summarize(
    # Calculate the sum of the word probabilities
    sum = ___(___),
    # Count the number of terms
    n = ___()
  )
Code bewerken en uitvoeren