Genome06
Implement backend and frontend for Tech-Support AI, including intent classification and response generation
826af0d
Raw
History Blame Contribute Delete
223 Bytes
import re
import string
def preprocess_text(text):
# Example of a preprocessing function that used in Week 1 & 2
text = text.lower()
text = re.sub(f"[{re.escape(string.punctuation)}]", "", text)
return text