彙總主題
讓我們用分組彙總來探索 LDA 輸出的一些隱含特徵。
本練習屬於課程
R 文字分析入門
練習說明
- 依主題對 LDA 輸出進行分組彙總。
- 計算詞彙機率的總和。
- 計算詞彙的數量。
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# 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 = ___()
)