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

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: edsnlp-0.4.2.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.2.tar.gz
Algorithm Hash digest
SHA256 5522ff7fd046ce880580f72a21c3b8a0ac4780ee56f7b2d6b3ac596188f5578f
MD5 3ac70852d56f021298000ca7cce5ea90
BLAKE2b-256 38847723f97199a7b3a439330c6cf60e29e2d08950e9c8fc67dd0437a579bc16

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: edsnlp-0.4.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 38e11393412953a37470c89e1c5b1ba8e60b2ef8ec78937dae9d20d9b60b39ae
MD5 dc9de1419f66f288c019c28ca98acfc9
BLAKE2b-256 fd3e2e1ec9d66afef39a293368290662733e6d423da39d159b1568da324b304f

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