navigate synsets w/o nested list comprehensions #136
Replies: 3 comments
-
Thanks, that looks useful. But note that there's no reason to do I'll close this issue as it is not a feature request or bug report. |
Beta Was this translation helpful? Give feedback.
-
doesnt github have some option not to create Issue every time.. i see on some repos Q/A and Discussions which are suitable for such things |
Beta Was this translation helpful? Give feedback.
-
I've opened up discussions and moved some issues there: https://github.com/goodmami/wn/discussions/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
More detailed example with docs :
https://gist.github.com/vsraptor/8815944d1e75947ad0c3676c0279519a
here is an easy way to navigate around w/o nested list-comprehensions using pipe module :
get back connected words through synsets : words => synsets => words
list(wn.words('book') | syns | chain | ws )
chain is flattening iterables
i also have this monkey patching :
Beta Was this translation helpful? Give feedback.
All reactions