mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 20:28:20 +03:00
54 lines
605 B
Python
54 lines
605 B
Python
from ...symbols import ORTH
|
|
|
|
|
|
_exc = {}
|
|
|
|
|
|
for orth in [
|
|
"Adm.",
|
|
"Art.",
|
|
"art.",
|
|
"Av.",
|
|
"av.",
|
|
"Cia.",
|
|
"dom.",
|
|
"Dr.",
|
|
"dr.",
|
|
"e.g.",
|
|
"E.g.",
|
|
"E.G.",
|
|
"e/ou",
|
|
"ed.",
|
|
"eng.",
|
|
"etc.",
|
|
"Fund.",
|
|
"Gen.",
|
|
"Gov.",
|
|
"i.e.",
|
|
"I.e.",
|
|
"I.E.",
|
|
"Inc.",
|
|
"Jr.",
|
|
"km/h",
|
|
"Ltd.",
|
|
"Mr.",
|
|
"p.m.",
|
|
"Ph.D.",
|
|
"Rep.",
|
|
"Rev.",
|
|
"S/A",
|
|
"Sen.",
|
|
"Sr.",
|
|
"sr.",
|
|
"Sra.",
|
|
"sra.",
|
|
"vs.",
|
|
"tel.",
|
|
"pág.",
|
|
"pag.",
|
|
]:
|
|
_exc[orth] = [{ORTH: orth}]
|
|
|
|
|
|
TOKENIZER_EXCEPTIONS = _exc
|