explosion / sense2vec

🦆 Contextually-keyed word vectors
https://explosion.ai/blog/sense2vec-reloaded
MIT License
1.62k stars 240 forks source link

Sense2VecComponent.s2v_other_senses bug #118

Closed asterbini closed 3 years ago

asterbini commented 4 years ago

I have not been able to get the s2v_other_senses from a token or span. I think the culprit is line 199 of file sense2vec/component.py :

return obj._._s2v.get_other_senses(key)

that should be changed to

return obj.doc._._s2v.get_other_senses(key)