Skip to content

COVID

The eds.covid pipeline component detects mentions of COVID19.

Examples

import edsnlp

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 Language object.

TYPE: PipelineProtocol

name

The name of the pipe

TYPE: str DEFAULT: 'eds.covid'

attr

Attribute to match on, eg TEXT, NORM, etc.

TYPE: Union[str, Dict[str, str]] DEFAULT: 'LOWER'

ignore_excluded

Whether to skip excluded tokens during matching.

TYPE: bool DEFAULT: False

ignore_space_tokens

Whether to skip space tokens during matching.

TYPE: bool DEFAULT: False

patterns

The regex pattern to use

TYPE: List[str] DEFAULT: patterns

label

Label to use for matches

TYPE: str DEFAULT: 'covid'

span_setter

How to set matches on the doc

TYPE: SpanSetterArg DEFAULT: {'ents': True, 'covid': True}

RETURNS DESCRIPTION
GenericMatcher

Authors and citation

The eds.covid pipeline was developed by AP-HP's Data Science team.