def _remove_punct(self, inStr):
        punc_cat = set(["Pc", "Pd", "Ps", "Pe", "Pi", "Pf", "Po"])
        return "".join(x for x in inStr if unicodedata.category(x) not in punc_cat)
Function to remove punctuation from Unicode string.
dataset/ETHPy150Open nltk/nltk/nltk/parse/evaluate.py/DependencyEvaluator._remove_punct