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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: edsnlp-0.4.3.tar.gz
  • Upload date:
  • Size: 270.4 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.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for edsnlp-0.4.3.tar.gz
Algorithm Hash digest
SHA256 262f37cb0e978f912a07f6624bc19ddce80eaa2529cfa18e2b2bc2a70c0cf992
MD5 d779a02ca37257092248507b32240ae7
BLAKE2b-256 9e578c1fed0de9e6fdd6106fadaf34d6f57f4dc650f68372808c8565966805e4

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: edsnlp-0.4.3-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.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.11

File hashes

Hashes for edsnlp-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a7d1406cb281f87538f1ca7d4c9bcd3a4fcde49b8c0fc8cac6e8948c26bd3716
MD5 753b951ab1917d31eda4831d8e68dfb3
BLAKE2b-256 0db2e96721eefb75efe0f2d858ca0b4becbb48956404e32cca003fadda08fbb8

See more details on using hashes here.

Provenance

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