gpt4 book ai didi

python - 执行 gensim.LdaMallet 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 12:07:38 26 4
gpt4 key购买 nike

我按照此链接(“http://radimrehurek.com/2014/03/tutorial-on-mallet-in-python/”)上的说明进行操作,但是当我尝试训练模型时遇到错误:

    model = models.LdaMallet(mallet_path, corpus, num_topics =10, id2word = corpus.dictionary)
IOError: [Errno 2] No such file or directory: 'c:\\users\\brlu\\appdata\\local\\temp\\c6a13a_state.mallet.gz'

请分享您的任何想法。

谢谢。

最佳答案

这可能有两个原因:1. 你的木槌路径有空间。2.没有MALLET_HOME环境变量。

关于python - 执行 gensim.LdaMallet 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24126187/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com