paul hilders commited on
Commit
82a35b6
1 Parent(s): 929c841

Test highlighting

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -84,7 +84,7 @@ def NER_demo(image, text):
84
  for ent in nlp(text).ents:
85
  ent_text = ent.text
86
  ent_label = ent.label_
87
- highlighed_entities.append((ent_text, ent_label))
88
 
89
  print(highlighed_entities)
90
 
 
84
  for ent in nlp(text).ents:
85
  ent_text = ent.text
86
  ent_label = ent.label_
87
+ highlighed_entities.append((ent_text, 1.0))
88
 
89
  print(highlighed_entities)
90