explosion / explosion/sense2vec

Adding new key

Open
#112 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.7k
Forks
236
PR merge metrics
No merged PRs in 30d

Description

I am trying to add some new keys and find words similar to these keys. I was hoping do something on the following lines, for example:
```
vec=s2v['women|NOUN'] + s2v['king|NOUN'] - s2v['men|NOUN']
s2v.add("my_own_key|NOUN", vec)
s2v.most_similar("my_own_key|NOUN", n=10)
```
The second line throws an error though:
```
File "vectors.pyx", line 295, in spacy.vectors.Vectors.add
ValueError: [E060] Cannot add new key to vectors: the table is full. Current shape: (3387194, 300).
```
Not sure how to do such simple vector operations as above in sense2vec.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.