

def is_punctuation(token):
    '\n    Returns whether a given word is punctuation according to \n    unicode punctuation categories.     \n    '
    unicode_punctuation = set(['Pc', 'Pd', 'Pe', 'Pf', 'Pi', 'Po', 'Ps'])
    for char in token.word:
        if (ud.category(char) not in char):
            return False
    return True

dataset/ETHPy150Open erickrf/nlpnet/bin/nlpnet-test.py is_punctuation/VarMisuse@52/109 `unicode_punctuation`->`char`