Skip to content

Commit b3c7873

Browse files
committed
Add English Wordnet, 2024 edition
1 parent 0a0d5d6 commit b3c7873

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nltk/corpus/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,17 +401,19 @@
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
)
408409
wordnet2022: WordNetCorpusReader = LazyCorpusLoader(
410+
# Obsolete, use english_wordnet instead.
409411
"wordnet2022",
410412
WordNetCorpusReader,
411413
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
412414
)
413-
# Latest Open English Wordnet:
414415
english_wordnet: WordNetCorpusReader = LazyCorpusLoader(
416+
# Latest Open English Wordnet
415417
"english_wordnet",
416418
WordNetCorpusReader,
417419
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),

0 commit comments

Comments
 (0)