Fix squad V2 metric script
{'login': 'sgugger', 'id': 35901082, 'node_id': 'MDQ6VXNlcjM1OTAxMDgy', 'avatar_url': 'https://avatars.githubusercontent.com/u/35901082?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sgugger', 'html_url': 'https://github.com/sgugger', 'followers_url': 'https://api.github.com/users/sgugger/followers', 'following_url': 'https://api.github.com/users/sgugger/following{/other_user}', 'gists_url': 'https://api.github.com/users/sgugger/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sgugger/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sgugger/subscriptions', 'organizations_url': 'https://api.github.com/users/sgugger/orgs', 'repos_url': 'https://api.github.com/users/sgugger/repos', 'events_url': 'https://api.github.com/users/sgugger/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sgugger/received_events', 'type': 'User', 'site_admin': False}
[]
[]
['The script with changes is used and tested in [#8924](https://github.com/huggingface/transformers/pull/8924). It gives the same results as the old `evaluate_squad` function when used on the same predictions.'
 'merging since the CI is fixed on master']
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/1060', 'html_url': 'https://github.com/huggingface/datasets/pull/1060', 'diff_url': 'https://github.com/huggingface/datasets/pull/1060.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/1060.patch', 'merged_at': datetime.datetime(2020, 12, 22, 15, 2, 19)}
The current squad v2 metric doesn't work with the squad (v1 or v2) datasets. The script is copied from `squad_evaluate` in transformers that requires the labels (with multiple answers) to be like this:
```
references = [{'id': 'a', 'answers': [
    {'text': 'Denver Broncos', 'answer_start': 177},
    {'text': 'Denver Broncos', 'answer_start': 177}
]}]
```
while the dataset had references like this:
```
references = [{'id': 'a', 'answers': 
    {'text': ['Denver Broncos' 'Denver Broncos'], 'answer_start': [177, 177]}
}]
```

Using one or the other format fails with the current squad v2 metric:
```
from datasets import load_metric
metric = load_metric("squad_v2")
predictions = [{'id': 'a', 'prediction_text': 'Denver Broncos', 'no_answer_probability': 0.0}]
references = [{'id': 'a', 'answers': [
    {'text': 'Denver Broncos', 'answer_start': 177},
    {'text': 'Denver Broncos', 'answer_start': 177}
]}]
metric.compute(predictions=predictions, references=references)
```
fails as well as
```
from datasets import load_metric
metric = load_metric("squad_v2")
predictions = [{'id': 'a', 'prediction_text': 'Denver Broncos', 'no_answer_probability': 0.0}]
references = [{'id': 'a', 'answers': 
    {'text': ['Denver Broncos' 'Denver Broncos'], 'answer_start': [177, 177]}
}]
metric.compute(predictions=predictions, references=references)
```

This is because arrow reformats the references behind the scene.

With this PR (tested locally), both the snippets up there work and return proper results.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/1060/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}