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
Help loading model #3
Comments
The easiest way to download and install the model is by calling
The code is still a bit rough to use, this will change before we officially release it on PyPI. Also, we would love to hear about your use case. If you want don't want to discuss this publicly please get in contact with me at hp@spacy.io. |
Thanks for you answer. Unfortunately I am getting a:
Any ideas? I will write you an email with some details about our use case. |
Hmm, that's odd. Can you provide some info on your system (OS, Python, output of |
The machine is an M4 Deca Extra Large on EC2 running Ubuntu . I am using conda python 3.5, without MKL. This is my environment:
I did something hacky. I installed openblas from source but then installed the headers with
|
It would be ideal if the install would work with the included conda mkl but I couldn't find the headers. |
I think we can probably rule out Blas issues as the exception occured while just loading json. My ujson lib is 1.35, not sure it makes a difference. Also, I assume a M4 Deca Extra Large is 64 bit. Can you maybe try to replace usjon with normal json to rule out ujson as problem? Also, could you try to find out which is the value that is too big that raises the exception? |
All spaCy packages are also available via conda (https://anaconda.org/spacy), hence expect that once we have sense2vec ready for release to also maintain a conda package that "just works". |
Upgrading ujson did it. Thanks a lot! Apparently there is some issue with the conda version. |
Thanks, I was able to confirm (using pip) that only ujson >= 1.34 works, applied a patch. I think conda is not to be blamed here. |
Is there a way to provide a path to the model? I am setting up a Jupyter Hub environment with customised kernels and somehow the model is not being picked up, despite successful download. Outside Jupyter Notebooks the model is loaded correctly. Thanks, |
Sure, just leave out the sputnik calls
In that path VectorMap looks for following files: Regarding the Jupyter bug: could you please open a new issue with an explanation how to reproduce the problem? |
hi sir from sense2vec.vectors import VectorMap loading getting this error ModuleNotFoundError: No module named 'sense2vec.vectors' Name: sense2vec python version = 3.6.8 |
I downloaded the trained model from:
How can I load this into a VectorMap or a gensim model in order to make similarity queries?
The text was updated successfully, but these errors were encountered: