Skip to content

Conversation

@phoevos
Copy link
Member

@phoevos phoevos commented Jun 26, 2025

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.

@phoevos phoevos requested a review from baixiac June 26, 2025 12:56
@phoevos phoevos added the enhancement New feature or request label Jun 26, 2025
Copy link
Member

@baixiac baixiac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Somehow the default branch was renamed to main and pls update "master"s inside .github/workflows to bring back the CI.

phoevos added 2 commits June 26, 2025 14:43
Signed-off-by: Phoevos Kalemkeris <phoevos.kalemkeris@ucl.ac.uk>
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>
@phoevos phoevos force-pushed the feature-phoevos-deid-add-labels branch from eb02316 to 668e5b3 Compare June 26, 2025 13:43
@phoevos phoevos merged commit 668e5b3 into main Jul 1, 2025
7 checks passed
@phoevos phoevos deleted the feature-phoevos-deid-add-labels branch July 1, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants