From e6f32fdd9b373dfcd100c7accb41f57d83c2f0a1 Mon Sep 17 00:00:00 2001 From: Scott Date: Wed, 26 Jan 2022 21:35:20 -0800 Subject: Ahem. Still running black? --- profanity_filter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'profanity_filter.py') 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): -- cgit v1.3