From 683abc582ac777003e97879fd04cf2c7211d11aa Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 5 Oct 2020 06:45:45 +0000 Subject: [PATCH] Format code with black This commit fixes the style issues introduced in 89f1cb6 according to the output from black. Details: https://deepsource.io/gh/deterministic-algorithms-lab/Std-Indic-NLP/transform/c7bf30b0-bb76-46b5-94b9-916dc37c00e2/ --- std_indic/cleaners.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/std_indic/cleaners.py b/std_indic/cleaners.py index f052530..f419e70 100644 --- a/std_indic/cleaners.py +++ b/std_indic/cleaners.py @@ -1,10 +1,11 @@ import re + def clean_text(text): text = text.lower() - #foction de replacement - text = re.sub(r"i'm","i am",text) - text = re.sub(r"she's","she is",text) - text = re.sub(r"can't","can not",text) - text = re.sub(r"[-()\"#/@;:<>{}-=~|.?,]","",text) + # foction de replacement + text = re.sub(r"i'm", "i am", text) + text = re.sub(r"she's", "she is", text) + text = re.sub(r"can't", "can not", text) + text = re.sub(r"[-()\"#/@;:<>{}-=~|.?,]", "", text) return text