-
Notifications
You must be signed in to change notification settings - Fork 238
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
Sense2vec Similarity Question #42
Comments
You have a bug in your test code. Instead of: model.data.similarity(query_vector1, query_vector1) you should do: model.data.similarity(query_vector1, query_vector2) |
Mea Culpa!
What about this?
$ sputnik --name sense2vec --repository-url http://index.spacy.io install en
Traceback (most recent call last):
File "/Users/davidlaxer/anaconda/envs/spacy/bin/sputnik", line 11, in <module>
load_entry_point('sputnik==0.9.3', 'console_scripts', 'sputnik')()
File "/Users/davidlaxer/anaconda/envs/spacy/lib/python3.6/site-packages/sputnik/__main__.py", line 12, in main
args.run(args)
File "/Users/davidlaxer/anaconda/envs/spacy/lib/python3.6/site-packages/sputnik/cli.py", line 45, in run
repository_url=args.repository_url)
File "/Users/davidlaxer/anaconda/envs/spacy/lib/python3.6/site-packages/sputnik/__init__.py", line 23, in install
data_path = default_data_path(app_name)
File "/Users/davidlaxer/anaconda/envs/spacy/lib/python3.6/site-packages/sputnik/util.py", line 24, in default_data_path
mod = __import__(app_name, globals(), locals(), [], 0)
File "/Users/davidlaxer/sense2vec/sense2vec/__init__.py", line 6, in <module>
from .vectors import VectorMap
File "strings.pxd", line 18, in init sense2vec.vectors (sense2vec/vectors.cpp:26598)
ValueError: spacy.strings.StringStore has the wrong size, try recompiling
#34
… On Apr 10, 2018, at 9:59 AM, Yaser Martinez Palenzuela ***@***.***> wrote:
You have a bug in your test code. Instead of:
model.data.similarity(query_vector1, query_vector1)
you should do:
model.data.similarity(query_vector1, query_vector2)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#42 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AC9i24Fcu0dbjLiINE3wOFfpjXXFkYn1ks5tnOT-gaJpZM4RVC5V>.
|
You shouldn't be using sputnik to download the reddit vectors (I think it is deprecated). You can get them from here: https://github.com/explosion/sense2vec/releases and then follow the updated instructions in the README. |
Hiya, I'm having a similar problem as well. Is the similarity function below available if sense2vec is pipelined into spacy? I tried this one below and it's not there:
Using the function below returns NLP's answer, not S2V: Should I just use S2V standalone for this function? |
While running the below code:
and it gives me an error:
Not sure how to proceed with sense2vec with this error. |
Closing this, since #77 will address a bunch of interoperability stuff with spaCy. Also, various things have changed under the hood in the meantime. |
Why do 'flies|VERB' and 'flies|NOUN' have a similarity of 1.0?
I'm running sense2vec on Anaconda, with Python 3.6 on OS X 10.11.6
Here's my example:
From a model I trained:
The text was updated successfully, but these errors were encountered: