在考虑时间的主题模型上是否有任何 R 包或已发布的代码? [英] Are there any R packages or published code on topic models that account for time?

查看:24
本文介绍了在考虑时间的主题模型上是否有任何 R 包或已发布的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试对跨越 2 个世纪的政治演讲数据集进行主题建模,并且理想情况下希望使用考虑时间的主题模型,例如随时间推移的主题(McCallum 和 Wang 2006)或 Dynamic主题模型(Blei 和 Lafferty 2006).

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).

然而,鉴于我不是一个有经验的编码员,R 包或一些实现这些主题模型中的任何一个的示例代码的帮助真的会有所帮助.

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.

有谁知道 R 是否存在此类包或已发布的代码?

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.

非常感谢您.

推荐答案

听起来您需要可以在 R 包 stm 中轻松实现的结构主题模型.这里是在考虑时间信息的政治数据上实施此框架的示例.关于包和算法的更详细的知识可以在他们的小插图中找到.

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.

这篇关于在考虑时间的主题模型上是否有任何 R 包或已发布的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆