add safety checks when using only part of dataset
MEMBER
Hi ! The metrics in `datasets` are deprecated in favor of https://github.com/huggingface/evaluate

You can open a PR here instead: https://huggingface.co/spaces/evaluate-metric/squad_v2/tree/main
2024-02-08T14:33:08Z
https://github.com/huggingface/datasets/pull/6601#issuecomment-1934248052
https://api.github.com/repos/huggingface/datasets/issues/6601
IC_kwDODunzps5zSkh0
https://api.github.com/repos/huggingface/datasets/issues/comments/1934248052/reactions
2024-02-08T14:33:08Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1934248052
https://avatars.githubusercontent.com/u/42851186?v=4
https://api.github.com/users/lhoestq/events{/privacy}
https://api.github.com/users/lhoestq/followers
https://api.github.com/users/lhoestq/following{/other_user}
https://api.github.com/users/lhoestq/gists{/gist_id}
https://github.com/lhoestq
lhoestq
MDQ6VXNlcjQyODUxMTg2
https://api.github.com/users/lhoestq/orgs
https://api.github.com/users/lhoestq/received_events
https://api.github.com/users/lhoestq/repos
https://api.github.com/users/lhoestq/starred{/owner}{/repo}
https://api.github.com/users/lhoestq/subscriptions
User
https://api.github.com/users/lhoestq
public
Added some checks to prevent errors that arrise when using evaluate.py on only a portion of the squad 2.0 dataset.