

def _remove_punct(self, inStr):
    '\n        Function to remove punctuation from Unicode string.\n        :param input: the input string\n        :return: Unicode string after remove all punctuation\n        '
    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)))

dataset/ETHPy150Open nltk/nltk/nltk/parse/evaluate.py DependencyEvaluator._remove_punct/original