edsnlp.pipelines.ner.scores.emergency
ccmu
factory
DEFAULT_CONFIG = dict(regex=patterns.regex, after_extract=patterns.after_extract, score_normalization=patterns.score_normalization_str, attr='NORM', window=20, verbose=0, ignore_excluded=False)
module-attribute
create_component(nlp, name, regex, after_extract, score_normalization, attr, window, verbose, ignore_excluded)
Source code in edsnlp/pipelines/ner/scores/emergency/ccmu/factory.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
patterns
regex = ['\\bccmu\\b']
module-attribute
after_extract = 'ccmu.*?[\\n\\W]*?(\\d+)'
module-attribute
score_normalization_str = 'score_normalization.ccmu'
module-attribute
score_normalization(extracted_score)
CCMU score normalization. If available, returns the integer value of the CCMU score.
Source code in edsnlp/pipelines/ner/scores/emergency/ccmu/patterns.py
12 13 14 15 16 17 18 19 20 |
|
gemsa
factory
DEFAULT_CONFIG = dict(regex=patterns.regex, after_extract=patterns.after_extract, score_normalization=patterns.score_normalization_str, attr='NORM', window=20, verbose=0, ignore_excluded=False)
module-attribute
create_component(nlp, name, regex, after_extract, score_normalization, attr, window, verbose, ignore_excluded)
Source code in edsnlp/pipelines/ner/scores/emergency/gemsa/factory.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
patterns
regex = ['\\bgemsa\\b']
module-attribute
after_extract = 'gemsa.*?[\\n\\W]*?(\\d+)'
module-attribute
score_normalization_str = 'score_normalization.gemsa'
module-attribute
score_normalization(extracted_score)
GEMSA score normalization. If available, returns the integer value of the GEMSA score.
Source code in edsnlp/pipelines/ner/scores/emergency/gemsa/patterns.py
12 13 14 15 16 17 18 19 20 |
|
priority
factory
DEFAULT_CONFIG = dict(regex=patterns.regex, after_extract=patterns.after_extract, score_normalization=patterns.score_normalization_str, attr='NORM', window=7, verbose=0, ignore_excluded=False)
module-attribute
create_component(nlp, name, regex, after_extract, score_normalization, attr, window, verbose, ignore_excluded)
Source code in edsnlp/pipelines/ner/scores/emergency/priority/factory.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
|
patterns
regex = ['\\bpriorite\\b']
module-attribute
after_extract = 'priorite.*?[\\n\\W]*?(\\d+)'
module-attribute
score_normalization_str = 'score_normalization.priority'
module-attribute
score_normalization(extracted_score)
Priority score normalization. If available, returns the integer value of the priority score.
Source code in edsnlp/pipelines/ner/scores/emergency/priority/patterns.py
12 13 14 15 16 17 18 19 20 |
|