jcg00v commited on
Commit
99c48ed
1 Parent(s): 956bc8b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ def get_result_text_es_pt (list_entity, text, lang):
9
  else:
10
  punc_tags = ['?', '!', ',', '.', ':']
11
 
12
- for entity in list_entity:
13
  tag = entity["entity"]
14
  word = entity["word"]
15
  start = entity["start"]
@@ -54,7 +54,7 @@ def get_result_text_ca (list_entity, text):
54
  result_words = []
55
  punc_tags = ['?', '!', ',', '.', ':']
56
 
57
- for entity in list_entity:
58
  start = entity["start"]
59
  end = entity["end"]
60
  tag = entity["entity"]
 
9
  else:
10
  punc_tags = ['?', '!', ',', '.', ':']
11
 
12
+ for idx, entity in enumerate(list_entity):
13
  tag = entity["entity"]
14
  word = entity["word"]
15
  start = entity["start"]
 
54
  result_words = []
55
  punc_tags = ['?', '!', ',', '.', ':']
56
 
57
+ for idx, entity in enumerate(list_entity):
58
  start = entity["start"]
59
  end = entity["end"]
60
  tag = entity["entity"]