data_juicer.ops.mapper.remove_header_mapper module

class data_juicer.ops.mapper.remove_header_mapper.RemoveHeaderMapper(drop_no_head: bool = True, *args, **kwargs)[源代码]

基类:Mapper

Mapper to remove headers at the beginning of documents in Latex samples.

__init__(drop_no_head: bool = True, *args, **kwargs)[源代码]

Initialization method.

参数:
  • drop_no_head -- whether to drop sample texts without headers.

  • args -- extra args

  • kwargs -- extra args

process_batched(samples)[源代码]