小编B61*_*612的帖子

运行gensim的LDA模型时出现运行时错误,如何修复?

我有一个运行时错误:

RuntimeError: 
        An attempt has been made to start a new process before the
        current process has finished its bootstrapping phase.

        This probably means that you are not using fork to start your
        child processes and you have forgotten to use the proper idiom
        in the main module:

            if __name__ == '__main__':
                freeze_support()
                ...

        The "freeze_support()" line can be omitted if the program
        is not going to be frozen to produce an executable.
  0%|          | 0/29 [00:48<?, ?it/s]
Run Code Online (Sandbox Code Playgroud)

当我尝试运行此代码时:

def …
Run Code Online (Sandbox Code Playgroud)

model runtime-error runtime lda gensim

1
推荐指数
1
解决办法
1562
查看次数

标签 统计

gensim ×1

lda ×1

model ×1

runtime ×1

runtime-error ×1