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

different results on the demo than through the spacy script #147

Open
shanihadar opened this issue Mar 28, 2022 · 0 comments
Open

different results on the demo than through the spacy script #147

shanihadar opened this issue Mar 28, 2022 · 0 comments

Comments

@shanihadar
Copy link

shanihadar commented Mar 28, 2022

Hello,
When using the demo with the word "Height", the sense "auto" and the year "2019" the results are amazing while running through spacy the results are completly different.

example:
import spacy
nlp_spacy = spacy.load("en_core_web_sm")
s2v = nlp_spacy.add_pipe("sense2vec")
s2v.from_disk("s2v_reddit_2019_lg")

doc = nlp_spacy("Height")
assert doc[:].text == "Height"
freq = doc[:]..s2v_freq
vector = doc[:].
.s2v_vec
most_similar = doc[:]._.s2v_most_similar(3)

Why is that? and how can I get the same results as in the demo?
Thanks.

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

1 participant