IniziaInizia gratis

Naming four topics

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

Questo esercizio fa parte del corso

Introduction to Text Analysis in R

Visualizza il corso

Istruzioni dell'esercizio

  • 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?

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

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

# Plot word_probs3, color and facet based on topic
___(
  ___, 
  ___(___)
) +
  ___(___) +
  ___(___) +
  coord_flip()
Modifica ed esegui il codice