nemo_curator.stages.audio.text_filtering.regex_substitution
nemo_curator.stages.audio.text_filtering.regex_substitution
Module Contents
Classes
API
Dataclass
Bases: ProcessingStage[AudioTask, AudioTask]
Apply an ordered YAML list of regex substitutions to one transcript field.
The YAML document must be a list. Each rule must define string
pattern and repl values and may define a non-negative integer
count limit. Rules run in file order before whitespace is collapsed.
Rows carrying an existing skip reason are not normalized. The empty-result
skip is set only when cleaning removes non-whitespace input; already-empty
input remains unskipped.
_rules
name
output_text_key
regex_params_yaml
resources
skip_me_key
text_key