Eric Kafe
Eric Kafe
Checking the Python files in NLTK with "python -m doctest" reveals that many tests are failing. In many cases, the failures are just cosmetic discrepancies between the expected and the...
This PR updates the "extended_omw" package with additional wordnets from the "wns" folder in the recent OMW 1.4 source release (retrieved from https://github.com/omwn/omw-data/archive/refs/tags/v1.4.zip). In particular, this PR corrects large numbers...
Re-running benchmarks of LRCos produces differences of 1 or 2 correct answers out of the 50 questions in some individual BATS tests, so that the benchmark accuracy varies by up...
Fix #1970: make WordNet's synset relations available from the lemmas. ``` from nltk.corpus import wordnet as wn insect = wn.lemmas("insect")[0] print(insect.hypernyms()) ``` > [Synset('arthropod.n.01')] The _in_topic_domain()_ relation ("-c") is hybrid,...
Fix #2567: the implementation of Wordnet's __\_morphy_ lemmatizer in NLTK is buggy, because it adds a recursive step, which is not a part of the _morphy_ program, as implemented in...
Fix #2314: after discarding eventual cycles in relation closures, it is still annoying that warnings are output, which are irrelevant to most end users. This PR adds a _verbose_ parameter...
Fix #3072: when a grammar is recursive, the default generation depth (_sys.maxsize_) is wildly out of reach. ``` import sys print(sys.maxsize) ``` 9223372036854775807 `print(sys.getrecursionlimit())` 1000 So this PR adds a...
**Describe the bug** Wn loses some merged synsets in translation, even though the original CILI mappings correctly link the merged source synsets to the same target synset. **To Reproduce** For...
Fix #3244. Duplicate elimination is a central theme in the literature on the transitive closure of relational operators. > > Note that, when the graph is acyclic, duplicate elimination is...
The relation closure for wordnet synsets is supposed to prevent duplicates in the output. However, the duplicates check fails to detect some repetitions, which occur when there are multiple paths...