Skip to content

Commit 6708f01

Browse files
authored
Merge pull request nltk#3337 from ekaf/ewn
Add English Wordnet, 2024 edition
2 parents 40eceae + ea55e67 commit 6708f01

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nltk/corpus/__init__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,16 +401,23 @@
401401
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
402402
)
403403
wordnet2021: WordNetCorpusReader = LazyCorpusLoader(
404+
# Obsolete, use english_wordnet instead.
404405
"wordnet2021",
405406
WordNetCorpusReader,
406407
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
407408
)
408-
# Latest Open English Wordnet:
409409
wordnet2022: WordNetCorpusReader = LazyCorpusLoader(
410+
# Obsolete, use english_wordnet instead.
410411
"wordnet2022",
411412
WordNetCorpusReader,
412413
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
413414
)
415+
english_wordnet: WordNetCorpusReader = LazyCorpusLoader(
416+
# Latest Open English Wordnet
417+
"english_wordnet",
418+
WordNetCorpusReader,
419+
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
420+
)
414421
wordnet_ic: WordNetICCorpusReader = LazyCorpusLoader(
415422
"wordnet_ic", WordNetICCorpusReader, r".*\.dat"
416423
)

0 commit comments

Comments
 (0)