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

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

pip install "edsnlp[ml]==0.22.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.22.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.22.0-cp314-cp314-win_amd64.whl (2.0 MB view details)

Uploaded CPython 3.14Windows x86-64

edsnlp-0.22.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.22.0-cp314-cp314-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

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

Uploaded CPython 3.14macOS 10.15+ x86-64

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

Uploaded CPython 3.13Windows x86-64

edsnlp-0.22.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.22.0-cp313-cp313-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

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

Uploaded CPython 3.13macOS 10.13+ x86-64

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

Uploaded CPython 3.12Windows x86-64

edsnlp-0.22.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.22.0-cp312-cp312-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.12macOS 10.13+ x86-64

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

Uploaded CPython 3.11Windows x86-64

edsnlp-0.22.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.22.0-cp311-cp311-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.11macOS 10.9+ x86-64

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

Uploaded CPython 3.10Windows x86-64

edsnlp-0.22.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.22.0-cp310-cp310-macosx_11_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

edsnlp-0.22.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.22.0.tar.gz.

File metadata

  • Download URL: edsnlp-0.22.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.22.0.tar.gz
Algorithm Hash digest
SHA256 fa5a81ad490567705a279cb4c7570406eabcd643e2c3dddcb670fb5510b18a34
MD5 9a6c204414cd78786424116d694cd648
BLAKE2b-256 ca07bab41005f3caea616f5cdbb2c147b49f344782c7e1c4b86add793792b092

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edsnlp-0.22.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.22.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 94303b4dac78eaa301133cad89a07050045347a748a06d268ba68ef9eaa8fcd0
MD5 6c7573b952a4492eefd2ed9d9098d115
BLAKE2b-256 5011552a4feca1c6b7e7d52a57aa5fa3b3baebd8dd3172b4f29675523ea93287

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp314-cp314-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 cf9d849db658e80b074a68b43db7d5d47b50a8cb2df3395773390490592498f2
MD5 d7b096cd27255db9ec6326ef4ecd7a1e
BLAKE2b-256 640571183c56f26889ebb46f2f37910de065e211b0761fb684b9d2f19e3f3e26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 64d604c4d3898e84d664c110fbdbbadf7a1b861076cd71901958ee2530926ac5
MD5 9b77a6af024b1c08894d4d860f9e0b7e
BLAKE2b-256 5878b66d58ef50a407632097684f3d253a6f83b8ac9cfee9ecc8990d5fc5fc34

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp314-cp314-macosx_10_15_x86_64.whl
Algorithm Hash digest
SHA256 bb058381537b7db23d8d5660b0cb2737159bd0c53acfdd2ff1b0f3ee1e73fe12
MD5 daad9390efa2f11ef11c075880189e7b
BLAKE2b-256 1739395f64ede46d23520ccafcbb1c3e7b2976dffb33ca0d95d3c5200631942e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edsnlp-0.22.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.22.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 51d3d43f443a1d65f860c0712e7a977ff09441c6d5f1d83e2029bc070f60afba
MD5 e234aa79801c1e5dd206ce5dbc4fc855
BLAKE2b-256 7deafed2b048382d2f2a5534a196b1759de26fac3918d122500fac7e161abd7e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b7d80a3921ed6bed982fbfac89dfc627c6687b14142fcb5530699824b4d91753
MD5 767422060c58e5c06f3e70c525f25351
BLAKE2b-256 bd80858a4f476bec8a6bf63f65b5aca655ac10d295003854f690d53d6f684a0a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e11127e4905d0d26c219dd29323624a0427b50157598bc5854ecfb890da545a9
MD5 73edd7a49d8ce6d6d4d02315e4d2f213
BLAKE2b-256 f0fa8cc8f3e0d542634f3d0a30bbe9e94613c6da768c1abe65b255b970d88c19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp313-cp313-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 f26addceb443e2a6d295ea78c117a9f64a365339d34dbb61b6c56dafc0410201
MD5 a82b33a25599b6817c9404f564877541
BLAKE2b-256 1df9f9525251d404dbe1bc588b6d9dfac497a109e0b7da3139ff0e8f22b434b7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edsnlp-0.22.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.22.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 5c5bc00aeed29d7125af709e26a5aad4659f8cfebf823f54724b9d01e0c22e9f
MD5 400498f235cdc8062b07ffa0d0919d12
BLAKE2b-256 59e9bbc9e9b6a9ec48a9be9ddf6490a37e14eff65304fdd7d7a23090880fb09d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 11ba0ae026e8b0b63bacfb26ea90f5a4f848ad1fdd534b7317b232c1ab72a11a
MD5 33517229a0e26c66025ba3278dcaaed0
BLAKE2b-256 ff7f389cebe40c4b78cff8f0e971fef580e0459840750a6e10333b5e14b3373f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 de029bb8aee2d08c877125217532f24e7454c78d2d2593cc1462b1938fcee044
MD5 9c7d6fa3f55581e0b159560f76c4e872
BLAKE2b-256 217b7df9d9225d24b715be84acf2b551fc6918df47c78d4ba94d068b913a265b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 e57c7a397d8f949dbb3d8f869e26449b230e601e0a93a7c1a6778daa8fc51642
MD5 1a0287728f1b44e8718862dd715a7761
BLAKE2b-256 20276b419c1e785d610557eb476574f326e79f234dc3e43888cfd145c0350505

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edsnlp-0.22.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.22.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b33e35b4613b1dfdbb7f337ad40f359869c476fd4effa251720e47c0aa32fd4c
MD5 0b7a13c6141729d8b2bc4fc2e41f024b
BLAKE2b-256 e8e4465f8f0f3f64b841d12efff1cc4923c3ace770391d38629f41b0c879bc92

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5fadb82b79a7a765e34ff45568255848830dd0af6593adcc7ad6a24c70c5d9ea
MD5 2e1cbcd690d87bd650a2334703e4c731
BLAKE2b-256 db739db25a4a4b3a23e64c38ada53b3b56def7f32faa4beb41f2954dfd53ad9c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ae00e7bb0db57d85c902ad4a8fdb61db543d789a0bc6fd00704d2e16562318b6
MD5 676f8c8c9cc9e9839f50baa9e9c36c1e
BLAKE2b-256 cc286f08c66a129b397c69b59d911002eb8c910bfa5b4c00b5819105de31b459

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 5f75d4ed52ac2cfa72a81b759e8035169de2881419e0fdce36c1fff29d99ca79
MD5 87c2dddd2eebf8a2ebddd48fd125e56d
BLAKE2b-256 5b0da93b85aa575191fa58f9925b6f9f97c641d5d07f46c3e41806050e303870

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edsnlp-0.22.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.22.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8042731c1f4de5d9edf633a4c297d053693f53600430fc099babcbcb4d5cfe90
MD5 dcd32cfbc219d16938820179bab0bce0
BLAKE2b-256 1426987d1b61e3dcf029fa70bb2fc5be7e170e254814a1f15e9708a041b077b7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7e0a7dc4230068ef0b4cbbb09bbd65cff85247f9cefd7e5fe6f0bc17498196dc
MD5 d5886e4afb6d5cfb186e6de0b77e2b2e
BLAKE2b-256 a8c2785ec2f83e272363c1b397c50c2b1de7d36d09185faa5119e1d82a8ff353

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0da52068eb54d9c7b64ef8e6e3125666767c4d876e68cd9f2126439220e79a90
MD5 7b26cc2513d20d2d1e0a8f57c028dc6e
BLAKE2b-256 5f80ee99c258c54eaf09cef3139eebcf10fe74eb13cfc07a6007837827799387

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for edsnlp-0.22.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 039c25fb03d6d2d836598817e3caf6b17e83d31cfcfebd1c7cd6394471bb485c
MD5 b39710e8e6879c577dace292bd21c93c
BLAKE2b-256 cbd426c37dd6f967945affa64a2de070cc5016648b9ace174438aeee129360ce

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