Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
stevez
/
b_demo_hf
like
1
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
7a375af
b_demo_hf
/
str_util.py
Beracles
normalize nlp_command
3818a89
over 1 year ago
raw
Copy download link
history
blame
Safe
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)