ADL Score[source]
The eds.adl_score component extracts the adl score (Activities of Daily Life) score.
Examples
import edsnlp, edsnlp.pipes as eds
nlp = edsnlp.blank("eds")
nlp.add_pipe(eds.sentences())
nlp.add_pipe(eds.normalizer())
nlp.add_pipe(eds.adl_score())
text = """
ADL 6/6.
"""
doc = nlp(text)
doc.ents
# Out: (ADL 6/6,)
Extensions
Each extraction exposes 2 extensions:
ent = doc.ents[0]
ent._.adl_score
# Out: 6.0
ent._.functional_status
# Out: 'healthy'
Parameters
| PARAMETER | DESCRIPTION |
|---|---|
nlp | The pipeline object TYPE: |
name | Name of the component TYPE: |
patterns | A list of regexes to identify the score TYPE: |
attr | Whether to match on the text ('TEXT') or on the normalized text ('NORM') TYPE: |
score_normalization | Function that takes the "raw" value extracted from the
TYPE: |
label | Label name to use for the TYPE: |
span_setter | How to set matches on the doc TYPE: |
domain | The frailty domain the score is related to TYPE: |
severity_assigner | Function that takes the score value and assigns the corresponding severity for the domain. TYPE: |
| RETURNS | DESCRIPTION |
|---|---|
SimpleScoreMatcher | |