()
| 229 | |
| 230 | |
| 231 | def create_all_tasks(): |
| 232 | resources_dir = importlib.resources.files("lm_eval.datasets") / "bigbench_resources" |
| 233 | supported_tasks = [os.path.splitext(x)[0] for x in os.listdir(resources_dir)] |
| 234 | res = {} |
| 235 | for task_name in supported_tasks: |
| 236 | task_path = os.path.join(resources_dir, f"{task_name}.json") |
| 237 | res[f"bigbench_{task_name}"] = create_task_from_path(task_path) |
| 238 | return res |
nothing calls this directly
no test coverage detected