Skip to content

Commit 90f1855

Browse files
committed
Support OEWN 2022
1 parent 703aeca commit 90f1855

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nltk/corpus/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,11 @@
405405
WordNetCorpusReader,
406406
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
407407
)
408+
wordnet2022: WordNetCorpusReader = LazyCorpusLoader(
409+
"wordnet2022",
410+
WordNetCorpusReader,
411+
LazyCorpusLoader("omw-1.4", CorpusReader, r".*/wn-data-.*\.tab", encoding="utf8"),
412+
)
408413
wordnet_ic: WordNetICCorpusReader = LazyCorpusLoader(
409414
"wordnet_ic", WordNetICCorpusReader, r".*\.dat"
410415
)

0 commit comments

Comments
 (0)