我正在尝试对数据集进行主题建模。我遵循标准程序,清理数据,标记化,创建 dtm 并应用 LDA 函数(主题 <- tidy(my_topic_model, matrix = "beta"). When I try to use the posterior function (topics <- posterior(my_topic_model)$topics) I get the error: Error in UseMethod("posterior") : no applicable method for 'posterior' applied to an object of class "c('LDA_Gibbs', 'LDA', 'Gibbs', 'TopicModel')". I wasn't getting this initially when I was using this code, but when I tried to use it today it didn't work. I haven't changed anything in the code.
有人可以帮我吗?
谢谢你的提问。我遇到了同样的问题。你找到解决办法了吗?我也有兴趣:)
最好的,
玛丽