【问题标题】:Dynamic Topic Model Path动态主题模型路径
【发布时间】:2019-06-27 18:22:26
【问题描述】:

感谢您的光临!我有一个关于动态主题模型路径的问题:

>>> from gensim.test.utils import common_corpus, common_dictionary
>>> from gensim.models.wrappers import DtmModel
>>>
>>> path_to_dtm_binary = "/path/to/dtm/binary"
>>> model = DtmModel(
...     path_to_dtm_binary, corpus=common_corpus, id2word=common_dictionary,
...     time_slices=[1] * len(common_corpus)

动态主题模型二进制的路径是什么?那是我需要安装或下载的东西吗?我在哪里可以安装或下载它?

谢谢!

【问题讨论】:

    标签: python nlp gensim lda topic-modeling


    【解决方案1】:

    根据here,您可以选择以下两种方式之一:

    1. 使用来自https://github.com/magsilva/dtm/tree/master/bin的操作系统版本的预编译二进制文件

    2. 从 /blei-lab/dtm 手动编译二进制文件(https://github.com/blei-lab/dtm/blob/master/README.md 中提供的原始指令),或使用此

    git clone https://github.com/blei-lab/dtm.git
    sudo apt-get install libgsl0-dev
    cd dtm/dtm
    make
    

    【讨论】:

    • 谢谢!我想先说你是对的。我在 Windows Server 2012 上工作,而不是在 Ubuntu 10.04、OpenSUSE 11.2 或 CentOS 5.5 上工作,所以那些预编译的二进制文件不起作用,这些命令也不起作用 :(
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多