Skip to content

Commit 0a0d5d6

Browse files
committed
Support English Wordnet
1 parent 9a5622f commit 0a0d5d6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nltk/corpus/__init__.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,17 @@
405405
WordNetCorpusReader,
406406
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
407407
)
408-
# Latest Open English Wordnet:
409408
wordnet2022: WordNetCorpusReader = LazyCorpusLoader(
410409
"wordnet2022",
411410
WordNetCorpusReader,
412411
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
413412
)
413+
# Latest Open English Wordnet:
414+
english_wordnet: WordNetCorpusReader = LazyCorpusLoader(
415+
"english_wordnet",
416+
WordNetCorpusReader,
417+
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
418+
)
414419
wordnet_ic: WordNetICCorpusReader = LazyCorpusLoader(
415420
"wordnet_ic", WordNetICCorpusReader, r".*\.dat"
416421
)

0 commit comments

Comments
 (0)