Emergency Priority[source]
Matcher for explicit mentions of the French priority emergency score.
Examples
import edsnlp, edsnlp.pipes as eds
nlp = edsnlp.blank("eds")
nlp.add_pipe(eds.emergency_priority())
Parameters
PARAMETER | DESCRIPTION |
---|---|
nlp | The pipeline object TYPE: |
name | The name of the component TYPE: |
regex | A list of regexes to identify the score TYPE: |
attr | Whether to match on the text ('TEXT') or on the normalized text ('NORM') TYPE: |
value_extract | Regex with capturing group to get the score value TYPE: |
score_normalization | Function that takes the "raw" value extracted from the
TYPE: |
window | Number of token to include after the score's mention to find the score's value TYPE: |
ignore_excluded | Whether to ignore excluded spans when matching TYPE: |
ignore_space_tokens | Whether to ignore space tokens when matching TYPE: |
flags | Regex flags to use when matching TYPE: |
label | Label name to use for the TYPE: |
span_setter | How to set matches on the doc TYPE: |
RETURNS | DESCRIPTION |
---|---|
SimpleScoreMatcher | |