self.stemmer = PorterStemmer()
def _normalize(self, text: str) -> str:
self.stemmer = PorterStemmer()
def _normalize(self, text: str) -> str:
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, "")
def obscure_bad_words(self, text: str) -> str:
"""Obscure bad words that are detected by inserting random punctuation
characters.
"""
def obscure_bad_words(self, text: str) -> str:
"""Obscure bad words that are detected by inserting random punctuation
characters.
"""