MCPcopy
hub / github.com/huggingface/datasets / picklable_map_function

Function picklable_map_function

tests/test_arrow_dataset.py:105–106  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

103
104
105def picklable_map_function(x):
106 return {"id": int(x["filename"].split("_")[-1])}
107
108
109def picklable_map_function_with_indices(x, i):

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected