mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
fix a deprecation warning by using raw strings
This commit is contained in:
parent
3d02a88b14
commit
7690bd5b49
@ -6,8 +6,8 @@ from .transliterate import transliterate
|
||||
|
||||
MARK_RE = regex.compile(r'[\p{Mn}\N{ARABIC TATWEEL}]', regex.V1)
|
||||
|
||||
DIGIT_RE = regex.compile('\d')
|
||||
MULTI_DIGIT_RE = regex.compile('\d[\d.,]+')
|
||||
DIGIT_RE = regex.compile(r'\d')
|
||||
MULTI_DIGIT_RE = regex.compile(r'\d[\d.,]+')
|
||||
|
||||
|
||||
def preprocess_text(text, language):
|
||||
|
Loading…
Reference in New Issue
Block a user