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 # The use of this module turns out to be important, to avoid pathological
# back-tracking. See Issue #957 # back-tracking. See Issue #957
import regex import regex as re
from ..symbols import ORTH, POS, LEMMA, SPACE, PUNCT from ..symbols import ORTH, POS, LEMMA, SPACE, PUNCT
@ -53,7 +53,7 @@ URL_PATTERN = (
r"$" r"$"
).strip() ).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 from __future__ import unicode_literals
import unicodedata import unicodedata
import re import regex as re
# Binary string features # Binary string features