def transform(self, results: dict) -> dict:
        """Method to clean the input text data."""
        for key in self.keys:
            results[key] = self.clean(results[key])
        return results
Method to clean the input text data.
mmpretrain/datasets/transforms/processing.py