MedCAT-gliner
This provides gliner based NER step for MedCAT core library.
Usage
First install from PyPI, e.g:
pip install medcat-gliner
Subsequently, if you have an existing model, you should be able to just change the NER component:
cat = CAT.load_model_pack("path/to/existing/model")
# change component
from medcat_gliner import GLiNERConfig
cat.config.components.ner.comp_name = "gliner_ner"
cat.config.components.ner.custom_cnf = GLiNERConfig()
# recreate pipe with new NER component
cat._recreate_pipe()
# use as needed
NER recall comparison (linkable SNOMED entities)
The following results compare the existing NER (vocab based NER with spell checking) implementation with the gliner implementation when used as the NER component within MedCAT. Evaluation was performed on the 2023 SNOMED CT Linking Challenge dataset.
Important caveat This is not a measure of general NER quality. Recall is computed only with respect to annotated, linkable SNOMED CT entities present in the linking dataset. Mentions outside the annotation scope are treated as false positives by construction, so precision is not meaningful here.
| Implementation | True Positives | False Negatives | Recall | Runtime |
|---|---|---|---|---|
| Vocab based NER | 10,545 | 3,917 | 0.729 | ~5m 50s |
| GliNER implementation | 7,971 | 6,491 | 0.551 | ~34m |
As we can see, for this dataset, GliNER is significantly slower and performs worse than the standard vocab based implementation. This is likely because the vocab based NER step has been configured and tuned to work best within the MedCAT pipeline. It is likely that with additional tuning the GliNER implementation could perform as good or better than the vocab based linker does.
Metadata
Release files for medcat-gliner 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| medcat_gliner-0.2.0.tar.gz | 6.1 kB | With provenance | Details for medcat_gliner-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| medcat_gliner-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for medcat_gliner-0.2.0-py3-none-any.whl |
Total release size: 11.7 kB
Release files / medcat_gliner-0.2.0.tar.gz
| Download URL | medcat_gliner-0.2.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
016133978fa76834cc7ca0aff14e2e2bd37c258d52cfc5cd9b28b0b57a4e2ab6
|
|
BLAKE2b-256 checksum How to use checksums |
c90d7a26cb9728ebea831e9e69e63fab72d2efbd5bfdb4be1796b356460845d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2026.
Transparency logRelease files / medcat_gliner-0.2.0-py3-none-any.whl
| Download URL | medcat_gliner-0.2.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ae076dd3be61a95771a075d832e56dfa6fd270cf4b179175260f13a5f382aeae
|
|
BLAKE2b-256 checksum How to use checksums |
c6f1cb5919fe8803ea2e8c164296885c840c904b819c1fd5b7c0e9427319bab8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2026.
Transparency logSecurity for medcat-gliner 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for medcat_gliner-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.