mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Use consistent regex imports
This commit is contained in:
parent
7b83977020
commit
41972c43fe
|
@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
|||
|
||||
# The use of this module turns out to be important, to avoid pathological
|
||||
# back-tracking. See Issue #957
|
||||
import regex
|
||||
import regex as re
|
||||
|
||||
from ..symbols import ORTH, POS, LEMMA, SPACE, PUNCT
|
||||
|
||||
|
@ -53,7 +53,7 @@ URL_PATTERN = (
|
|||
r"$"
|
||||
).strip()
|
||||
|
||||
TOKEN_MATCH = regex.compile(URL_PATTERN, regex.UNICODE).match
|
||||
TOKEN_MATCH = re.compile(URL_PATTERN, re.UNICODE).match
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import unicodedata
|
||||
import re
|
||||
import regex as re
|
||||
|
||||
|
||||
# Binary string features
|
||||
|
|
Loading…
Reference in New Issue
Block a user