Luigi commited on
Commit
f8f98a9
·
verified ·
1 Parent(s): c9a2709

fix: aligner uses text_norm.normalize (entity normalizer)

Browse files
Files changed (1) hide show
  1. scripts/align_durations_v4.py +2 -1
scripts/align_durations_v4.py CHANGED
@@ -40,10 +40,11 @@ BOPO2IPA = {
40
 
41
  def build_frontend_with_charidx():
42
  import frontend_bopomofo as F
 
43
  import re
44
  F._lazy()
45
  def run(text):
46
- text = F._zh_num(text)
47
  bopo = F._g2pw(text)[0]
48
  chars = list(text)
49
  phones, tones, langs = [], [], []
 
40
 
41
  def build_frontend_with_charidx():
42
  import frontend_bopomofo as F
43
+ import text_norm
44
  import re
45
  F._lazy()
46
  def run(text):
47
+ text = text_norm.normalize(text)
48
  bopo = F._g2pw(text)[0]
49
  chars = list(text)
50
  phones, tones, langs = [], [], []