Spaces:
Runtime error
Runtime error
Update replace_explitives.py
Browse files- replace_explitives.py +1 -1
replace_explitives.py
CHANGED
@@ -7,7 +7,7 @@ nltk.download('punkt') # For tokenization
|
|
7 |
nltk.download('averaged_perceptron_tagger') # For POS tagging (optional)
|
8 |
|
9 |
|
10 |
-
def
|
11 |
|
12 |
replacetext = "person"
|
13 |
|
|
|
7 |
nltk.download('averaged_perceptron_tagger') # For POS tagging (optional)
|
8 |
|
9 |
|
10 |
+
def sub_explitives(textfile, selection):
|
11 |
|
12 |
replacetext = "person"
|
13 |
|