Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
hetsheta
/
Quizify
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
Quizify
/
backend
/
utils
/
text_utils.py
hetsheta
Initial Commit
0481fba
4 months ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
177 Bytes
import
re
def
normalize_answer
(
text:
str
):
if
not
text:
return
""
text = text.lower()
text = re.sub(
r"[^\w\s]"
,
""
, text)
return
" "
.join(text.split())