无法使用 quanteda::dictionary() 定位字典

问题描述 投票:0回答:1

我终于在两周内几乎读完了整个 Quanteda 教程,现在我已经到达了 Seeded LDA 部分:https://tutorials.quanteda.io/machine-learning/topicmodel/

教程中的这段代码有错误,

代码:

字典主题<- dictionary(file = "../dictionary/topics.yml") print(dict_topic)

错误:

dictionary.default(file = "../dictionary/topics.yml") 中的错误: 文件不存在:../dictionary/topics.yml

我该如何修复它,获取词典功能并继续我的旅程?我是否需要重新安装或错过安装某些内容?实际上,我跳过了教程中需要字典的所有部分,我只是真的需要一些帮助。

我们将非常感谢您的帮助。

致以诚挚的问候,

卡尔

请帮忙,我在 Quanteda 的本地文件夹中根本找不到代码中指定的字典文件。

r lda quanteda
1个回答
0
投票

您可以在 Git 存储库中找到该文件。

© www.soinside.com 2019 - 2024. All rights reserved.