汇总主题
让我们用一些分组汇总来探索 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 = ___()
)