(slice_obj)
| 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 |
nothing calls this directly
no test coverage detected