Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
tnp554
/
SQuAD
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
SQuAD
/
utils
/
preprocess.py
tnp554
feat: deploy SQuAD backend with all AI models
09daf0b
17 days ago
raw
Copy download link
history
blame
contribute
delete
Safe
119 Bytes
import
re
def
tokenize
(
text
):
text = text.lower()
text = re.sub(
r"[^\w\s]"
,
""
, text)
return
text.split()