We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b37a6a7 commit 8e3ca55Copy full SHA for 8e3ca55
nltk/corpus/reader/wordnet.py
@@ -2108,7 +2108,7 @@ def filter_forms(forms):
2108
# 2. Return all that are in the database (and check the original too)
2109
return filter_forms([form] + forms)
2110
2111
- def tag2pos(self, tag, tagset="en-ptb") -> str:
+ def tag2pos(self, tag, tagset="en-ptb") -> Optional[str]:
2112
"""
2113
Convert a tag from one of the tagsets in nltk_data/taggers/universal_tagset, to a
2114
WordNet Part-of-Speech, using Universal Tags (Petrov et al., 2012) as intermediary.
0 commit comments