Spaces:
Sleeping
Sleeping
Update text/symbols_pho.py
Browse files- text/symbols_pho.py +8 -8
text/symbols_pho.py
CHANGED
@@ -3,15 +3,15 @@
|
|
3 |
'''
|
4 |
Defines the set of symbols used in text input to the model.
|
5 |
'''
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
|
13 |
# Export all symbols:
|
14 |
-
symbols_pho =
|
15 |
|
16 |
# Special symbol ids
|
17 |
-
SPACE_ID =
|
|
|
3 |
'''
|
4 |
Defines the set of symbols used in text input to the model.
|
5 |
'''
|
6 |
+
|
7 |
+
_pad = '_'
|
8 |
+
_punctuation = ';:,.!?¡¿—-<>*()…"«»“”~ '
|
9 |
+
_letters = 'ABCÇDEFGHIJKLMNOPQRSTUVWXYZÂÊÎÔÛâêîôûéÉèåÅÈàÀùÙÌìëöabcçdefghijklmnopqrstuvwxyz'
|
10 |
+
_letters_ipa = "õ̃ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ"
|
11 |
+
|
12 |
|
13 |
# Export all symbols:
|
14 |
+
symbols_pho = [_pad] + list(_punctuation) + list(_letters) + list(_letters_ipa)
|
15 |
|
16 |
# Special symbol ids
|
17 |
+
SPACE_ID = symbols_pho.index(" ")
|