Commit
·
bf5bc24
1
Parent(s):
7e788d5
app
Browse files
app.py
CHANGED
@@ -48,7 +48,7 @@ def prepare_entities_for_highlight(text, results):
|
|
48 |
|
49 |
# Print debug info about tokenization
|
50 |
print(f"Original text: {text}")
|
51 |
-
|
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 category, entity_list in results.items():
|
|
|
48 |
|
49 |
# Print debug info about tokenization
|
50 |
print(f"Original text: {text}")
|
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 category, entity_list in results.items():
|