Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
HanFengS
/
6100
like
2
Sleeping
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
main
6100
/
oldVersion
/
V110
/
text
/
english_bert_mock.py
HanFengS
Upload 226 files
dc50ee1
verified
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
Safe
100 Bytes
import
torch
def
get_bert_feature
(
norm_text, word2ph
):
return
torch.zeros(
1024
,
sum
(word2ph))