Spaces:
Runtime error
Runtime error
""" from https://github.com/keithito/tacotron """ | |
''' | |
Defines the set of symbols used in text input to the model. | |
''' | |
'''# korean_cleaners | |
_pad = '_' | |
_punctuation = ',.!?…~' | |
_letters = 'ㄱㄴㄷㄹㅁㅂㅅㅇㅈㅊㅋㅌㅍㅎㄲㄸㅃㅆㅉㅏㅓㅗㅜㅡㅣㅐㅔ ' | |
''' | |
# japanese_cleaners2 | |
_pad = '_' | |
_punctuation = ',.!?-~…' | |
_letters = 'AEINOQUabdefghijkmnoprstuvwyzʃʧʦ↓↑ ' | |
# Export all symbols: | |
symbols = [_pad] + list(_punctuation) + list(_letters) | |
# Special symbol ids | |
SPACE_ID = symbols.index(" ") | |