question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Forked version of gensim

See original GitHub issue

I understand that in order to use pretrained word embeddings to train the doc2vec models, we should install your forked version of gensim. However, I have failed to configure it properly with a C compiler. (MINGW in my case, could be BLAS etc.) I’m on windows and am using Anaconda.

I tried installing straight from setup.py, using pip, and even created a conda package and installed using that. Each time, I did succeed in installing the forked version of gensim.

However, every time I tried the following commands in a python shell-

>>> import gensim
>>> gensim.models.word2vec.FAST_VERSION

…the output was a -1. This meant that training would be very, very slow. (70 times slower iirc.)

How do I get your version and still retain the link to the C compiler? (If I install the current distributed version using conda install gensim, it is linked to my MINGW.)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chaitjocommented, May 12, 2018

Hey @drussellmrichie. I’m obviously not 100% sure about this, but here’s what I think I did 1.5 years ago:

  1. Installed gensim normally (not @jhlau’s fork) so that it used the desired C compiler.
  2. Manually edited the two files in the package by copying the changes made here: https://github.com/jhlau/gensim/commits/develop
  3. It worked!

Hope it helps!

1reaction
jhlaucommented, Dec 9, 2016

Hi, this isn’t a forked version issue. Please post it on the canonical gensim forum.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gensim · PyPI
Gensim is a Python library for topic modelling, document indexing and similarity retrieval with large corpora. Target audience is the natural language ...
Read more >
Gensim: Topic modelling for humans
Gensim depends on the following software: Python, tested with versions 3.6, 3.7 and 3.8. NumPy for number crunching.
Read more >
The Garden of Forking Paths | Kaggle
Reading and forking kernels here on kaggle has been a su ④ "Version")] in a new script kernel (or fork mine and re-run...
Read more >
Import forked module in Python instead of installed module
Thankfully if i open the notebook kernel while the anaconda environment is active it seems to recognize that I want that local calmap...
Read more >
gensim - Python Package Health Analysis - Snyk
We found that gensim demonstrates a positive version release cadence with at least one new version released in the past 12 months. As...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found