Search code examples
pythonnlpwarningssemanticsgensim

Warning message after importing gensim module in Windows


When I tried to import gensim module in Windows, I end up with below error.

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

Is there any possibility to overcome this warning?


Solution

  • If you want to suppress this warning just use the following code, before importing gensim:

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