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

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

Uploaded Source

Built Distribution

edsnlp-0.4.4-py3-none-any.whl (322.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: edsnlp-0.4.4.tar.gz
  • Upload date:
  • Size: 274.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for edsnlp-0.4.4.tar.gz
Algorithm Hash digest
SHA256 9858c39cd21370c57014d89eeceac552b6cf7cbe5eee4e7e045c02294ddb8e05
MD5 ce96fef5d8dc83adbbb1fcf09be9ee2c
BLAKE2b-256 087382be82d0c429277696ebb8714bcc8973768ccf06f7bfa6882c689273c876

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edsnlp-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 322.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for edsnlp-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d4cc626f79c13c22c761907f31a3d736d1821b267fa716ad4632126d6eda57
MD5 95a1c0d155c586ae65edf18e1505e936
BLAKE2b-256 5cf8eb9f0bac9d0516c2c33e707d7a6df84b8018e00692590003e2f2352ede7b

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