Files
EvoSynth/jailbreak_toolbox/utils/text_processing.py
dongdongunique f3af94df0b first commit
2025-12-10 00:54:02 +08:00

9 lines
215 B
Python

def tokenize(text):
return text.split()
def normalize(text):
return text.lower().strip()
def remove_punctuation(text):
import string
return text.translate(str.maketrans('', '', string.punctuation))