COVID
The eds.covid
pipeline component detects mentions of COVID19.
Examples
import edsnlp, edsnlp.pipes as eds
nlp = edsnlp.blank("eds")
nlp.add_pipe(eds.covid())
text = "Le patient est admis pour une infection au coronavirus."
doc = nlp(text)
doc.ents
# Out: (infection au coronavirus,)
Parameters
PARAMETER | DESCRIPTION |
---|---|
nlp | spaCy TYPE: |
name | The name of the pipe TYPE: |
attr | Attribute to match on, eg TYPE: |
ignore_excluded | Whether to skip excluded tokens during matching. TYPE: |
ignore_space_tokens | Whether to skip space tokens during matching. TYPE: |
patterns | The regex pattern to use TYPE: |
label | Label to use for matches TYPE: |
span_setter | How to set matches on the doc TYPE: |
RETURNS | DESCRIPTION |
---|---|
GenericMatcher | |
Authors and citation
The eds.covid
pipeline was developed by AP-HP's Data Science team.