(data_path, model, tokenizer, all_task_config_path, task_classes)
| 29 | |
| 30 | |
| 31 | def evaluate_all_tasks(data_path, model, tokenizer, all_task_config_path, task_classes): |
| 32 | for config_path, task_class in zip(all_task_config_path, task_classes): |
| 33 | config = task_class.config_class().from_yaml_file(config_path) |
| 34 | config.path = join(data_path, config.path) |
| 35 | task = task_class(model, tokenizer, config) |
| 36 | task.evaluate() |
| 37 | |
| 38 | |
| 39 | def main(): |
no test coverage detected