Skip to content

Commit

Permalink
Update examples for annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
bgyori committed Jul 23, 2024
1 parent 2b02a69 commit 09b7ddf
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions gilda/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
doc='/apidocs',
)

base_ns = api.namespace('Gilda API', 'Gilda API', path='/')
base_ns = api.namespace('Gilda API', 'Gilda API', path='/',
ordered=True)

grounding_input_model = api.model(
"GroundingInput",
Expand Down Expand Up @@ -160,7 +161,9 @@

ner_input_model = api.model('NERInput', {
'text': fields.String(required=True, description='Text on which to perform'
' NER'),
' NER',
example='The EGF receptor binds EGF which is an interaction'
'important in cancer.'),
'organisms': fields.List(fields.String, example=['9606'],
description='An optional list of taxonomy '
'species IDs defining a priority list'
Expand All @@ -173,10 +176,13 @@
'the grounder to restrict the '
'matches to. By default, '
'no restriction is applied',
example=['HGNC', 'MESH'],
required=False),
'context_text': fields.String(required=False, description='Additional '
'context for '
'disambiguation'),
'disambiguation',
example='The EGF receptor binds EGF which is an interaction'
'important in cancer.'),
})

names_model = fields.List(
Expand Down

0 comments on commit 09b7ddf

Please sign in to comment.