ComenzarEmpieza gratis

Summarizing topics

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

Este ejercicio forma parte del curso

Introduction to Text Analysis in R

Ver curso

Instrucciones del ejercicio

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

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# 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 = ___()
  )
Editar y ejecutar código