From aee667a78164f4c064a397e69f9a4fe609b13004 Mon Sep 17 00:00:00 2001 From: thjbbvlt Date: Thu, 28 Mar 2024 16:57:25 +0100 Subject: [PATCH] add elleux --- spacy/lang/fr/punctuation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spacy/lang/fr/punctuation.py b/spacy/lang/fr/punctuation.py index 40f363f93..ac8930b22 100644 --- a/spacy/lang/fr/punctuation.py +++ b/spacy/lang/fr/punctuation.py @@ -18,17 +18,16 @@ HYPHENS = r"- – — ‐ ‑".replace(" ", "") _suffix_inversion = [ "je", "tu", "on", "il", "elle", "iel", "nous", "vous", "elles", "ils", "iels", - "moi", "toi", "lui", "leur", "eux", + "moi", "toi", "lui", "leur", "eux", "elleux", + "ce", "ici", "là", # to avoid matching: Villar-le-bois fr"la(?![{HYPHENS}])", fr"le(?![{HYPHENS}])", fr"les(?![{HYPHENS}])", fr"en(?![{HYPHENS}])", "y", - "ce", # a-t-on, a-t'on fr"t[{HYPHENS}]??[{ELISION}]?", fr"m[{ELISION}]?", - "là", "ici", ] _prefix_elision = [ "n", "s", "c", "d", "j", "m", "t", "l", "qu",