From c630da5aaef25227d7dd9697d5e55fb9733be8aa Mon Sep 17 00:00:00 2001 From: Ben Gyori Date: Wed, 17 Jul 2024 16:09:42 -0400 Subject: [PATCH] Update NER web template --- gilda/app/templates/ner_matches.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/gilda/app/templates/ner_matches.html b/gilda/app/templates/ner_matches.html index 94614a4..99caf6c 100644 --- a/gilda/app/templates/ner_matches.html +++ b/gilda/app/templates/ner_matches.html @@ -18,17 +18,20 @@

NER Results

Span + Text Grounding - Name + Standard name Score - Additional Groundings + Additional groundings - {% for text, matches, start, end in annotations %} + {% for annotation in annotations %} - {% set match_curie = matches[0].term.get_curie() %} - {{start}}-{{end}} + {% set match = annotation['matches'][0] %} + {% set match_curie = match.term.get_curie() %} + {{ annotation['start'] }}-{{ annotation['end'] }} + {{ annotation['text'] }} {{ match_curie }}