Commit
Β·
789d78c
1
Parent(s):
7e94b04
update space
Browse files
app.py
CHANGED
|
@@ -102,8 +102,9 @@ def disambiguate_sentence(sentence):
|
|
| 102 |
|
| 103 |
# Create an HTML output with a clickable link
|
| 104 |
entity_info = f"""<div>
|
| 105 |
-
<strong>Entity:</strong> {linked_entity['
|
| 106 |
-
<strong>
|
|
|
|
| 107 |
<a href="{linked_entity['url']}" target="_blank">Wikipedia Page</a>
|
| 108 |
</div>
|
| 109 |
"""
|
|
|
|
| 102 |
|
| 103 |
# Create an HTML output with a clickable link
|
| 104 |
entity_info = f"""<div>
|
| 105 |
+
<strong>Entity:</strong> {linked_entity['surface']} <br>
|
| 106 |
+
<strong>Label:</strong> {linked_entity['title']} <br>
|
| 107 |
+
<strong>QID:</strong> {linked_entity['wkd_id']} <br>
|
| 108 |
<a href="{linked_entity['url']}" target="_blank">Wikipedia Page</a>
|
| 109 |
</div>
|
| 110 |
"""
|