Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
NikiPshg
/
g2p_with_stress
like
0
English
g2p
grapheme
phoneme
text2text
text-generation-inference
License:
mit
Model card
Files
Files and versions
Community
Deploy
9ba7d3b
g2p_with_stress
/
test.py
NikiPshg
Upload 27 files
9ba7d3b
verified
6 months ago
raw
Copy download link
history
blame
Safe
180 Bytes
from
G2P_lexicon
import
g2p_en_lexicon
text =
"text, numbers, and some strange symbols !№;% 21"
g2p = g2p_en_lexicon()
phonemes = g2p(text, with_stress=
False
)
print
(phonemes)