Spaces:
Running
Running
Mahiruoshi
commited on
Commit
•
02f0244
1
Parent(s):
c9c0c60
Upload 12 files
Browse files- text/__init__.py +1 -2
- text/cleaner.py +2 -2
text/__init__.py
CHANGED
@@ -20,10 +20,9 @@ def cleaned_text_to_sequence(cleaned_text, tones, language):
|
|
20 |
|
21 |
def get_bert(norm_text, word2ph, language, device, style_text=None, style_weight=0.7):
|
22 |
from .chinese_bert import get_bert_feature as zh_bert
|
23 |
-
from .english_bert_mock import get_bert_feature as en_bert
|
24 |
from .japanese_bert import get_bert_feature as jp_bert
|
25 |
|
26 |
-
lang_bert_func_map = {"ZH": zh_bert, "
|
27 |
bert = lang_bert_func_map[language](
|
28 |
norm_text, word2ph, device, style_text, style_weight
|
29 |
)
|
|
|
20 |
|
21 |
def get_bert(norm_text, word2ph, language, device, style_text=None, style_weight=0.7):
|
22 |
from .chinese_bert import get_bert_feature as zh_bert
|
|
|
23 |
from .japanese_bert import get_bert_feature as jp_bert
|
24 |
|
25 |
+
lang_bert_func_map = {"ZH": zh_bert, "JP": jp_bert}
|
26 |
bert = lang_bert_func_map[language](
|
27 |
norm_text, word2ph, device, style_text, style_weight
|
28 |
)
|
text/cleaner.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
from text import chinese, japanese,
|
2 |
|
3 |
|
4 |
-
language_module_map = {"ZH": chinese, "JP": japanese
|
5 |
|
6 |
|
7 |
def clean_text(text, language):
|
|
|
1 |
+
from text import chinese, japanese, cleaned_text_to_sequence
|
2 |
|
3 |
|
4 |
+
language_module_map = {"ZH": chinese, "JP": japanese}
|
5 |
|
6 |
|
7 |
def clean_text(text, language):
|