espnet2.text.cleaner.TextCleaner
Less than 1 minute
espnet2.text.cleaner.TextCleaner
class espnet2.text.cleaner.TextCleaner(cleaner_types: Collection[str] | None = None)
Bases: object
Text cleaner.
Examples
>>> cleaner = TextCleaner("tacotron")
>>> cleaner("(Hello-World); & jr. & dr.")
'HELLO WORLD, AND JUNIOR AND DOCTOR'