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)