Eric Kafe
Eric Kafe
Thanks @caiw and @nezda: indeed, the original Morphy from Princeton does not have these bugs, and neither does my Prolog implementation, [wn_morphy.pl](https://github.com/ekaf/wordnet-prolog/blob/master/wn_morphy.pl). So there must be something wrong with the...
_WordNetLemmatizer_ and _morphy_ are only simple wrappers, that pick just one single lemma from the list of lemmas found by _\_morphy_. The strategies chosen (shortest vs. first found lemma) may...
@rmccampbell, cyclic relations are not expected in WordNet (except with a few occurrences of symmetry), so the warnings are meant to be actionable for debugging spurious cyclicity in the relational...
Yes, these warnings are not relevant to end users. A solution is to add a _verbose_ parameter to the 4 functions that call _warnings.warn()_ in __util.py_,_ so that the warning...
This PR includes #3218, which fixes the problem raised by @rmccampbell, concerning [excessive verbosity in the warnings](https://github.com/nltk/nltk/issues/2314#issuecomment-1859077547).
The _acyclic_breadth_first()_ function uses two structures to manage the relation closure: _traversed_, a set of nodes already seen, and _queue_, a deque of (child, level) pairs to lookup next. [This...
Calculating the transitive hypernymic closure of all the 82115 noun synsets in WordNet 3.0 with either solution yields identical closures in both cases, but the solution implemented in this PR...
This would be a useful addition to the _cmudict_ corpus reader. It could eventually go into a separate module, especially if NLTK had more IPA phonetics or TTS material. Meanwhile,...
@bryant1410, how big a speed improvement do you typically observe on your use case, when setting _sort_ and _force_list_ to False?
There are two problems with the above test script. First, it only shows the speedups attributed to sort=False. Setting force_list to False has no effect on the speed since the...