most_similar
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- machine-learning
Research direction
Start at the most_similar API described in the issue and inspect how sense2vec keys encode terms and POS tags. Determine whether similarity filtering can target a requested POS, then verify that a verb query returns verb-tagged results such as chase|VERB or bark|VERB without changing the existing noun behavior.
Written by the indexing model from the issue text.
Description
Is there a way to specify the POS tag of the results you are looking for.
Example: s2v.most_similar("dog|NOUN", n=10) returns [('puppy|NOUN', 0.9188), ('cat|NOUN', 0.9176), ('kitten|NOUN', 0.9081), ('pup|NOUN', 0.9074), ('own_dog|NOUN', 0.9028), ('other_dog|NOUN', 0.902), ('little_dog|NOUN', 0.8998), ('ferret|NOUN', 0.8952), ('chihuahua|NOUN', 0.8862), ('husky|NOUN', 0.886)]
but what if I want words that are similar but are verbs. In that case I would expect to have 'chase|VERB' or 'bark|verb'. Is it possible to do that?
- Dominant language
- Python
- Stars
- 1.7k
- Forks
- 236
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from explosion/sense2vec
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
import error Openusage
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
usage
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
provide citation Open
Difficulty 1/5 Under an hour Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in explosion/sense2vec
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100