Skip to content

Commit f2d1ec1

Browse files
committed
Adjust style
1 parent 14e6174 commit f2d1ec1

3 files changed

Lines changed: 10 additions & 12 deletions

File tree

gilda/app/app.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from gilda import __version__ as version
1010
from gilda.grounder import GrounderInput, Grounder
1111
from gilda.app.proxies import grounder
12-
from gilda.ner import annotate
1312

1413
# NOTE: the Flask REST-X API has to be declared here, below the home endpoint
1514
# otherwise it reserves the / base path.

gilda/app/templates/base.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ <h2 style="margin-top: 10px; margin-bottom: 10px;">Gilda Grounding
3737
(also called <i>named entity recognition</i>).
3838
</p>
3939
<ul>
40-
<li>In the <i>grounding</i> mode, the input text is assumed to
40+
<li>In the <i>Grounding</i> mode, the input text is assumed to
4141
correspond to a single named entity.
4242
</li>
43-
<li>In the <i>annotation</i> mode, a longer span of text is used as
43+
<li>In the <i>Annotation</i> mode, a longer span of text is used as
4444
input which may contain any number of named entities in it.
4545
</li>
4646
</ul>
@@ -71,8 +71,7 @@ <h2 style="margin-top: 10px; margin-bottom: 10px;">Gilda Grounding
7171
Gilda is developed by the
7272
<a href="https://gyorilab.github.io" target="_blank">Gyori Lab for Computational Biomedicine</a>
7373
at <a href="https://www.northeastern.edu" target="_blank">Northeastern University</a>.
74-
Its development is funded by DARPA grants W911NF-15-1-0544,
75-
W911NF-20-1-0255, and HR00112220036. Point of contact:
74+
Its development is funded by DARPA grants HR00112220036. Point of contact:
7675
<a href="mailto:b.gyori@northeastern.edu">Benjamin M. Gyori</a>.
7776
</p>
7877
</div>
@@ -166,7 +165,7 @@ <h4 class="modal-title">Context Text</h4>
166165
{% macro render_ner_form(form) %}
167166
<div class="panel panel-default">
168167
<div class="panel-heading">
169-
<h3 class="panel-title">Gilda Annotation Input</h3>
168+
<h3 class="panel-title">Gilda annotation input</h3>
170169
</div>
171170
<div class="panel-body">
172171
<form class="form" method="POST" role="form">

gilda/app/ui.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,16 +64,16 @@ class NERForm(FlaskForm):
6464
validators=[DataRequired()],
6565
description=dedent(
6666
"""\
67-
Enter text to annotate with named entity recognition (NER) and
68-
grounding. The results will highlight recognized entities and provide
67+
<p>Enter text to annotate with named entities and corresponding identifiers.
68+
The results will highlight recognized entities and provide
6969
text position, grounding information and normalized name for each
70-
entity. Click
71-
<button class="btn btn-default btn-xs" type="button" onclick="fillExample()">here</button>
72-
to get an example from an abstract in an
70+
entity.</p> <p>Click
71+
<a href="#" onclick="fillExample(); return false;">here</a>
72+
for an example input text from an
7373
<a href="https://pubmed.ncbi.nlm.nih.gov/21040840/">article</a>
7474
about small G-proteins."""
7575
),
76-
render_kw={"rows": 12},
76+
render_kw={"rows": 6},
7777
)
7878
organisms = ORGANISMS_FIELD
7979
submit = SubmitField("Submit")

0 commit comments

Comments
 (0)