Spaces:
Sleeping
Sleeping
Update text/chinese2.py
Browse files- text/chinese2.py +1 -2
text/chinese2.py
CHANGED
@@ -29,7 +29,6 @@ if is_g2pw:
|
|
29 |
parent_directory = os.path.dirname(current_file_path)
|
30 |
g2pw = G2PWPinyin(model_dir="text/G2PWModel",model_source="pretrained_models/chinese-roberta-wwm-ext-large",v_to_u=False, neutral_tone_with_five=True)
|
31 |
|
32 |
-
print("::1")
|
33 |
rep_map = {
|
34 |
":": ",",
|
35 |
";": ",",
|
@@ -49,7 +48,7 @@ rep_map = {
|
|
49 |
}
|
50 |
|
51 |
tone_modifier = ToneSandhi()
|
52 |
-
|
53 |
|
54 |
def replace_punctuation(text):
|
55 |
text = text.replace("嗯", "恩").replace("呣", "母")
|
|
|
29 |
parent_directory = os.path.dirname(current_file_path)
|
30 |
g2pw = G2PWPinyin(model_dir="text/G2PWModel",model_source="pretrained_models/chinese-roberta-wwm-ext-large",v_to_u=False, neutral_tone_with_five=True)
|
31 |
|
|
|
32 |
rep_map = {
|
33 |
":": ",",
|
34 |
";": ",",
|
|
|
48 |
}
|
49 |
|
50 |
tone_modifier = ToneSandhi()
|
51 |
+
|
52 |
|
53 |
def replace_punctuation(text):
|
54 |
text = text.replace("嗯", "恩").replace("呣", "母")
|