data_juicer.ops.mapper.replace_content_mapper module¶
- class data_juicer.ops.mapper.replace_content_mapper.ReplaceContentMapper(pattern: str | List[str] | None = None, repl: str | List[str] = '', *args, **kwargs)[source]¶
Bases:
Mapper
Mapper to replace all content in the text that matches a specific regular expression pattern with a designated replacement string.