MCPcopy Index your code
hub / github.com/huggingface/datasets / decode_example

Method decode_example

tests/test_iterable_dataset.py:3057–3059  ·  view source on GitHub ↗
(self, example, token_per_repo_id=None)

Source from the content-addressed store, hash-verified

3055 self.decode = True
3056
3057 def decode_example(self, example, token_per_repo_id=None):
3058 type(self).decode_example_num_calls += 1
3059 return "decoded" if self.decode else example
3060
3061 def __call__(self):
3062 return pa.string()

Calls

no outgoing calls

Tested by

no test coverage detected