(self)
| 67 | dataset.save_to_disk(str(cache_dir)) |
| 68 | |
| 69 | def _load_from_cache(self): |
| 70 | assert self.cache_dir.is_dir() |
| 71 | logger = logging.getLogger(__name__) |
| 72 | logger.info(f"Load from cache at {str(self.cache_dir)}") |
| 73 | dataset = DatasetDict.load_from_disk(str(self.cache_dir)) |
| 74 | return dataset |
| 75 | |
| 76 | @property |
| 77 | def _cache_dir_name(self): |
nothing calls this directly
no outgoing calls
no test coverage detected