MCPcopy Create free account
hub / github.com/OpenGVLab/EfficientQAT / tokenize_function

Function tokenize_function

datautils_e2e.py:166–168  ·  view source on GitHub ↗
(examples)

Source from the content-addressed store, hash-verified

164 text_column_name = "text" if "text" in column_names else column_names[0]
165
166 def tokenize_function(examples):
167 output = tokenizer(examples[text_column_name])
168 return output
169 tokenized_datasets = dataset.map(
170 tokenize_function,
171 batched=True,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected