edsnlp.pipelines.ner.scores.elstonellis.patterns
regex = ['[Ee]lston (& |et |and )?[Ee]llis', '\\b[Ee]{2}\\b']
module-attribute
pattern1 = '[^\\d\\(\\)]*[0-3]'
module-attribute
pattern2 = '.{0,2}[\\+,]'
module-attribute
value_extract = '(?s).(\\({pattern1}{pattern2}{pattern1}{pattern2}{pattern1}\\))'
module-attribute
score_normalization_str = 'score_normalization.elstonellis'
module-attribute
score_normalization(extracted_score)
Elston and Ellis score normalization. If available, returns the integer value of the Elston and Ellis score.
Source code in edsnlp/pipelines/ner/scores/elstonellis/patterns.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
|