`xnli` dataset creating a tuple key while yielding instead of `str` or `int`
MEMBER
Hi ! Sure sounds good. Also if you find other datasets that use tuples instead of str/int, you can also fix them !
thanks :)
2021-04-16T14:28:55Z
https://github.com/huggingface/datasets/issues/2229#issuecomment-821217507
https://api.github.com/repos/huggingface/datasets/issues/2229
MDEyOklzc3VlQ29tbWVudDgyMTIxNzUwNw==
https://api.github.com/repos/huggingface/datasets/issues/comments/821217507/reactions
2021-04-16T14:28:55Z
https://api.github.com/repos/huggingface/datasets/issues/comments/821217507
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
CONTRIBUTOR
@lhoestq I have sent a PR for fixing the issue. Would be great if you could have a look! Thanks!
2021-04-16T19:13:57Z
https://github.com/huggingface/datasets/issues/2229#issuecomment-821507644
https://api.github.com/repos/huggingface/datasets/issues/2229
MDEyOklzc3VlQ29tbWVudDgyMTUwNzY0NA==
https://api.github.com/repos/huggingface/datasets/issues/comments/821507644/reactions
2021-04-16T19:13:57Z
https://api.github.com/repos/huggingface/datasets/issues/comments/821507644
https://avatars.githubusercontent.com/u/42388668?v=4
https://api.github.com/users/NikhilBartwal/events{/privacy}
https://api.github.com/users/NikhilBartwal/followers
https://api.github.com/users/NikhilBartwal/following{/other_user}
https://api.github.com/users/NikhilBartwal/gists{/gist_id}
https://github.com/NikhilBartwal
NikhilBartwal
MDQ6VXNlcjQyMzg4NjY4
https://api.github.com/users/NikhilBartwal/orgs
https://api.github.com/users/NikhilBartwal/received_events
https://api.github.com/users/NikhilBartwal/repos
https://api.github.com/users/NikhilBartwal/starred{/owner}{/repo}
https://api.github.com/users/NikhilBartwal/subscriptions
User
https://api.github.com/users/NikhilBartwal
public
When using  `ds = datasets.load_dataset('xnli', 'ar')`, the dataset generation script uses the following section of code in the egging, which yields a tuple key instead of the specified `str` or `int` key:
https://github.com/huggingface/datasets/blob/56346791aed417306d054d89bd693d6b7eab17f7/datasets/xnli/xnli.py#L196

Since, community datasets in Tensorflow Datasets also use HF datasets, this causes a Tuple key error while loading HF's `xnli` dataset. 
I'm up for sending a fix for this, I think we can simply use `file_idx + "_" + row_idx` as a unique key instead of a tuple.