Skip to main content

Tests Documentation PyPI Demo Coverage DOI

EDS-NLP

EDS-NLP is a collaborative NLP framework that aims primarily at extracting information from French clinical notes. At its core, it is a collection of components or pipes, either rule-based functions or deep learning modules. These components are organized into a novel efficient and modular pipeline system, built for hybrid and multitask models. We use spaCy to represent documents and their annotations, and Pytorch as a deep-learning backend for trainable components.

EDS-NLP is versatile and can be used on any textual document. The rule-based components are fully compatible with spaCy's components, and vice versa. This library is a product of collaborative effort, and we encourage further contributions to enhance its capabilities.

Check out our interactive demo !

Features

Quick start

Installation

You can install EDS-NLP via pip. We recommend pinning the library version in your projects, or use a strict package manager like Poetry.

pip install edsnlp==0.24.0

or if you want to use the trainable components (using pytorch)

pip install "edsnlp[ml]==0.24.0"

A first pipeline

Once you've installed the library, let's begin with a very simple example that extracts mentions of COVID19 in a text, and detects whether they are negated.

import edsnlp, edsnlp.pipes as eds

nlp = edsnlp.blank("eds")

terms = dict(
    covid=["covid", "coronavirus"],
)

# Split the documents into sentences, this isneeded for negation detection
nlp.add_pipe(eds.sentences())
# Matcher component
nlp.add_pipe(eds.matcher(terms=terms))
# Negation detection (we also support spacy-like API !)
nlp.add_pipe("eds.negation")

# Process your text in one call !
doc = nlp("Le patient n'est pas atteint de covid")

doc.ents
# Out: (covid,)

doc.ents[0]._.negation
# Out: True

Documentation & Tutorials

Go to the documentation for more information.

Disclaimer

The performances of an extraction pipeline may depend on the population and documents that are considered.

Contributing to EDS-NLP

We welcome contributions ! Fork the project and propose a pull request. Take a look at the dedicated page for detail.

Citation

If you use EDS-NLP, please cite us as below.

@misc{edsnlp,
  author = {Wajsburt, Perceval and Petit-Jean, Thomas and Dura, Basile and Cohen, Ariel and Jean, Charline and Bey, Romain},
  doi    = {10.5281/zenodo.6424993},
  title  = {EDS-NLP: efficient information extraction from French clinical notes},
  url    = {https://aphp.github.io/edsnlp}
}

Acknowledgement

We would like to thank Assistance Publique – Hôpitaux de Paris, AP-HP Foundation and Inria for funding this project.

Metadata

Release files for edsnlp 0.24.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edsnlp 0.24.0
File Size Uploaded Provenance Actions
edsnlp-0.24.0.tar.gz 1.7 MB Without provenance Details for edsnlp-0.24.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for edsnlp 0.24.0
File Actions
edsnlp-0.24.0-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details for edsnlp-0.24.0-cp314-cp314-win_amd64.whl
edsnlp-0.24.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for edsnlp-0.24.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
edsnlp-0.24.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for edsnlp-0.24.0-cp314-cp314-macosx_11_0_arm64.whl
edsnlp-0.24.0-cp314-cp314-macosx_10_15_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.15+ x86-64 Details for edsnlp-0.24.0-cp314-cp314-macosx_10_15_x86_64.whl
edsnlp-0.24.0-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for edsnlp-0.24.0-cp313-cp313-win_amd64.whl
edsnlp-0.24.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for edsnlp-0.24.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
edsnlp-0.24.0-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for edsnlp-0.24.0-cp313-cp313-macosx_11_0_arm64.whl
edsnlp-0.24.0-cp313-cp313-macosx_10_13_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.13+ x86-64 Details for edsnlp-0.24.0-cp313-cp313-macosx_10_13_x86_64.whl
edsnlp-0.24.0-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for edsnlp-0.24.0-cp312-cp312-win_amd64.whl
edsnlp-0.24.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for edsnlp-0.24.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
edsnlp-0.24.0-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for edsnlp-0.24.0-cp312-cp312-macosx_11_0_arm64.whl
edsnlp-0.24.0-cp312-cp312-macosx_10_13_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.13+ x86-64 Details for edsnlp-0.24.0-cp312-cp312-macosx_10_13_x86_64.whl
edsnlp-0.24.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for edsnlp-0.24.0-cp311-cp311-win_amd64.whl
edsnlp-0.24.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64, Linux glibc 2.24+ x86-64 Details for edsnlp-0.24.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
edsnlp-0.24.0-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for edsnlp-0.24.0-cp311-cp311-macosx_11_0_arm64.whl
edsnlp-0.24.0-cp311-cp311-macosx_10_9_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.9+ x86-64 Details for edsnlp-0.24.0-cp311-cp311-macosx_10_9_x86_64.whl
edsnlp-0.24.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for edsnlp-0.24.0-cp310-cp310-win_amd64.whl
edsnlp-0.24.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for edsnlp-0.24.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
edsnlp-0.24.0-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for edsnlp-0.24.0-cp310-cp310-macosx_11_0_arm64.whl
edsnlp-0.24.0-cp310-cp310-macosx_10_9_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.9+ x86-64 Details for edsnlp-0.24.0-cp310-cp310-macosx_10_9_x86_64.whl

Total release size: 48.5 MB

Release files / edsnlp-0.24.0.tar.gz

Download URL edsnlp-0.24.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
e351b9fd2085694bce21287991964271fcad2cafc1c9af385e69ce748f0eea0b
BLAKE2b-256 checksum
How to use checksums
10209c63e70b6d6c8e77ce4dfce7f925dceb7356a49c5efa3de36692385a49b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp314-cp314-win_amd64.whl

Download URL edsnlp-0.24.0-cp314-cp314-win_amd64.whl
Size 2.0 MB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
c03301ae24dd5c711efc0b78fa7d35ee5176b2de22469793f97e53545f8f7c9f
BLAKE2b-256 checksum
How to use checksums
9b0ff106d3700bd73886d273032b403b50b73db9cc51172e8e2a6fc3c7886c09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL edsnlp-0.24.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.2 MB
Tags CPython 3.14 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
47aa9ea52ea9d7f1d916a92f2f917405fe272a6cefe86652bfdfe252a6af797a
BLAKE2b-256 checksum
How to use checksums
4812c7d1fd767649494bff81158641a994216f493cc5d00a19ab282d1ea79773
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp314-cp314-macosx_11_0_arm64.whl

Download URL edsnlp-0.24.0-cp314-cp314-macosx_11_0_arm64.whl
Size 2.1 MB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5b9242baf455bc7e0f4c7b791d62b7d5467ddc1e9201832219ee30799bdb007e
BLAKE2b-256 checksum
How to use checksums
f8bcd0f649dc3866f87e76e9cdbbca8617ac485371477a9ab55483f17e876360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp314-cp314-macosx_10_15_x86_64.whl

Download URL edsnlp-0.24.0-cp314-cp314-macosx_10_15_x86_64.whl
Size 2.1 MB
Tags CPython 3.14 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
bd69e928939bfbddab014cf6d9abf3ef54b13700f48d90acc2774016b7869f5c
BLAKE2b-256 checksum
How to use checksums
f2f5f5b669fbdec96fc224fcdcca400994b85e001bbc2ade8c2006a78827995c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp313-cp313-win_amd64.whl

Download URL edsnlp-0.24.0-cp313-cp313-win_amd64.whl
Size 2.0 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
ae0929bbd59cd90fda89566c7d8a693106dab6a764a989502531d9826a3956d7
BLAKE2b-256 checksum
How to use checksums
5d4284abdea6dd78a2d2a68000fd89b2330374ca44813e0b89dff51d6da940ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL edsnlp-0.24.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.2 MB
Tags CPython 3.13 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d3f44717ef93fc61ff2af4d98b8029c09359deced735a0edcb4c5fbd5cde3d95
BLAKE2b-256 checksum
How to use checksums
6623b8ad475b658e43932b96de826de1bf5458f9b8c0561ed34e5dbb70c5453a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp313-cp313-macosx_11_0_arm64.whl

Download URL edsnlp-0.24.0-cp313-cp313-macosx_11_0_arm64.whl
Size 2.1 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b5948948eb1c43c1270fb9fa658c705187ac99ea5c3c99f0e488c583e0070efa
BLAKE2b-256 checksum
How to use checksums
bca926c581c42c0ed659be97083b6490bb23188ff54b3c7f37f3739fa5049d00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp313-cp313-macosx_10_13_x86_64.whl

Download URL edsnlp-0.24.0-cp313-cp313-macosx_10_13_x86_64.whl
Size 2.1 MB
Tags CPython 3.13 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
03d3ddd09f9f575cd8ac61285cd5109f62993cb8a82801c06a9dd08bd9ef8295
BLAKE2b-256 checksum
How to use checksums
fd4979cecb4a1b9ae6d4905e53794858902be1029edba004ad3ec6cf9d8cad08
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp312-cp312-win_amd64.whl

Download URL edsnlp-0.24.0-cp312-cp312-win_amd64.whl
Size 2.0 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
6742f8d8b485aa888d1b6cbc6aba965640d990c073cec528e0028b10667daa89
BLAKE2b-256 checksum
How to use checksums
418ef080d675a42a58dc2a337a16ddf3d81f4b2dcfab359669dbca4cc04a5e22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL edsnlp-0.24.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.2 MB
Tags CPython 3.12 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5090390377193ff6554eb806c7c07f411aee8194ced06d39cd9644c91e854a8b
BLAKE2b-256 checksum
How to use checksums
31eb170c92a995e14a9c98c159adf3136e421857e38cf9ffb9ce6b0ca244300a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp312-cp312-macosx_11_0_arm64.whl

Download URL edsnlp-0.24.0-cp312-cp312-macosx_11_0_arm64.whl
Size 2.1 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
223c5013a0436eff4ea86c8c2434fa5481c9e50a50f29b386b551c570b9ef2e1
BLAKE2b-256 checksum
How to use checksums
7e452b4db2fceb879e086cf3c8b48b11358a6f018cb0be20f7f7f2ced0d58569
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp312-cp312-macosx_10_13_x86_64.whl

Download URL edsnlp-0.24.0-cp312-cp312-macosx_10_13_x86_64.whl
Size 2.1 MB
Tags CPython 3.12 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
022711d8a78cc591d8dc8946efbb304f6030e4512f549f22e05f92ed85edba47
BLAKE2b-256 checksum
How to use checksums
234336bcf0e780b5bcdd2a186d463d09c054a6cba20243ae5fe9c5eff7e5123e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp311-cp311-win_amd64.whl

Download URL edsnlp-0.24.0-cp311-cp311-win_amd64.whl
Size 2.0 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
47065ef5061253a555eea55ce190e2e397d3eb47eee2fb14764df6650e1d5af8
BLAKE2b-256 checksum
How to use checksums
46126953ff2baa09653a329bb87f0642b5e6ef8fcdc2a8c9ddeb53d1aca831fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL edsnlp-0.24.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.2 MB
Tags CPython 3.11 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
cd40c6bf2c9addf8080e687d91a8a019c30979fd96ff5c647cf28344f020841f
BLAKE2b-256 checksum
How to use checksums
8b012748f543caf6cf2ff1748c860661f12cadd2b01a758b4b98b5e562875614
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp311-cp311-macosx_11_0_arm64.whl

Download URL edsnlp-0.24.0-cp311-cp311-macosx_11_0_arm64.whl
Size 2.1 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
92316ce88f99b938cd073b67a51069e46e6b6898e5861b7c3a130d45b71d5b5c
BLAKE2b-256 checksum
How to use checksums
fc4af90d156b7f45ec7d9f5a728930ea93920e0c2721a9947da1ec3f86710825
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp311-cp311-macosx_10_9_x86_64.whl

Download URL edsnlp-0.24.0-cp311-cp311-macosx_10_9_x86_64.whl
Size 2.1 MB
Tags CPython 3.11 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
44b757ceadcdbf2393226b9287e7ad874f9ff1c83e61ffba084f78411cf4aa20
BLAKE2b-256 checksum
How to use checksums
43272bcca51e2606a67e77d87e6d23b11217cbcdd3a94457b1e8851c47be569d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp310-cp310-win_amd64.whl

Download URL edsnlp-0.24.0-cp310-cp310-win_amd64.whl
Size 2.0 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
9a742a9222264d54e14dc8c78696dc76a4746e1e4ae06556135e596f2c0005c2
BLAKE2b-256 checksum
How to use checksums
a536fcd295399d67d928b008ec00e8d68a74a833c641bb6d1117b3fa12a769b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL edsnlp-0.24.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 3.1 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
b0e499366e2ab867015e18e034db17af5f8e288c05f784b7573ab4d62339957d
BLAKE2b-256 checksum
How to use checksums
aa1a4cfbfb5b10d13a835bb9b889d7cdf5bf69cd2e93dd1fecb32aad2987e61b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp310-cp310-macosx_11_0_arm64.whl

Download URL edsnlp-0.24.0-cp310-cp310-macosx_11_0_arm64.whl
Size 2.1 MB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d1c20bc95b9e4c96fea93697ab8dbfed42bf7022c2fffd654777f2f3e5e4bd60
BLAKE2b-256 checksum
How to use checksums
dadf80fb95025124e72837b86637c7021de8d42bdcee9fc3aacabe0dee655167
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / edsnlp-0.24.0-cp310-cp310-macosx_10_9_x86_64.whl

Download URL edsnlp-0.24.0-cp310-cp310-macosx_10_9_x86_64.whl
Size 2.1 MB
Tags CPython 3.10 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
84852d7f2153240e4a8998bad08e416f5b5e0fb5fa9fc1b8f1ab4da75ff326e5
BLAKE2b-256 checksum
How to use checksums
3cce4ee2c58d6168dac152cb8c70cbea1eb02e6bb48b6e7bebd489c9c96a1b56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for edsnlp 0.24.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.24.0 This release

21 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page