Closed sweep-ai[bot] closed 10 months ago
Add a parameter to say what part of speech to return. e.g. I might want to have the function yield adjectives only.
Add a parameter to say what part of speech to return. e.g. I might want to have the function yield adjectives only.
Done.
PR Feedback (click)
Description
This pull request adds a new file called
wordnet_vocab.py
which contains a functionyield_word_senses()
that traverses the WordNet tree and yields the names of all synsets.Summary
wordnet_vocab.py
fileyield_word_senses()
function to traverse the WordNet tree and yield synset namesFixes #5.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: