disable this cringe precheck for now since it causes problems
This commit is contained in:
parent
f12746b091
commit
0cca4eb943
|
@ -114,10 +114,12 @@ class TTS():
|
||||||
return text
|
return text
|
||||||
|
|
||||||
# check if tokenizes without any unks (for example, if already phonemized text is passes)
|
# check if tokenizes without any unks (for example, if already phonemized text is passes)
|
||||||
|
"""
|
||||||
if precheck and "<unk>" in self.symmap:
|
if precheck and "<unk>" in self.symmap:
|
||||||
tokens = tokenize( text )
|
tokens = tokenize( text )
|
||||||
if self.symmap["<unk>"] not in tokens:
|
if self.symmap["<unk>"] not in tokens:
|
||||||
return torch.tensor( tokens )
|
return torch.tensor( tokens )
|
||||||
|
"""
|
||||||
|
|
||||||
if not phonemize:
|
if not phonemize:
|
||||||
return torch.tensor( text_tokenize( text ) )
|
return torch.tensor( text_tokenize( text ) )
|
||||||
|
|
Loading…
Reference in New Issue
Block a user