Semantic-search-cache / src /preprocess.py
YENUGU SUJITH REDDY
Initial commit with Git LFS models
45fe8b6
raw
history blame contribute delete
161 Bytes
import re
def clean_text(text):
text = text.lower()
text = re.sub(r"\n+", " ", text)
text = re.sub(r"\s+", " ", text)
return text.strip()