David David - 7 months ago 71
Python Question

How can I tell if Gensim Word2Vec is using the C compiler?

I am trying to use Gensim's Word2Vec implementation. Gensim warns that if you don't have a C compiler, the training will be 70% slower. Is there away to verify that Gensim is correctly using the C Compiler I have installed?

I am using Anaconda Python 3.5 on Windows 10.


Apparently gensim offers a variable to detect this:

assert gensim.models.doc2vec.FAST_VERSION > -1

I found this line in this tutorial: https://github.com/RaRe-Technologies/gensim/blob/develop/docs/notebooks/doc2vec-IMDB.ipynb