Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
stevez/b_demo_hf
pgsoft
/
pgdemo2
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
pgdemo2
/
str_util.py
Beracles
normalize nlp_command
3818a89
about 2 years ago
raw
Copy download link
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)