pgai / utils.py
Beracles's picture
call pgai and logger
b4cd98c
raw
history blame contribute delete
160 Bytes
def normalize_text(text: str) -> str:
text = text.lower()
tmp = text.split(" ")
tmp = [word for word in tmp if word != ""]
return " ".join(tmp)