Skip to main content

Modular, fast NLP framework, compatible with Pytorch and spaCy, offering tailored support for French clinical notes.

Project description

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

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

pip install "edsnlp[ml]==0.21.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edsnlp-0.21.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

edsnlp-0.21.0-cp314-cp314-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.14Windows x86-64

edsnlp-0.21.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

edsnlp-0.21.0-cp314-cp314-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

edsnlp-0.21.0-cp314-cp314-macosx_10_15_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.14macOS 10.15+ x86-64

edsnlp-0.21.0-cp313-cp313-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.13Windows x86-64

edsnlp-0.21.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

edsnlp-0.21.0-cp313-cp313-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

edsnlp-0.21.0-cp313-cp313-macosx_10_13_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 10.13+ x86-64

edsnlp-0.21.0-cp312-cp312-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.12Windows x86-64

edsnlp-0.21.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

edsnlp-0.21.0-cp312-cp312-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

edsnlp-0.21.0-cp312-cp312-macosx_10_13_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

edsnlp-0.21.0-cp311-cp311-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.11Windows x86-64

edsnlp-0.21.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

edsnlp-0.21.0-cp311-cp311-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

edsnlp-0.21.0-cp311-cp311-macosx_10_9_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

edsnlp-0.21.0-cp310-cp310-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.10Windows x86-64

edsnlp-0.21.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

edsnlp-0.21.0-cp310-cp310-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

edsnlp-0.21.0-cp310-cp310-macosx_10_9_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

File details

Details for the file edsnlp-0.21.0.tar.gz.

File metadata

  • Download URL: edsnlp-0.21.0.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for edsnlp-0.21.0.tar.gz
Algorithm Hash digest
SHA256 2ced74448e341d71a80c91adfc31dbcf86c4f1be7839ad57540d525c3e4c3801
MD5 6eae3aa181bb414af35f95000ccc7c88
BLAKE2b-256 380fd3589341ab6f2e6cbed84c71c50e71ed35a13c438ed78ee64da9c5624245

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: edsnlp-0.21.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for edsnlp-0.21.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 5b37b3189d77112b9e10b696dd4b134356dfb9c1836a1ed7b74617dd704b0aca
MD5 0c482f8dc18e6e6678076852b5c2ece0
BLAKE2b-256 7eb7a83ed65d01bff5a72e443c78eefc14ad031955e9f03b47a203480f72ee86

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 219840a55af6168077f7d4c4ff3dc996385931da3ed50df7550aba577c6bcd65
MD5 e923a9396e0330d70908eba1b5bbd8d2
BLAKE2b-256 8f5412303cb72d9960dffbdc6724188c679097c3e56b77ecbb18801439a07e80

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0ed31122bf2d3c47c5a052135d32a30fceea8fcf5f61ab9edc758f1a7c16c036
MD5 161a7a8b4ee48a4981f72981c06adc4a
BLAKE2b-256 47ecafbae72873972084efc739ac8605e643aacdd821f4024e574af3d53f5551

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp314-cp314-macosx_10_15_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 388749142a49fe5669d37dca3b20d958ea9025e5683a7f996c0320cb53b451a3
MD5 8a56c6b26316ccc8626b0c7dad3ff57e
BLAKE2b-256 c56a4aa201cf511bc6245a6de732816407fb60a5063ed96cb0fd2ab968c338ce

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: edsnlp-0.21.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for edsnlp-0.21.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 feb3989413af6d0327e29b88f15ba9c09859ad39b84fff2b51bb67876b1fd8f2
MD5 1ebd1a5658960e5a6dcc006003169e4c
BLAKE2b-256 234e1a5668013128b5c4ac7e5338dfecffd7424fd0d05e0daca42e5b83b16fcb

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2dc76206db264a934b04762c7417132e85545cbaa8e1fb047f8c6c9d5fcd1db8
MD5 1921419cbf7bb160dd89f26de0fa7e9e
BLAKE2b-256 2c37c97c9f52250027fcbedeb5d97030336f0a528fb057e71d5797c4249ced05

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4bfc089cd997ab8fd503f4aac3d157d729e03747ba46bb36564509a7c4614364
MD5 a426edf9b389bb19e922c4fff7d0c4f0
BLAKE2b-256 b9104310894e9b673ff695f95ded9f95674cd45f0891e0d88293c08f49fc2f26

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp313-cp313-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 3751469baf891c8c1e3518a2bdd94f284aa0b94c306c368bdc5bd3f69eb5dd55
MD5 c5120790a0f1ec693b69be1b19062f5d
BLAKE2b-256 d429806e7e72e9350cf990b934f436d89d142fbd883e5aeae3f9c328accd12b8

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: edsnlp-0.21.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for edsnlp-0.21.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 50efef8258187e4154481170396ea20a800354cad12dca852246e3e35d3d6756
MD5 f137ffdb84b314931aebdbba7f6d717b
BLAKE2b-256 5c9762589679f00de462f1bd9cf9511e43fa69a7049bc615cf96b1bbade87f5b

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 87490ee5001f726420878e86cb8bd1535b1fdea01de666622436bca3ce63fa99
MD5 08fe110dedc204bff84d95c79fbdb66d
BLAKE2b-256 a5b0a3f14ae767fc1bc79a643d59c29ac3031b7c1ab552d3ae8f72e797771d29

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 93998c07a1c22066dc213fc0d507ae1f01a85d4924e280abbefe84766466ca2a
MD5 47aa260202d0287ffabcb326d8afe870
BLAKE2b-256 5f62dd3e05270d3e17d073c0c0745c4dc52b13b10547d2dcdacf3c74bd5ff165

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 807fa89156f646edb9a4eb61139486cc8e1c5fc6cc546bcd421d7a8e12ff923b
MD5 abacd21ce78aa877598834e97e356bce
BLAKE2b-256 71029dd35c77e1ded44a29f68d9a8037e396b688c1e85b836cd11476610c131e

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: edsnlp-0.21.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for edsnlp-0.21.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cfaaf9f9710002c75e8b4458dd3d159459334fc200a2fd8872faeea93e415191
MD5 98dae43aaa513fa0ce817174e2267341
BLAKE2b-256 b81b402418eb4dd616665dbfc7cb7b2d08f1b9bd7c25db5cb2cea5a3e5410ee0

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5299b21c208f82bfd8d779d319176d08922832fab1b1aaa314d55c0a13c7247d
MD5 c16d48c40930f58206c017f2a2338ef3
BLAKE2b-256 7710c0c935233116d551e9bce77ccab984a7e839ec2c5b78b3e935536d6448db

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 16452e44aaee8da5d450573d47233995b088f00733a252583969d3bab854c04d
MD5 c50fc39c6c801ee05ec9e5e98c990189
BLAKE2b-256 c45b2ddaaec29e3d3e97ccf5f621258cdf523935fb7133d48d7f55be8acb3a1b

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 61def730aab1bc7996797391c1c4041e5b231571a5eee9431a4a2cf151df0034
MD5 9972918fc6ea80fed605837e1d0e7914
BLAKE2b-256 dcc734ab126d09c5dec77db470dc642af37ff993530da8160ffeb89594b2f1a0

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: edsnlp-0.21.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for edsnlp-0.21.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 fbbd3fe40c23c524baaa46ad0b3a29eb270ed1136ae876247bfce1d4d3fd2fdc
MD5 089e6537d344a49bff49f35851aba3f4
BLAKE2b-256 b67cd67f8d64f8f62c2f04afde0c8e8e916e0639aaf21f19574475c43536ca63

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b9317219bbc700f1f37e43fa6618968af163260a7aa2aee939d48dbb5da67918
MD5 e86ce02852cfea0bd193935c36a9d507
BLAKE2b-256 1f155ecab99a1204318195d7a354e06f08e66a30d2f5ef6a014b04ce1f15d911

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4649b23d7636895de19ddd64cfb4fe0c03eab7a0f4976bf7c0d4f1967f8941ff
MD5 cff60017ea98593570f4c00943117b93
BLAKE2b-256 f9896b33cc211ab06e2ae5a1e6cb1b749f19e08855dc1096b4351ec49e950cfd

See more details on using hashes here.

File details

Details for the file edsnlp-0.21.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for edsnlp-0.21.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 9cc6e0a4c3c462094fe6026ba4a1b6161e4a9504aa2052ee19a38ed12bc8c35f
MD5 4a3bdbbd80233e9775abfd815b1c30a6
BLAKE2b-256 09cb8c7c87428c80b27188417b4de25e7aabbcc588b35a67e892c8a92799790d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page