Pipe1213 commited on
Commit
5f00a69
1 Parent(s): c4ac7fa

Update text/symbols_gra.py

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