lj1995 commited on
Commit
c3242c8
1 Parent(s): 34eca10

Update text/g2pw/g2pw.py

Browse files
Files changed (1) hide show
  1. text/g2pw/g2pw.py +0 -4
text/g2pw/g2pw.py CHANGED
@@ -20,21 +20,17 @@ class G2PWPinyin(Pinyin):
20
  def __init__(self, model_dir='G2PWModel/', model_source=None,
21
  enable_non_tradional_chinese=True,
22
  v_to_u=False, neutral_tone_with_five=False, tone_sandhi=False, **kwargs):
23
-
24
- print("::3")
25
  self._g2pw = G2PWOnnxConverter(
26
  model_dir=model_dir,
27
  style='pinyin',
28
  model_source=model_source,
29
  enable_non_tradional_chinese=enable_non_tradional_chinese,
30
  )
31
- print("::4")
32
  self._converter = Converter(
33
  self._g2pw, v_to_u=v_to_u,
34
  neutral_tone_with_five=neutral_tone_with_five,
35
  tone_sandhi=tone_sandhi,
36
  )
37
- print("::5")
38
 
39
  def get_seg(self, **kwargs):
40
  return simple_seg
 
20
  def __init__(self, model_dir='G2PWModel/', model_source=None,
21
  enable_non_tradional_chinese=True,
22
  v_to_u=False, neutral_tone_with_five=False, tone_sandhi=False, **kwargs):
 
 
23
  self._g2pw = G2PWOnnxConverter(
24
  model_dir=model_dir,
25
  style='pinyin',
26
  model_source=model_source,
27
  enable_non_tradional_chinese=enable_non_tradional_chinese,
28
  )
 
29
  self._converter = Converter(
30
  self._g2pw, v_to_u=v_to_u,
31
  neutral_tone_with_five=neutral_tone_with_five,
32
  tone_sandhi=tone_sandhi,
33
  )
 
34
 
35
  def get_seg(self, **kwargs):
36
  return simple_seg