From c31df2835910c9c236a792db36730fe7beda6147 Mon Sep 17 00:00:00 2001 From: Francis-Hu <87693204+Francis-Komizu@users.noreply.github.com> Date: Mon, 3 Oct 2022 11:26:45 +0800 Subject: [PATCH] Update symbols.py --- text/symbols.py | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/text/symbols.py b/text/symbols.py index d38025c..1972a10 100644 --- a/text/symbols.py +++ b/text/symbols.py @@ -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(" ") + +