Dataset Viewer issue for strombergnlp/ipm_nel : preview is empty, no error message
MEMBER
Hi @leondz, thanks for reporting.

Indeed, the dataset viewer relies on the dataset being streamable (passing `streaming=True` to `load_dataset`). Whereas most of the datastes are streamable out of the box (thanks to our implementation of streaming), there are still some exceptions.

In particular, in your case, that is due to the data file being TAR. This format is not streamable out of the box (it does not allow random access to the archived files), but we use a trick to allow streaming: using `dl_manager.iter_archive`.

Let me know if you need some help: I could push a commit to your repo with the fix.
2022-05-06T14:53:30Z
https://github.com/huggingface/datasets/issues/4291#issuecomment-1119708873
https://api.github.com/repos/huggingface/datasets/issues/4291
IC_kwDODunzps5CvWbJ
https://api.github.com/repos/huggingface/datasets/issues/comments/1119708873/reactions
2022-05-06T14:53:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1119708873
https://avatars.githubusercontent.com/u/8515462?v=4
https://api.github.com/users/albertvillanova/events{/privacy}
https://api.github.com/users/albertvillanova/followers
https://api.github.com/users/albertvillanova/following{/other_user}
https://api.github.com/users/albertvillanova/gists{/gist_id}
https://github.com/albertvillanova
albertvillanova
MDQ6VXNlcjg1MTU0NjI=
https://api.github.com/users/albertvillanova/orgs
https://api.github.com/users/albertvillanova/received_events
https://api.github.com/users/albertvillanova/repos
https://api.github.com/users/albertvillanova/starred{/owner}{/repo}
https://api.github.com/users/albertvillanova/subscriptions
User
https://api.github.com/users/albertvillanova
public
CONTRIBUTOR
Ah, right! The preview is working now, but this explanation is good to know, thank you. I'll prefer formats with random file access supported in datasets.utils.extract in future, and try out this fix for the tarfiles :)
2022-05-09T08:25:58Z
https://github.com/huggingface/datasets/issues/4291#issuecomment-1120798923
https://api.github.com/repos/huggingface/datasets/issues/4291
IC_kwDODunzps5CzgjL
https://api.github.com/repos/huggingface/datasets/issues/comments/1120798923/reactions
2022-05-09T08:25:58Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1120798923
https://avatars.githubusercontent.com/u/121934?v=4
https://api.github.com/users/leondz/events{/privacy}
https://api.github.com/users/leondz/followers
https://api.github.com/users/leondz/following{/other_user}
https://api.github.com/users/leondz/gists{/gist_id}
https://github.com/leondz
leondz
MDQ6VXNlcjEyMTkzNA==
https://api.github.com/users/leondz/orgs
https://api.github.com/users/leondz/received_events
https://api.github.com/users/leondz/repos
https://api.github.com/users/leondz/starred{/owner}{/repo}
https://api.github.com/users/leondz/subscriptions
User
https://api.github.com/users/leondz
public
### Link

https://huggingface.co/datasets/strombergnlp/ipm_nel/viewer/ipm_nel/train

### Description

The viewer is blank. I tried my best to emulate a dataset with a working viewer, but this one just doesn't seem to want to come up. What did I miss?

### Owner

Yes