-
Notifications
You must be signed in to change notification settings - Fork 239
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
ImportError: cannot import name 'cosine_similarity' from 'sense2vec.util' #107
Comments
What exactly are you doing when you get that error? Can you post the original command and the entire stacktrace? |
05_export step: from collections import OrderedDict, defaultdict Error:ImportError Traceback (most recent call last) ImportError: cannot import name 'cosine_similarity' from 'sense2vec.util' (/.conda/envs/NewEnv15/lib/python3.7/site-packages/sense2vec/util.py) |
I'm a little puzzled by that, because you can import other functions from the same package |
@svlandeg I am quite puzzled myself. Like I mentioned earlier, I used pip to install v 1.0.2. I would like to add that I used Jupyter Hub to run this script. Not sure if that is relevant. |
Does any one resolved this issue? I am facing this same issue as above |
Any update on this error? |
@SarangShaikh201 you probably installed sense2vec via pip, can you try to build & install from master branch? |
I had the same issue (#110 ). The fix was using the git version of sense2vec rather than the pip version of the package. |
Thanks for posting the work around @hakangs and @santoshbs! That also explains why I didn't run into trouble because I built from source. Still need to investigate what goes wrong when installing with |
Same problem here |
Same problem here. |
@svlandeg I installed sense2vec through pip I have v 1.0.2 and I get this error:
ImportError: cannot import name 'cosine_similarity' from 'sense2vec.util' (/.conda/envs/NewEnv15/lib/python3.7/site-packages/sense2vec/util.py)
Please let me know what I am doing wrong.
The text was updated successfully, but these errors were encountered: