mirror of https://github.com/explosion/spaCy.git
formatted with black
This commit is contained in:
parent
73b68c4c78
commit
396266904e
|
@ -5,7 +5,6 @@ Example sentences to test spaCy and its language models.
|
||||||
>>> docs = nlp.pipe(sentences)
|
>>> docs = nlp.pipe(sentences)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
sentences = [
|
sentences = [
|
||||||
"Apple cherche à acheter une start-up anglaise pour 1 milliard de dollars",
|
"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",
|
"Les voitures autonomes déplacent la responsabilité de l'assurance vers les constructeurs",
|
||||||
|
|
|
@ -53,9 +53,7 @@ _suffix_inversion = r"|".join(upperandtitle(_suffix_inversion))
|
||||||
_prefix_elision = r"|".join(upperandtitle(_prefix_elision))
|
_prefix_elision = r"|".join(upperandtitle(_prefix_elision))
|
||||||
|
|
||||||
_elision = rf"(?:\b(?:{_prefix_elision})[{ELISION}])"
|
_elision = rf"(?:\b(?:{_prefix_elision})[{ELISION}])"
|
||||||
_inversion = (
|
_inversion = rf"(?:(?<=[^\W\d])[{HYPHENS}]\b(?:{_suffix_inversion})\b)"
|
||||||
rf"(?:(?<=[^\W\d])[{HYPHENS}]\b(?:{_suffix_inversion})\b)"
|
|
||||||
)
|
|
||||||
|
|
||||||
TOKENIZER_PREFIXES = [_elision]
|
TOKENIZER_PREFIXES = [_elision]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue