mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +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
|
# 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user