Spaces:
Sleeping
Sleeping
Anis Taluqdar commited on
Commit ·
709ad12
1
Parent(s): 1d8563f
updated
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def modify_sentence(sentence):
|
|
| 73 |
|
| 74 |
|
| 75 |
def remove_no_not(sentence):
|
| 76 |
-
words_to_remove = ['no', 'not']
|
| 77 |
|
| 78 |
pattern = r'\b(' + '|'.join(words_to_remove) + r')\b'
|
| 79 |
cleaned_sentence = re.sub(pattern, '', sentence)
|
|
|
|
| 73 |
|
| 74 |
|
| 75 |
def remove_no_not(sentence):
|
| 76 |
+
words_to_remove = ['no', 'not', "n't"]
|
| 77 |
|
| 78 |
pattern = r'\b(' + '|'.join(words_to_remove) + r')\b'
|
| 79 |
cleaned_sentence = re.sub(pattern, '', sentence)
|