Skip to content

Commit 8dbe9a9

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

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nltk/corpus/reader/wordnet.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,8 +2122,7 @@ def tag2pos(self, tag, tagset="en-ptb") -> Optional[str]:
21222122

21232123
from nltk.tag import map_tag
21242124

2125-
utag2wnpos = {'NOUN': 'n', 'VERB': 'v', 'ADJ': 'a', 'ADV': 'r'}
2126-
return utag2wnpos.get(map_tag(tagset, "universal", tag), None)
2125+
return UTAG2WN_POS.get(map_tag(tagset, "universal", tag), None)
21272126

21282127
#############################################################
21292128
# Create information content from corpus

0 commit comments

Comments
 (0)