EDS-NLP provides a set of rule-based spaCy components to extract information for French clinical notes. It also features qualifier pipelines that detect negations, speculations and family context, among other modalities. Check out the demo!
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._.negation # Out: False
Found a mistake or something isn't working?
If you've come across a universe project that isn't working or is incompatible with the reported spaCy version, let us know by opening a discussion thread.
Submit your project
If you have a project that you want the spaCy community to make use of, you can suggest it by submitting a pull request to the spaCy website repository. The Universe database is open-source and collected in a simple JSON file. For more details on the formats and available fields, see the documentation. Looking for inspiration your own spaCy plugin or extension? Check out the
project idea label on the issue tracker.