-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you try to loop through senses first, hypernym_paths() hangs #157
Comments
This is odd. I suspect the edit: here's a shorter MWE: import wn
en = wn.Wordnet('omw-en:1.4')
en.sense('omw-en-beast-00015388-n').synset().hypernym_paths() |
Looks like my guess was correct. Here is Lines 896 to 905 in a832a63
Note that it calls the module function Lines 1156 to 1162 in a832a63
But the Lines 266 to 274 in a832a63
Secondly, the wordnet object of the sense (accessible via the Finally, it looks like I'm going to assign this to you, @fcbond. If that's ok, please submit a PR and I'll look it over. If not, I can do it. |
@fcbond just checking in. Do you think you can do this, or shall I? |
Hi,
It is on my todo list, but might have to wait until after the move. No
rush I think.
…On Fri, Jan 21, 2022 at 1:01 PM Michael Wayne Goodman < ***@***.***> wrote:
@fcbond <https://github.com/fcbond> just checking in. Do you think you
can do this, or shall I?
—
Reply to this email directly, view it on GitHub
<#157 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIPZRTEM5IXRZL2AXOGHUDUXDSA3ANCNFSM5LEP57TA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Francis Bond <https://fcbond.github.io/>
Division of Linguistics and Multilingual Studies
Nanyang Technological University
|
The synset issue was apparently resolved in #170. |
Fix #157: Sense.word() object uses same Wordnet
Hi,
if you try to loop through senses, then try to find hypernym paths, the code hangs. Looping through synsets is fine!
For example, the code below will print the path for the synset in the first loop, but hang in the second loop.
The text was updated successfully, but these errors were encountered: