Load a source dataset with error handling
(config: Dict[str, Any])
| 154 | } |
| 155 | |
| 156 | def load_source_dataset(config: Dict[str, Any]) -> datasets.Dataset: |
| 157 | """Load a source dataset with error handling""" |
| 158 | try: |
| 159 | dataset = datasets.load_dataset( |
| 160 | config["name"], |
| 161 | config.get("subset") |
| 162 | ) |
| 163 | return dataset |
| 164 | except Exception as e: |
| 165 | print(f"Error loading dataset {config['name']}: {str(e)}") |
| 166 | return None |
| 167 | |
| 168 | def create_benchmark_dataset() -> Dataset: |
| 169 | """Create the complete benchmark dataset""" |
no test coverage detected