edsnlp.pipelines.misc.dates.patterns.atomic.delimiters
raw_delimiters = ['\\/', '\\-']
module-attribute
delimiters = raw_delimiters + ['\\.', '[^\\S]+']
module-attribute
raw_delimiter_pattern = make_pattern(raw_delimiters)
module-attribute
raw_delimiter_with_spaces_pattern = make_pattern(raw_delimiters + ['[^\\S]+'])
module-attribute
delimiter_pattern = make_pattern(delimiters)
module-attribute
ante_num_pattern = '(?<!.(?:{raw_delimiter_pattern})|[0-9][.,])'
module-attribute
post_num_pattern = '(?!{raw_delimiter_pattern})'
module-attribute
Back to top