為四個主題命名
現在把先前的解法,和四主題模型 lda_topics3 做比較。
本練習屬於課程
R 文字分析入門
練習說明
- 依主題選出前 15 個重要詞,並重新排序 term。
- 繪製
word_probs3,並依主題設定顏色與分面。 - 你會如何為這四個主題命名?
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Select the top 15 terms by topic and reorder term
word_probs3 <- ___ %>%
___(___) %>%
___(___) %>%
___() %>%
___(___)
# Plot word_probs3, color and facet based on topic
___(
___,
___(___)
) +
___(___) +
___(___) +
coord_flip()