File size: 336 Bytes
c02bdcd |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from typing import Callable
from functools import partial
def normalizer_en_nemo_text() -> Callable[[str], str]:
from nemo_text_processing.text_normalization.normalize import Normalizer
return partial(
Normalizer(input_case="cased", lang="en").normalize,
verbose=False,
punct_post_process=True,
)
|