Skip to content

Concept Recognition endpoint

Marta Girdea edited this page Jun 14, 2021 · 7 revisions

Concept Recognition

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.

Annotating Text

To obtain concept annotations of a given medical text, issue a GET request to /ncr/annotate/? with the following parameters:

Example

GET /ncr/annotate/?text=The+patient+has+diabetes&model=HPO

Finding Related Concepts

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:

Example

GET /ncr/match/?text=lung+cancer&model=HPO