【发布时间】:2021-09-08 05:23:59
【问题描述】:
是否可以使用 STM 包为每个主题绘制 3 个以上的单词?
topic.count <- 10
model.stm <- stm(stm_1$documents, stm_1$vocab, K = topic.count, data = stm_1$meta,
init.type = "Spectral")
使用“plot, type = “summary”,我在一个情节中每个主题得到 3 个单词
plot(model.stm, type = "summary", text.cex = 1)
使用“labelTopics”,我在“最高概率”下的每个主题得到 7 个单词作为列表
labelTopics(model.stm)
有没有办法绘制 4 或 5 个单词而不是像下面的代码那样使用默认的 3 个单词?
plot(model.stm, type = "summary", text.cex = 1)
【问题讨论】: