(key, items)
| 38 | |
| 39 | |
| 40 | def _squad_agg(key, items): |
| 41 | predictions, references = zip(*items) |
| 42 | |
| 43 | return _squad_metric(predictions=predictions, references=references).get(key, 0) |
| 44 | |
| 45 | |
| 46 | class SQuAD2(Task): |
nothing calls this directly
no test coverage detected