From 09b7ddff2059a6984a3a91bdf3c61d1bbc164a43 Mon Sep 17 00:00:00 2001 From: Ben Gyori Date: Tue, 23 Jul 2024 15:13:27 -0400 Subject: [PATCH] Update examples for annotation --- gilda/app/app.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/gilda/app/app.py b/gilda/app/app.py index bad32cb..e5b84d0 100644 --- a/gilda/app/app.py +++ b/gilda/app/app.py @@ -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", @@ -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' @@ -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(