ComenzarEmpieza gratis

Naming four topics

Now let's compare the previous solution with a four topic model, lda_topics3.

Este ejercicio forma parte del curso

Introduction to Text Analysis in R

Ver curso

Instrucciones del ejercicio

  • Select the top 15 terms by topic and reorder term.
  • Plot word_probs3, color and facet based on topic.
  • What would you name these four topics?

Ejercicio interactivo práctico

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

# Select the top 15 terms by topic and reorder term
word_probs3 <- ___ %>% 
  ___(___) %>% 
  ___(___) %>% 
  ___() %>%
  ___(___)

# Plot word_probs3, color and facet based on topic
___(
  ___, 
  ___(___)
) +
  ___(___) +
  ___(___) +
  coord_flip()
Editar y ejecutar código