Skip to content

Commit 1bf5dee

Browse files
committed
More explicit dictionary name
1 parent e860d60 commit 1bf5dee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nltk/corpus/reader/wordnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
POS_LIST = [NOUN, VERB, ADJ, ADV]
7373

7474
# Convert from Universal Tags (Petrov et al., 2012) to Wordnet Pos
75-
UTAG2WN_POS = {"NOUN": "n", "VERB": "v", "ADJ": "a", "ADV": "r"}
75+
UNIVERSAL_TAG_TO_WN_POS = {"NOUN": "n", "VERB": "v", "ADJ": "a", "ADV": "r"}
7676

7777
# A table of strings that are used to express verb frames.
7878
VERB_FRAME_STRINGS = (
@@ -2140,7 +2140,7 @@ def tag2pos(self, tag, tagset="en-ptb"):
21402140
[('Banks', 'NNS', 'n'), ('check', 'VBP', 'v'), ('books', 'NNS', 'n'), ('.', '.', None)]
21412141
"""
21422142

2143-
return UTAG2WN_POS.get(map_tag(tagset, "universal", tag), None)
2143+
return UNIVERSAL_TAG_TO_WN_POS.get(map_tag(tagset, "universal", tag), None)
21442144

21452145
#############################################################
21462146
# Create information content from corpus

0 commit comments

Comments
 (0)