src/transformers/models/ernie_m/tokenization_ernie_m.py/ErnieMTokenizer/is_punct
class ErnieMTokenizer:    def is_punct(self, char):
        """
        is_punct
        """
        if char in ",;:.?!~，；：。？！《》【】":
            return True
        return False