Closed jlema closed 3 years ago
The behavior you observe is due to the likelihood threshold (default is 5
). I guess RoBERTa doesn't like 'My food eats other animals', which is probably a good thing.
Examples:
editor.hypernyms('My dog eats other animals.', 'dog', threshold=10)
['animal', 'food', 'meat', 'soul', 'beast', 'creature', 'person', 'organism', 'sausage', 'unit', 'being', 'male']
editor.related_words('I have a pet dog.', 'dog')
['bird', 'kitten', 'puppy', 'toy']
As per the generating data notebook - editor.hypernyms is supposed to return multiple suggestions as follows:
Currently it is returning a single suggestion:
This also affects related_words: Expected:
Current behavior: