Use consistent regex imports

This commit is contained in:
ines 2017-05-09 00:34:31 +02:00
parent 7b83977020
commit 41972c43fe
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -3,7 +3,7 @@
from __future__ import unicode_literals
import unicodedata
import re
import regex as re
# Binary string features