Spaces:
Running
Running
fixes for speed
Browse files
app.py
CHANGED
|
@@ -125,7 +125,7 @@ def get_wordnet_pos(word):
|
|
| 125 |
"""Map POS tag to first character used by WordNet lemmatizer
|
| 126 |
with fallback for errors"""
|
| 127 |
try:
|
| 128 |
-
tag = nltk.pos_tag([word])[0][1][0].upper()
|
| 129 |
tag_dict = {"J": wordnet.ADJ,
|
| 130 |
"N": wordnet.NOUN,
|
| 131 |
"V": wordnet.VERB,
|
|
|
|
| 125 |
"""Map POS tag to first character used by WordNet lemmatizer
|
| 126 |
with fallback for errors"""
|
| 127 |
try:
|
| 128 |
+
tag = nltk.tag.pos_tag([word])[0][1][0].upper()
|
| 129 |
tag_dict = {"J": wordnet.ADJ,
|
| 130 |
"N": wordnet.NOUN,
|
| 131 |
"V": wordnet.VERB,
|