-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static compile of word2vec #233
Conversation
* still some weird numpy 1.7 deprecation warnings left
@ianozsvald @kmike merged into But I still need some feedback on whether it works or not :) A straightforward |
With Python 3.4 (Anaconda), I've pulled & installed the develop branch using
Is there anything else I can check for? |
Cheers Ian. Nothing else for now, I appreciate it. If you get your hands on a Windows box in the future, checking there too would be great :) |
It works fine for me too (Python 2.7 & Python 3.4, homebrew, OS X), thanks!. There were some gotchas in Python 2.7. I cloned the repo, executed setup.py install, started ipython and executed code @ianozsvald provided. In Python 2.7 it fails because the extension is bot built inplace, while "import gensim" imports gensim from the checkout, not the installed gensim. I exited the console, changed dir to its parent, started console again and run the code again - it also fails because there is The warning it was failing with in a first case is
There are other places where Cython is mentioned; it seems it should be cleaned up. |
Could anyone tell me what's the status of this issue? I am still getting that "Cython compilation failed, training will be slow." I tried all kinds of python configurations. Can't get any to work. |
@boyangli: this issue was fixed about a year ago. Your troubles must be unrelated. To know more, try posting your gensim installation log (to its own github issue, or to the gensim mailing list, not here). From the log you should be able to see what the problem was = why the compilation failed. |
Thank you, @piskvorky . I switched to scipy 0.15.1, and the problem seems resolved. It must be a compatibility issue with 0.16. I will post a most detailed description as a separate issue. |
@gojomo If it's been fixed, I'm still seeing it, even after downloading the source code from github directly. |
A new issue has been filed #429 |
Avoid weird problems with dynamic
pyximport
compilation.Instead, bundle the cython-generated C file and try to compile that, at gensim install time.
If installation fails, show a warning but install gensim anyway (=the compilation is optional).