Commit
Β·
20df3ed
1
Parent(s):
789d78c
add requests
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def disambiguate_sentence(sentence):
|
|
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['
|
107 |
<strong>QID:</strong> {linked_entity['wkd_id']} <br>
|
108 |
<a href="{linked_entity['url']}" target="_blank">Wikipedia Page</a>
|
109 |
</div>
|
|
|
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['label']} <br>
|
107 |
<strong>QID:</strong> {linked_entity['wkd_id']} <br>
|
108 |
<a href="{linked_entity['url']}" target="_blank">Wikipedia Page</a>
|
109 |
</div>
|