jcg00v commited on
Commit
3aaa4ea
1 Parent(s): c627b59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -60,13 +60,12 @@ def get_result_text_es_pt (list_entity, text, lang):
60
  def get_result_text_ca (list_entity, text):
61
  result_words = []
62
  punc_tags = ['?', '!', ',', '.', ':']
63
-
64
  for idx, entity in enumerate(list_entity):
65
  start = entity["start"]
66
  end = entity["end"]
67
  tag = entity["entity"]
68
  word = entity["word"]
69
- tmp_word = ""
70
 
71
  # check punctuation
72
  punc_in = next((p for p in punc_tags if p in tag), "")
 
60
  def get_result_text_ca (list_entity, text):
61
  result_words = []
62
  punc_tags = ['?', '!', ',', '.', ':']
63
+ tmp_word = ""
64
  for idx, entity in enumerate(list_entity):
65
  start = entity["start"]
66
  end = entity["end"]
67
  tag = entity["entity"]
68
  word = entity["word"]
 
69
 
70
  # check punctuation
71
  punc_in = next((p for p in punc_tags if p in tag), "")