We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d80c3c4 + 01d922c commit d405944Copy full SHA for d405944
normalizer/normalize.py
@@ -29,14 +29,14 @@ def normalize(
29
# normalize variations of quotes
30
text = fix_quotes(text)
31
32
- # replace punctuations with specified replacement (if any)
33
- if punct_replacement is not None:
34
- text = const.PUNCT_HANDLER_REGEX.sub(punct_replacement, text)
35
-
36
# replace URLS in text with specified replacement (if any)
37
if url_replacement is not None:
38
text = const.URL_HANDLER_REGEX.sub(url_replacement, text)
39
+ # replace punctuations with specified replacement (if any)
+ if punct_replacement is not None:
+ text = const.PUNCT_HANDLER_REGEX.sub(punct_replacement, text)
+
40
# replace emojis in text with specified replacement (if any)
41
if emoji_replacement is not None:
42
text = const.EMOJI_HANDLER_REGEX.sub(emoji_replacement, text)
0 commit comments