nemo_curator.stages.text.utils.text
nemo_curator.stages.text.utils.text
Module Contents
Functions
API
Normalize text in a cuDF Series.
Parameters:
text_series
Series containing the text to normalize.
lowercase
Whether to lowercase the text.
normalize_space
Whether to collapse whitespace runs and trim leading and trailing whitespace.
Returns: cudf.Series
The normalized text series.
Raises:
TypeError: Iftext_seriesis not a cuDF Series.