Skip to content

Commit 1ea6ed5

Browse files
author
rafaelvalle
committed
text/symbols.py: updating symbols
1 parent cdfde98 commit 1ea6ed5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

text/symbols.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
from text import cmudict
88

99
_pad = '_'
10-
_eos = '~'
11-
_characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!\'(),-.:;? '
10+
_punctuation = '!\'(),.:;? '
11+
_special = '-'
12+
_letters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
1213

1314
# Prepend "@" to ARPAbet symbols to ensure uniqueness (some are the same as uppercase letters):
1415
_arpabet = ['@' + s for s in cmudict.valid_symbols]
1516

1617
# Export all symbols:
17-
symbols = [_pad, _eos] + list(_characters) + _arpabet
18+
symbols = [_pad] + list(_special) + list(_punctuation) + list(_letters) + _arpabet

0 commit comments

Comments
 (0)