Skip to content

Commit b90ee66

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into hotfix-3377
2 parents 537f814 + 6708f01 commit b90ee66

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
@@ -409,16 +409,23 @@
409409
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
410410
)
411411
wordnet2021: WordNetCorpusReader = LazyCorpusLoader(
412+
# Obsolete, use english_wordnet instead.
412413
"wordnet2021",
413414
WordNetCorpusReader,
414415
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
415416
)
416-
# Latest Open English Wordnet:
417417
wordnet2022: WordNetCorpusReader = LazyCorpusLoader(
418+
# Obsolete, use english_wordnet instead.
418419
"wordnet2022",
419420
WordNetCorpusReader,
420421
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
421422
)
423+
english_wordnet: WordNetCorpusReader = LazyCorpusLoader(
424+
# Latest Open English Wordnet
425+
"english_wordnet",
426+
WordNetCorpusReader,
427+
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
428+
)
422429
wordnet_ic: WordNetICCorpusReader = LazyCorpusLoader(
423430
"wordnet_ic", WordNetICCorpusReader, r".*\.dat"
424431
)

0 commit comments

Comments
 (0)