Spaces:
Sleeping
Sleeping
Genome06
Implement backend and frontend for Tech-Support AI, including intent classification and response generation
826af0d Download src/utils.py from genome06/automated-tech-support: direct link, hf CLI and curl.
- Browser
- Download file 223 Bytes
-
https://huggingface.co/spaces/genome06/automated-tech-support/resolve/main/src/utils.py
- Command line
-
hf download hf://spaces/genome06/automated-tech-support/src/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/genome06/automated-tech-support/resolve/main/src/utils.py
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 |