(data_dir)
| 338 | |
| 339 | |
| 340 | def build_phone_encoder(data_dir): |
| 341 | phone_list_file = os.path.join(data_dir, 'phone_set.json') |
| 342 | phone_list = json.load(open(phone_list_file)) |
| 343 | return TokenTextEncoder(None, vocab_list=phone_list, replace_oov=',') |
| 344 | |
| 345 | |
| 346 | def is_sil_phoneme(p): |
no test coverage detected