cyberandy commited on
Commit
fe49e8e
1 Parent(s): 74fb24f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,8 +108,8 @@ entities_data = {}
108
 
109
  if text_input:
110
  if selected_language in ["German", "English - spaCy"]:
111
- doc_de = model(text_input)
112
- entities = [(ent.text, ent.label_, ent._.kb_qid, ent._.url_wikidata) for ent in doc_de.ents]
113
  for entity in entities:
114
  entity_string, entity_type, wikidata_id, wikidata_url = entity
115
  if wikidata_url:
 
108
 
109
  if text_input:
110
  if selected_language in ["German", "English - spaCy"]:
111
+ doc = model(text_input)
112
+ entities = [(ent.text, ent.label_, ent._.kb_qid, ent._.url_wikidata) for ent in doc.ents]
113
  for entity in entities:
114
  entity_string, entity_type, wikidata_id, wikidata_url = entity
115
  if wikidata_url: