-
Notifications
You must be signed in to change notification settings - Fork 6
Concept Recognition endpoint
Marta Girdea edited this page Jun 14, 2021
·
7 revisions
Deploying CARDS with docker-compose includes a ccmbioinfo/NeuralCR container. The API for the NeuralCR service is made available under /ncr/
but only if the querying user has authenticated themselves with CARDS as admin.
To obtain concept annotations of a given medical text, issue a GET request to /ncr/annotate/?
with the following parameters:
-
text
: The unstructured text to annotate. -
model
: The concept recognition model trained by the given ontology. The default installation provides:-
HPO
- Human Phenotype Ontology -
MONDO
- Monarch Disease Ontology
-
GET /ncr/annotate/?text=The+patient+has+diabetes&model=HPO
To obtain a ranked list of top concept ontology classes from a selected ontology that best match a given term, issue a GET request to /ncr/match/?
with the following parameters:
-
text
: The input concept to find matches for. -
model
: The concept recognition model trained by the given ontology. The default installation provides:-
HPO
- Human Phenotype Ontology -
MONDO
- Monarch Disease Ontology
-
GET /ncr/match/?text=lung+cancer&model=HPO