简体   繁体   English

在 Windows 中导入 gensim 模块后出现警告信息

[英]Warning message after importing gensim module in Windows

When I tried to import gensim module in Windows, I end up with below error.当我尝试在 Windows 中导入 gensim 模块时,最终出现以下错误。

c:\\python27\\lib\\site-packages\\gensim-3.0.1-py2.7-win-amd64.egg\\gensim\\utils.py:862: UserWarning: detected Windows; c:\\python27\\lib\\site-packages\\gensim-3.0.1-py2.7-win-amd64.egg\\gensim\\utils.py:862: UserWarning: 检测到 Windows; aliasing chunkize to chunkize_serial warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")将chunkize别名为chunkize_serial warnings.warn("检测到Windows;将chunkize别名为chunkize_serial")

Is there any possibility to overcome this warning?有没有可能克服这个警告?

If you want to suppress this warning just use the following code, before importing gensim :如果您想取消此警告,请在导入gensim之前使用以下代码:

import warnings
warnings.filterwarnings(action='ignore', category=UserWarning, module='gensim')
import gensim

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM