def remove_punctuation(cls, sent: str):
        """Remove punctuation based on Unicode category."""
        return cls.SPACE.join(
            t
            for t in sent.split(cls.SPACE)
            if not all(unicodedata.category(c)[0] == "P" for c in t)
        )
Remove punctuation based on Unicode category.
structured_prompting/fairseq-version/fairseq/fairseq/scoring/tokenizer.py