Skip to content

Commit

Permalink
Update symbols.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sophiefy authored Oct 3, 2022
1 parent 9e4665a commit c31df28
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions text/symbols.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,33 @@
'''
_pad = '_'
_punctuation = ',.!?-~'
_punctuation_zh = ';:,。!?-“”《》、 '
_letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
_letters_ipa = '-+ʃʧ↓↑ '
_numbers = '123450'
_letters = 'AEINOQUabdefghijkmnoprstuvwyz'
_letters_ipa = 'ʃʧ↓↑ '


# Export all symbols:
symbols = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa) + list(_numbers) + list(_punctuation_zh)
symbols = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa)

# Special symbol ids
SPACE_ID = symbols.index(" ")


# """ from https://github.com/keithito/tacotron """

# '''
# Defines the set of symbols used in text input to the model.
# '''
# _pad = '_'
# _punctuation = ',.!?-~'
# _punctuation_zh = ';:,。!?-“”《》、 '
# _letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
# _letters_ipa = '-+ʃʧ↓↑ '
# _numbers = '123450'

# # Export all symbols:
# symbols = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa) + list(_numbers) + list(_punctuation_zh)

# # Special symbol ids
# SPACE_ID = symbols.index(" ")


0 comments on commit c31df28

Please sign in to comment.