def remove_punctuation(self, text):
        return re.sub(r"[^\P{P}\']+", "", text)
Get rid of punctuation except apostrophes
dataset/ETHPy150Open nltk/nltk/nltk/classify/textcat.py/TextCat.remove_punctuation