Spaces:
Build error
Build error
Update text/__init__.py
Browse files- 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
|