ComeçarComece de graça

Summarizing topics

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

Este exercício faz parte do curso

Introduction to Text Analysis in R

Ver curso

Instruções do exercício

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

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# 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 e executar o código