Merge pull request #71 from LuminosoInsight/pytest-fixes

Fix a deprecation warning by using raw strings
This commit is contained in:
Lance Nathan 2019-08-14 16:25:42 -04:00 committed by GitHub
commit cea8dcbea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,8 +6,8 @@ from .transliterate import transliterate
MARK_RE = regex.compile(r'[\p{Mn}\N{ARABIC TATWEEL}]', regex.V1) MARK_RE = regex.compile(r'[\p{Mn}\N{ARABIC TATWEEL}]', regex.V1)
DIGIT_RE = regex.compile('\d') DIGIT_RE = regex.compile(r'\d')
MULTI_DIGIT_RE = regex.compile('\d[\d.,]+') MULTI_DIGIT_RE = regex.compile(r'\d[\d.,]+')
def preprocess_text(text, language): def preprocess_text(text, language):