Skip to content

edsnlp.pipelines.misc.dates.patterns.absolute

absolute_pattern = [] module-attribute

absolute_pattern_with_time = [] module-attribute

no_year_pattern = [day + raw_delimiter_with_spaces_pattern + month + time_pattern if time else '' + post_num_pattern for day in [ante_num_pattern + numeric_day_pattern, letter_day_pattern] for month in [letter_month_pattern]] module-attribute

no_day_pattern = [letter_month_pattern + raw_delimiter_with_spaces_pattern + year_pattern + post_num_with_letter_pattern, ante_num_pattern + lz_numeric_month_pattern + '/' + year_pattern + post_num_with_letter_pattern] module-attribute

no_day_no_year_pattern = [letter_month_pattern] module-attribute

full_year_pattern = ante_num_pattern + fy_pattern + post_num_pattern module-attribute

pattern = ['(?<=' + mode_pattern + '.{,3})?' + p for p in pattern] module-attribute