MCPcopy Create free account
hub / github.com/PAIR-code/lit / _slicer

Method _slicer

lit_nlp/api/dataset.py:315–320  ·  view source on GitHub ↗
(slice_obj)

Source from the content-addressed store, hash-verified

313 """Syntactic sugar, allows .slice[i:j] to return a new IndexedDataset."""
314
315 def _slicer(slice_obj):
316 return IndexedDataset(
317 indexed_examples=self.indexed_examples[slice_obj],
318 id_fn=self.id_fn,
319 base=self
320 )
321
322 return SliceWrapper(_slicer)
323

Callers

nothing calls this directly

Calls 1

IndexedDatasetClass · 0.85

Tested by

no test coverage detected