EDGAhab commited on
Commit
6e38e1a
1 Parent(s): 764c42a

Update text/__init__.py

Browse files
Files changed (1) hide show
  1. text/__init__.py +2 -0
text/__init__.py CHANGED
@@ -27,6 +27,8 @@ def text_to_sequence(text, cleaner_names, ):
27
 
28
  clean_text = _clean_text(text, cleaner_names)
29
  for symbol in clean_text:
 
 
30
  symbol_id = _symbol_to_id[symbol]
31
  sequence += [symbol_id]
32
  return sequence
 
27
 
28
  clean_text = _clean_text(text, cleaner_names)
29
  for symbol in clean_text:
30
+ if symbol not in _symbol_to_id.keys():
31
+ coutinue
32
  symbol_id = _symbol_to_id[symbol]
33
  sequence += [symbol_id]
34
  return sequence