lj1995 commited on
Commit
b6f4cba
·
verified ·
1 Parent(s): 8d09043

Update text/chinese2.py

Browse files
Files changed (1) hide show
  1. text/chinese2.py +2 -1
text/chinese2.py CHANGED
@@ -29,6 +29,7 @@ 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
  rep_map = {
33
  ":": ",",
34
  ";": ",",
@@ -48,7 +49,7 @@ rep_map = {
48
  }
49
 
50
  tone_modifier = ToneSandhi()
51
-
52
 
53
  def replace_punctuation(text):
54
  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
+ print("::1")
33
  rep_map = {
34
  ":": ",",
35
  ";": ",",
 
49
  }
50
 
51
  tone_modifier = ToneSandhi()
52
+ print("::2")
53
 
54
  def replace_punctuation(text):
55
  text = text.replace("嗯", "恩").replace("呣", "母")