Skip to content

Commit 9d7630e

Browse files
authored
Fix invalid escape sequence warnings in iwslt22_ta (#1540)
1 parent aed1263 commit 9d7630e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lhotse/recipes/iwslt22_ta.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,8 +320,8 @@ def remove_punctuations(text):
320320

321321

322322
def remove_extra_space(text):
323-
text = re.sub("\s+", " ", text)
324-
text = re.sub("\s+\.\s+", ".", text)
323+
text = re.sub(r"\s+", " ", text)
324+
text = re.sub(r"\s+\.\s+", ".", text)
325325
return text
326326

327327

0 commit comments

Comments
 (0)