mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 20:28:20 +03:00
f02a2f9322
This reverts commitb95afdf39c
, reversing changes made tob0ccf32378
.
17 lines
353 B
Python
17 lines
353 B
Python
# encoding: utf8
|
||
|
||
from __future__ import unicode_literals
|
||
|
||
from ..language_data.punctuation import ALPHA, TOKENIZER_INFIXES
|
||
|
||
|
||
_ELISION = " ' ’ "
|
||
ELISION = _ELISION.strip().replace(' ', '').replace('\n', '')
|
||
|
||
TOKENIZER_INFIXES += [
|
||
r'(?<=[{a}][{el}])(?=[{a}])'.format(a=ALPHA, el=ELISION),
|
||
]
|
||
|
||
|
||
__all__ = ["TOKENIZER_SUFFIXES", "TOKENIZER_INFIXES"]
|