MCPcopy Create free account
hub / github.com/LUMIA-Group/MemoryDecoder / tokenize_function

Function tokenize_function

utils/preprocess_dataset.py:77–79  ·  view source on GitHub ↗
(examples)

Source from the content-addressed store, hash-verified

75def tokenize_and_group_text(raw_datasets, tokenizer, block_size, stride, padding_index, num_process):
76
77 def tokenize_function(examples):
78 output = tokenizer(examples["text"])
79 return output
80
81 def group_texts(examples):
82 # Concatenate all texts.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected