edsnlp.pipelines.ner.covid
patterns
covid = ['covid([-\\s]?19)?', 'sars[-\\s]?cov[-\\s]?2', 'corona[-\\s]?virus']
module-attribute
diseases = ['pneumopathies?', 'infections?']
module-attribute
pattern = '(' + make_pattern(diseases) + '\\s[àa]u?\\s)?' + make_pattern(covid)
module-attribute
factory
DEFAULT_CONFIG = dict(attr='LOWER', ignore_excluded=False)
module-attribute
create_component(nlp, name, attr, ignore_excluded)
Source code in edsnlp/pipelines/ner/covid/factory.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|