Is your feature request related to a problem? Please describe.
Hello
I have access to WordNet synset offset IDs that I retrieve from an API (key: wnSynsetOffset). They look like this wn:00981304a. It is relatively straightforward to get these through NLTK:
from nltk.corpus import wordnet as nltk_wn
offset = "wn:00981304a"
offset_id = int(offset.split(":")[-1][:-1])
pos = offset[-1]
syns = nltk_wn.synset_from_pos_and_offset(pos, offset_id)
However, it is not clear to me how I can convert this approach to wn. I like the API of wn more and I would like to make use of the translate feature specifically, so that is why I want to make the transition.
Describe the solution you'd like
Perhaps a description in the documentation? I think that this section is relevant but it is not clear to me how to apply it on a use-case. So a real-world example can be helpful, I think.
Describe alternatives you've considered
I have tried the following manipulations but none of them work (yielding empty synset lists):
wn.synsets("wn:00981304a")
wn.synsets("00981304a")
wn.synsets("981304a")
wn.synsets("981304", pos="a")
Is your feature request related to a problem? Please describe.
Hello
I have access to WordNet synset offset IDs that I retrieve from an API (key: wnSynsetOffset). They look like this
wn:00981304a. It is relatively straightforward to get these through NLTK:However, it is not clear to me how I can convert this approach to
wn. I like the API ofwnmore and I would like to make use of thetranslatefeature specifically, so that is why I want to make the transition.Describe the solution you'd like
Perhaps a description in the documentation? I think that this section is relevant but it is not clear to me how to apply it on a use-case. So a real-world example can be helpful, I think.
Describe alternatives you've considered
I have tried the following manipulations but none of them work (yielding empty synset lists):