Registry / ai-ml / edsnlp

edsnlp

JSON →
library0.22.0pypypi✓ verified 87d ago

edsnlp is a modular, fast NLP framework compatible with PyTorch and spaCy, offering tailored support for French clinical notes. Current version 0.21.0, requires Python >=3.10. Release cadence: frequent, minor releases monthly.

pip install edsnlp
INSTALL
IMPORT
SIG · EDSNLP
E
edsnlp
ai-mlpythonv0.22.0
Install
21.2s avg
Import
3570ms
Disk
571MB
Pass rate
4/ 10
Env Coverage4 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.22.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
glibc
py 3.10
✕ build_error
✓ 23.6s
py 3.11
✕ build_error
✓ 21.2s
py 3.12
✕ build_error
✓ 19.6s
py 3.13
✕ build_error
✓ 20.4s
py 3.9
✕ build_error
✕ build_error
571MB installed
● package 571MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

edsnlp
import edsnlp
EDSPipeline
from edsnlp import EDSPipeline
from edsnlp.pipelines import EDSPipeline
EDSPipeline is a class in the top-level edsnlp module, not in edsnlp.pipelines.
Pipeline
from edsnlp import Pipeline
from spacy import Pipeline
Using spacy's Pipeline instead of edsnlp's custom Pipeline may lack clinical components.

Create a blank French clinical pipeline, add the normalizer, and process a sample sentence.

import edsnlp nlp = edsnlp.blank("eds") nlp.add_pipe("eds.normalizer") doc = nlp("Le patient a été admis pour une douleur thoracique.") print(doc.ents)
Debug
Known issues
breakingIn edsnlp 0.21.0, the API for adding custom pipelines changed. Use nlp.add_pipe() instead of manual pipeline construction.
fix
Replace custom pipeline code with nlp.add_pipe().
affects: >=0.20.0
deprecatedThe 'eds' language identifier may be deprecated in future versions. Consider using 'edsnlp' as the language ID.
fix
Use nlp = edsnlp.load('edsnlp') instead of edsnlp.blank('eds').
affects: current
gotchaThe edsparse parser requires spaCy version 3.6 or higher. Incompatibility may cause silent failures.
fix
Upgrade spaCy: pip install spacy>=3.6.
affects: <0.21.0
Errors
Common errors & fixes
ValueError: [E002] Can't find factory for 'eds.normalizer'
The 'eds.normalizer' component is not registered. The edsnlp pipeline components are not automatically loaded.
fix
Ensure you have called 'import edsnlp' and that your edsnlp version includes the component.
ModuleNotFoundError: No module named 'edsnlp.pipelines'
Import path changed: edsnlp.pipelines no longer exists in edsnlp 0.21.0.
fix
Use 'from edsnlp import EDSPipeline' instead of 'from edsnlp.pipelines import EDSPipeline'.
Upgrade
Version history
0.22.0latest on PyPI · released Jun 17, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
OpenAI (training)
1
Resources
edsnlp — pip install edsnlp · libregistry