edsnlp.pipelines.ner.scores.tnm.patterns
modifier_pattern = '(?P<modifier>[cpPyraum]p?)'
module-attribute
tumour_pattern = 'T\\s?(?P<tumour>([0-4o]|is))?(?P<tumour_specification>[abcdx])?'
module-attribute
node_pattern = 'N\\s?(?P<node>[0-3o]|x)(?P<node_specification>[abcdx])?'
module-attribute
regional_nodes_pattern = 'R\\s?(?P<regional_nodes>[012])'
module-attribute
version_pattern = '\\(?(?P<version>uicc|accj|tnm|UICC|ACCJ|TNM)\\s+([éeE]ditions|[éeE]d\\.?)?\\s*(?P<version_year>\\d{4}|\\d{2})\\)?'
module-attribute
spacer = '(.|\\n){1,5}'
module-attribute
tnm_pattern = '(?<={version_pattern}{spacer})?'
module-attribute
Back to top