atnikos commited on
Commit
2cb3b25
·
1 Parent(s): 04a78d2

fixes for speed

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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,