Spaces:
Runtime error
Runtime error
paul hilders
commited on
Commit
•
82a35b6
1
Parent(s):
929c841
Test highlighting
Browse files
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,
|
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 |
|