formatted with black

This commit is contained in:
thjbbvlt 2024-03-25 14:34:58 +01:00
parent 73b68c4c78
commit 396266904e
2 changed files with 1 additions and 4 deletions

View File

@ -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",

View File

@ -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]