Commit
·
09dc6c7
1
Parent(s):
d6100e0
app
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def prepare_entities_for_highlight(text, results):
|
|
51 |
print("Results:", results)
|
52 |
# it should look like:
|
53 |
# [{'entity': 'org.ent.pressagency.Reuters', 'score': np.float32(98.47), 'index': 78, 'word': 'Reuters', 'start': 440, 'end': 447}]
|
54 |
-
for entity in results
|
55 |
entity_span = (entity["start"], entity["end"])
|
56 |
|
57 |
# Only add non-overlapping entities
|
|
|
51 |
print("Results:", results)
|
52 |
# it should look like:
|
53 |
# [{'entity': 'org.ent.pressagency.Reuters', 'score': np.float32(98.47), 'index': 78, 'word': 'Reuters', 'start': 440, 'end': 447}]
|
54 |
+
for entity in results:
|
55 |
entity_span = (entity["start"], entity["end"])
|
56 |
|
57 |
# Only add non-overlapping entities
|