Generation

generate functionSun, 23 Apr 2023

using nltk to remove punctuations

def msg_clean(text): text = text.lower() text = text.translate(str.maketrans('', '', string.punctuation)) return text

Want to kickstart your project?Use the new AI Studio to create your code