Skip to main content

A set of spaCy components to extract information from clinical notes written in French.

Project description

Tests Documentation PyPI Demo Codecov

EDS-NLP

EDS-NLP provides a set of spaCy components that are used to extract information from clinical notes written in French.

Check out the interactive demo!

If it's your first time with spaCy, we recommend you familiarise yourself with some of their key concepts by looking at the "spaCy 101" page in the documentation.

Quick start

Installation

You can install EDS-NLP via pip:

pip install edsnlp

We recommend pinning the library version in your projects, or use a strict package manager like Poetry.

pip install edsnlp==0.4.1

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 spacy

nlp = spacy.blank("fr")

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

# Sentencizer component, needed for negation detection
nlp.add_pipe("eds.sentences")
# Matcher component
nlp.add_pipe("eds.matcher", config=dict(terms=terms))
# Negation detection
nlp.add_pipe("eds.negation")

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

doc.ents
# Out: (covid,)

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

Documentation

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.

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.4.1.tar.gz (270.3 kB view details)

Uploaded Source

Built Distribution

edsnlp-0.4.1-py3-none-any.whl (314.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: edsnlp-0.4.1.tar.gz
  • Upload date:
  • Size: 270.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edsnlp-0.4.1.tar.gz
Algorithm Hash digest
SHA256 061832c16accd0b7d29a03893b804989ae83ad9c5b9bfba4fd8bcc9951d6b7d8
MD5 1f978721f3438066df0940e8c8b3b975
BLAKE2b-256 cab2273d8bed89a5444583eb555f077eff86d0c8e618d3082e258bd17f8d22d6

See more details on using hashes here.

File details

Details for the file edsnlp-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: edsnlp-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 314.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for edsnlp-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 aee5bbf67cd1d730f40779c7e8362bbceee25a81a17bf5e77880198b5a01f047
MD5 a274fc44ed6132d46f7d5b342be76d23
BLAKE2b-256 e5d524f268143f38010b7dd78ba364a0440704010e7c8ecb414b594efa192f4f

See more details on using hashes here.

Supported by

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