Pendrokar commited on
Commit
887d1eb
β€’
1 Parent(s): 2080fde
resources/app/python/xvapitch/text/text_preprocessing.py CHANGED
@@ -8,7 +8,8 @@ import glob
8
  from unidecode import unidecode
9
  # from g2pc import G2pC
10
 
11
- from h2p_parser.h2p import H2p
 
12
  from num2words import num2words
13
  import pykakasi
14
  import epitran
@@ -112,8 +113,9 @@ class TextPreprocessor():
112
  self.espeak = ESpeak(base_dir, language=self.lang_code2, keep_puncs=True)
113
 
114
  self.h2p = None
115
- if lang_code=="en":
116
- self.h2p = H2p(preload=True)
 
117
 
118
  # Regular expression matching text enclosed in curly braces:
119
  self._curly_re = re.compile(r'(.*?)\{(.+?)\}(.*)')
 
8
  from unidecode import unidecode
9
  # from g2pc import G2pC
10
 
11
+ # FIXME: Does not load it
12
+ # from h2p_parser.h2p import H2p
13
  from num2words import num2words
14
  import pykakasi
15
  import epitran
 
113
  self.espeak = ESpeak(base_dir, language=self.lang_code2, keep_puncs=True)
114
 
115
  self.h2p = None
116
+ # FIXME: load h2p_parser
117
+ # if lang_code=="en":
118
+ # self.h2p = H2p(preload=True)
119
 
120
  # Regular expression matching text enclosed in curly braces:
121
  self._curly_re = re.compile(r'(.*?)\{(.+?)\}(.*)')