projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another formatter test, whee...
[python_utils.git]
/
profanity_filter.py
diff --git
a/profanity_filter.py
b/profanity_filter.py
index 95540fa7b36f0bd8fcf813196e2f9f2390569fce..4723a2db0679e5f866f14bbb723c66391fa06ae6 100755
(executable)
--- 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, "")
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):
return ' '.join(chunks)
def tokenize(self, text: str):