Spaces:
Runtime error
Runtime error
""" from https://github.com/keithito/tacotron """ | |
''' | |
Defines the set of symbols used in text input to the model. | |
''' | |
_pad = '_' | |
_punctuation = ';:,.!?¡¿—…"«»“” ' | |
_letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz' | |
_number = '0123456789' | |
# Export all symbols: | |
symbols = [_pad] + list(_punctuation) + list(_letters) + list(_number) + list("'・-()") | |
# print(symbols) | |
# Special symbol ids | |
SPACE_ID = symbols.index(" ") | |