b_demo_hf / str_util.py
Beracles
normalize nlp_command
3818a89
raw
history blame
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)