remove comment

pull/2235/head
david.95 2 years ago
parent f52a87b8d0
commit 7ba74f175f

@ -99,8 +99,6 @@ class English(Phonetics):
if (phn in self.vocab_phones and phn not in self.punc) else "sp" if (phn in self.vocab_phones and phn not in self.punc) else "sp"
for phn in phones for phn in phones
] ]
# when sentences have double punctuations in the end, like "!\"",or "?\"", will get null list like []
# add a condition to filter it
if len(phones) != 0: if len(phones) != 0:
# replace unk phone with sp # replace unk phone with sp
phones_list.append(phones) phones_list.append(phones)

Loading…
Cancel
Save