From 396266904ecf9107e1c9cb1a18a5a750cf1e8e0c Mon Sep 17 00:00:00 2001 From: thjbbvlt Date: Mon, 25 Mar 2024 14:34:58 +0100 Subject: [PATCH] formatted with black --- spacy/lang/fr/examples.py | 1 - spacy/lang/fr/punctuation.py | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/spacy/lang/fr/examples.py b/spacy/lang/fr/examples.py index e38e01b54..cd4939bec 100644 --- a/spacy/lang/fr/examples.py +++ b/spacy/lang/fr/examples.py @@ -5,7 +5,6 @@ Example sentences to test spaCy and its language models. >>> docs = nlp.pipe(sentences) """ - sentences = [ "Apple cherche à acheter une start-up anglaise pour 1 milliard de dollars", "Les voitures autonomes déplacent la responsabilité de l'assurance vers les constructeurs", diff --git a/spacy/lang/fr/punctuation.py b/spacy/lang/fr/punctuation.py index 9ff8d87ca..46b67bf58 100644 --- a/spacy/lang/fr/punctuation.py +++ b/spacy/lang/fr/punctuation.py @@ -53,9 +53,7 @@ _suffix_inversion = r"|".join(upperandtitle(_suffix_inversion)) _prefix_elision = r"|".join(upperandtitle(_prefix_elision)) _elision = rf"(?:\b(?:{_prefix_elision})[{ELISION}])" -_inversion = ( - rf"(?:(?<=[^\W\d])[{HYPHENS}]\b(?:{_suffix_inversion})\b)" -) +_inversion = rf"(?:(?<=[^\W\d])[{HYPHENS}]\b(?:{_suffix_inversion})\b)" TOKENIZER_PREFIXES = [_elision]