Skip to content

edsnlp.pipelines.misc.dates.patterns.atomic.directions

preceding_directions = ['(?P<direction_PAST>depuis|depuis\\s+le|il\\s+y\\s+a)', '(?P<direction_FUTURE>dans)'] module-attribute

following_directions = ['(?P<direction_FUTURE>prochaine?s?|suivante?s?|plus\\s+tard)', '(?P<direction_PAST>derni[eè]re?s?|passée?s?|pr[ée]c[ée]dente?s?|plus\\s+t[ôo]t)'] module-attribute

preceding_direction_pattern = make_pattern(preceding_directions, with_breaks=True) module-attribute

following_direction_pattern = make_pattern(following_directions, with_breaks=True) module-attribute

Back to top