Skip to main content

NLP tools for human consumption at AP-HP

Project description

EDS-NLP

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

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.

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

Uploaded Source

Built Distribution

edsnlp-0.4.0-py3-none-any.whl (313.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for edsnlp-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3ae4af4e964010063401af108bdf74b96c9cea9c741725d3171e073d9a43c7c3
MD5 b29609d26246f54d28b1a341f9a4a1d3
BLAKE2b-256 49e0c040793cacfe49de0a1d54fadb62bee2a44df8572dbcb45810810f546216

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for edsnlp-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 024751b642b2c3aa6aaddd5416d8f8ed4ef07e73b11ae888e4d8f57f7c8957a1
MD5 242e4762ba9a7d845fdcd06c5ad63111
BLAKE2b-256 42b775ba58438959c29eede9a0899c35e4e175d91d225b8b6a2ea55515e555b4

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