Skip to content
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

C extension not loaded, training/inferring will be slow #18

Closed
DXcarlos opened this issue Dec 31, 2019 · 3 comments
Closed

C extension not loaded, training/inferring will be slow #18

DXcarlos opened this issue Dec 31, 2019 · 3 comments

Comments

@DXcarlos
Copy link

DXcarlos commented Dec 31, 2019

Hi, I've installed fse in Windows I get the following warning
C:\Users\CARLOS\Anaconda3\lib\site-packages\fse\models\base_s2v.py:115: UserWarning: C extension not loaded, training/inferring will be slow. Install a C compiler and reinstall fse.
"C extension not loaded, training/inferring will be slow. "

I know that this type of warning also appears in gensim in some cases, however, in gensim I don't have this problem. Does anyone have any idea what should I do?

My results on gensim

from gensim.models import word2vec;print("FAST_VERSION", word2vec.FAST_VERSION)
FAST_VERSION 1

My training speed is :

training on 571201 effective sentences with 4590776 effective words took 28s with 19703 sentences/s

@oborchers
Copy link
Owner

Hi @DXcarlos,

unfortunately I have currently no way of implementing or testing the fse library on Windows to be honest. This is something for a future release, as building the C core routines for computing the embeddings is not compiled on windows and reverts to a pure numpy implementation, which is way too slow.

@lucas-ubm
Copy link

I have this same problem in a Mac OS

@AlexMRuch
Copy link

I also have this issue on Mac OS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants