Are there any R packages or published code on topic models that account for time?

对着背影说爱祢 提交于 2020-08-03 07:31:28

问题


I am trying to perform topic modeling on a data set of political speeches that spans 2 centuries, and would ideally like to use a topic model that accounts for time, such as Topics over Time (McCallum and Wang 2006) or the Dynamic Topic model (Blei and Lafferty 2006).

However, given that I am not an experienced coder, the help of an R package or some sample code implementing either of these topic models would really help.

Does anyone know if such packages or published code exists for R?

I have searched extensively and have also considered the Structural Topics Model, but I am unsure if this would be the way to go.

Thank you very much in advance.


回答1:


It sounds like you need Structural Topic Models that can be easily implemented in R package stm. Here is an example of implementation of this framework on political data that take time information into account. More detailed knowledge on the package and the algorithm can be found in their vignette.



来源:https://stackoverflow.com/questions/43334623/are-there-any-r-packages-or-published-code-on-topic-models-that-account-for-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!