edsnlp.pipelines.ner.scores.emergency.ccmu
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 |
|
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 |
|