Skip to content

Commit 8e3ca55

Browse files
ekafCopilot
andauthored
Update nltk/corpus/reader/wordnet.py
Co-authored-by: Copilot <[email protected]>
1 parent b37a6a7 commit 8e3ca55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nltk/corpus/reader/wordnet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2108,7 +2108,7 @@ def filter_forms(forms):
21082108
# 2. Return all that are in the database (and check the original too)
21092109
return filter_forms([form] + forms)
21102110

2111-
def tag2pos(self, tag, tagset="en-ptb") -> str:
2111+
def tag2pos(self, tag, tagset="en-ptb") -> Optional[str]:
21122112
"""
21132113
Convert a tag from one of the tagsets in nltk_data/taggers/universal_tagset, to a
21142114
WordNet Part-of-Speech, using Universal Tags (Petrov et al., 2012) as intermediary.

0 commit comments

Comments
 (0)