Skip to content

edsnlp.pipelines.misc.dates.patterns.atomic.months

letter_months_dict: Dict[str, int] = {'(janvier|janv\\.?)': 1, '(f[ée]vrier|f[ée]v\\.?)': 2, '(mars|mar\\.?)': 3, '(avril|avr\\.?)': 4, 'mai': 5, 'juin': 6, '(juillet|juill?\\.?)': 7, 'ao[uû]t': 8, '(septembre|sept?\\.?)': 9, '(octobre|oct\\.?)': 10, '(novembre|nov\\.)': 11, '(d[ée]cembre|d[ée]c\\.?)': 12} module-attribute

letter_months: List[str] = list(letter_months_dict.keys()) module-attribute

month_pattern = '(?P<month>{letter_month_pattern}|{numeric_month_pattern})' module-attribute

letter_month_pattern = '(?P<month>{letter_month_pattern})' module-attribute

numeric_month_pattern = '(?P<month>{numeric_month_pattern})' module-attribute

lz_numeric_month_pattern = '(?P<month>{lz_numeric_month_pattern})' module-attribute

Back to top