diff options
| author | Scott <[email protected]> | 2022-01-26 21:35:20 -0800 |
|---|---|---|
| committer | Scott <[email protected]> | 2022-01-26 21:35:20 -0800 |
| commit | e6f32fdd9b373dfcd100c7accb41f57d83c2f0a1 (patch) | |
| tree | eea4985bc43238fbd070c783441f08988f581973 /profanity_filter.py | |
| parent | 36fea7f15ed17150691b5b3ead75450e575229ef (diff) | |
Ahem. Still running black?
Diffstat (limited to 'profanity_filter.py')
| -rwxr-xr-x | profanity_filter.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/profanity_filter.py b/profanity_filter.py index 95540fa..4723a2d 100755 --- a/profanity_filter.py +++ b/profanity_filter.py @@ -494,9 +494,7 @@ class ProfanityFilter(object): result = result.replace('3', 'e') for x in string.punctuation: result = result.replace(x, "") - chunks = [ - self.stemmer.stem(word) for word in nltk.word_tokenize(result) - ] + chunks = [self.stemmer.stem(word) for word in nltk.word_tokenize(result)] return ' '.join(chunks) def tokenize(self, text: str): |
