Using Gensim shows "Using the slow version of gensim.models.doc2vec"

I am trying to run a program using the Gensim Python library with version 3.6.
Whenever I ran the program, I came across these statements:

C:\Python36\lib\site-packages\gensim-2.0.0-py3.6-win32.egg\gensim\utils.py:860: UserWarning: detected Windows; aliasing chunkize to chunkize_serial
  warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")
Slow version of gensim.models.doc2vec is being used

      

I don't understand what is the point Slow version of gensim.models.doc2vec is being used

. How does gensim pick the slowest version, and if I want the fastest version, what should I do?

+3


source to share


3 answers


Highlighting @ juanpa.arrivillaga's comment, as it helped me solve this problem.
If you have installed anaconda:



  • remove gensim: pip uninstall gensim

  • install it using anaconda package manager: conda install gensim

+3


source


The problem is that some base packages are not updated. Gordon's post here helped me.

In short:

  • Remove Gensim

    sudo pip3 remove gensim

  • Install python3-dev build-essential

    sudo apt-get install python3-dev build-essential

  • Reinstall Gensim

    sudo pip3 install --upgrade gensim



Notes:

  • The instructions above are for systems where pip and apt-get are used to manage packages

  • pip3 is the version of the python3 protocol

+2


source


I also had this problem (I am running ubuntu). I found out that if I use the version from github directly the problem is fixed.

So there are 2 solutions: (first remove gensim with pip uninstall gensim

)

  • download and unzip the gensim zip file from the gensim github page then CD to the zip content folder and run the commandpython setup.py install

  • run this command pip install git+https://github.com/RaRe-Technologies/gensim@master#egg=gensim

I used the second one and now I don't get any warnings

0


source







All Articles