Commit 668e5b3
committed
api: Include labels in DeID service model card
Extend the base model card schema to allow passing a mapping of labels,
i.e. concept IDs (e.g. CUIs) to names. This is particularly useful
when using the MedCAT model DeID service, which is typically configured
to serve models with a relatively small CDB that can be exposed in its
entirety as part of the model card. This information can be interesting
to the user (or client application), providing insight into the concepts
that the model is capable of identifying and by extension enabling them
to decide and control which of them should be redacted. The 'labels'
field is always included in the API's responses when the '/info'
endpoint is called, but is only populated with the mapping in a dict
format when the CMS instance is configured to use the MedCAT model DeID
service.
Signed-off-by: Phoevos Kalemkeris <phoevos.kalemkeris@ucl.ac.uk>1 parent 4fcb576 commit 668e5b3
File tree
5 files changed
+6
-0
lines changed- app
- model_services
- tests/app/api
5 files changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
345 | 345 | | |
346 | 346 | | |
347 | 347 | | |
| 348 | + | |
348 | 349 | | |
349 | 350 | | |
350 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
0 commit comments