'Function to remove punctuation from Unicode string.
:param input: the input string
:return: Unicode string after remove all punctuation'

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)))
