Skip to content

Commit

Permalink
Update NER web template
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Jul 17, 2024
1 parent ea54054 commit c630da5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions gilda/app/templates/ner_matches.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,20 @@ <h3 class="panel-title">NER Results</h3>
<thead>
<tr>
<th>Span</th>
<th>Text</th>
<th>Grounding</th>
<th>Name</th>
<th>Standard name</th>
<th>Score</th>
<th>Additional Groundings</th>
<th>Additional groundings</th>
</tr>
</thead>
<tbody>
{% for text, matches, start, end in annotations %}
{% for annotation in annotations %}
<tr>
{% set match_curie = matches[0].term.get_curie() %}
<td>{{start}}-{{end}}</td>
{% set match = annotation['matches'][0] %}
{% set match_curie = match.term.get_curie() %}
<td>{{ annotation['start'] }}-{{ annotation['end'] }}</td>
<td>{{ annotation['text'] }}</td>
<td>
<a class="label label-primary" href="{{ match['url'] }}">
{{ match_curie }}
Expand Down

0 comments on commit c630da5

Please sign in to comment.