MCPcopy Create free account
hub / github.com/UIC-Liu-Lab/CPT / combine_function

Function combine_function

dataloader/data.py:117–120  ·  view source on GitHub ↗
(example)

Source from the content-addressed store, hash-verified

115 datasets = Dataset.from_pandas(df)
116
117 def combine_function(example):
118 example['text'] = example['description']
119 example['labels'] = example['label'] - 1
120 return example
121
122 datasets = datasets.map(combine_function,
123 batched=False,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected