emanuelaboros commited on
Commit
789d78c
Β·
1 Parent(s): 7e94b04

update space

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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['title']} <br>
106
- <strong>QID:</strong> {linked_entity['qid']} <br>
 
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
  """