Dataset viewer issue for 'liweili/c4_200m'
MEMBER
Hi ! I think the issue comes from this [line](https://huggingface.co/datasets/liweili/c4_200m/blob/main/c4_200m.py#L87):
```python
path = filepath + "/*.tsv*"
```

You can fix this by doing this instead:
```python
path = os.path.join(filepath, "/*.tsv*")
```

Here is why:

Locally you can append `"/*.tsv*"` to your local path, however it doesn't work in streaming mode, and the dataset viewer does use the streaming mode.
In streaming mode, the download and extract part is done lazily. It means that instead of using local paths, it's still passing around URLs and [chained URLs](https://filesystem-spec.readthedocs.io/en/latest/features.html#url-chaining)

Therefore in streaming mode, `filepath` is not a local path, but instead is equal to
```python
zip://::https://huggingface.co/datasets/liweili/c4_200m/resolve/main/data.zip
```
The `zip://` part means that we navigate inside the remote ZIP file.

You must use `os.path.join` to navigate inside it and get your TSV files:
```python
>>> os.path.join(filepath, "/*.tsv*")
zip://*.tsv*::https://huggingface.co/datasets/liweili/c4_200m/resolve/main/data.zip
```

`datasets` extends `os.path.join`, `glob.glob`, etc. in your dataset scripts to work with remote files.
2021-11-15T10:47:30Z
https://github.com/huggingface/datasets/issues/3268#issuecomment-968764557
https://api.github.com/repos/huggingface/datasets/issues/3268
IC_kwDODunzps45viyN
https://api.github.com/repos/huggingface/datasets/issues/comments/968764557/reactions
2021-11-15T10:47:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/968764557
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
NONE
hi @lhoestq ! thanks for the tip! i've updated the line of code but it's still not working. am i doing something else wrong? thank you!
2021-11-15T18:05:51Z
https://github.com/huggingface/datasets/issues/3268#issuecomment-969177226
https://api.github.com/repos/huggingface/datasets/issues/3268
IC_kwDODunzps45xHiK
https://api.github.com/repos/huggingface/datasets/issues/comments/969177226/reactions
2021-11-15T18:05:51Z
https://api.github.com/repos/huggingface/datasets/issues/comments/969177226
https://avatars.githubusercontent.com/u/22389228?v=4
https://api.github.com/users/liliwei25/events{/privacy}
https://api.github.com/users/liliwei25/followers
https://api.github.com/users/liliwei25/following{/other_user}
https://api.github.com/users/liliwei25/gists{/gist_id}
https://github.com/liliwei25
liliwei25
MDQ6VXNlcjIyMzg5MjI4
https://api.github.com/users/liliwei25/orgs
https://api.github.com/users/liliwei25/received_events
https://api.github.com/users/liliwei25/repos
https://api.github.com/users/liliwei25/starred{/owner}{/repo}
https://api.github.com/users/liliwei25/subscriptions
User
https://api.github.com/users/liliwei25
public
MEMBER
Hi ! Your dataset code is all good now :)
```python
In [1]: from datasets import load_dataset

In [2]: d = load_dataset("liweili/c4_200m", streaming=True)
Downloading: 100%|█████████████████████████████████████████████| 2.79k/2.79k [00:00<00:00, 4.83MB/s]
Using custom data configuration default

In [3]: next(iter(d["train"]))
Out[3]: 
{'input': 'Bitcoin is for $7,094 this morning, which CoinDesk says.',
 'output': 'Bitcoin goes for $7,094 this morning, according to CoinDesk.'}
```
Though the viewer doesn't seem to be updated, I'll take a look at what's wrong
2021-11-24T16:49:44Z
https://github.com/huggingface/datasets/issues/3268#issuecomment-978052921
https://api.github.com/repos/huggingface/datasets/issues/3268
IC_kwDODunzps46S-c5
https://api.github.com/repos/huggingface/datasets/issues/comments/978052921/reactions
2021-11-25T14:23:03Z
https://api.github.com/repos/huggingface/datasets/issues/comments/978052921
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
NONE
thank you @lhoestq! 😄 
2021-11-24T18:39:56Z
https://github.com/huggingface/datasets/issues/3268#issuecomment-978132759
https://api.github.com/repos/huggingface/datasets/issues/3268
IC_kwDODunzps46TR8X
https://api.github.com/repos/huggingface/datasets/issues/comments/978132759/reactions
2021-11-24T18:39:56Z
https://api.github.com/repos/huggingface/datasets/issues/comments/978132759
https://avatars.githubusercontent.com/u/22389228?v=4
https://api.github.com/users/liliwei25/events{/privacy}
https://api.github.com/users/liliwei25/followers
https://api.github.com/users/liliwei25/following{/other_user}
https://api.github.com/users/liliwei25/gists{/gist_id}
https://github.com/liliwei25
liliwei25
MDQ6VXNlcjIyMzg5MjI4
https://api.github.com/users/liliwei25/orgs
https://api.github.com/users/liliwei25/received_events
https://api.github.com/users/liliwei25/repos
https://api.github.com/users/liliwei25/starred{/owner}{/repo}
https://api.github.com/users/liliwei25/subscriptions
User
https://api.github.com/users/liliwei25
public
COLLABORATOR
It's working

<img width="1424" alt="Capture d’écran 2021-12-21 à 11 24 29" src="https://user-images.githubusercontent.com/1676121/146914238-24bf87c0-c68d-4699-8d6c-fa3065656d1d.png">


2021-12-21T10:24:51Z
https://github.com/huggingface/datasets/issues/3268#issuecomment-998657442
https://api.github.com/repos/huggingface/datasets/issues/3268
IC_kwDODunzps47hk2i
https://api.github.com/repos/huggingface/datasets/issues/comments/998657442/reactions
2021-12-21T10:25:20Z
https://api.github.com/repos/huggingface/datasets/issues/comments/998657442
https://avatars.githubusercontent.com/u/1676121?v=4
https://api.github.com/users/severo/events{/privacy}
https://api.github.com/users/severo/followers
https://api.github.com/users/severo/following{/other_user}
https://api.github.com/users/severo/gists{/gist_id}
https://github.com/severo
severo
MDQ6VXNlcjE2NzYxMjE=
https://api.github.com/users/severo/orgs
https://api.github.com/users/severo/received_events
https://api.github.com/users/severo/repos
https://api.github.com/users/severo/starred{/owner}{/repo}
https://api.github.com/users/severo/subscriptions
User
https://api.github.com/users/severo
public
## Dataset viewer issue for '*liweili/c4_200m*'

**Link:** *[link to the dataset viewer page](https://huggingface.co/datasets/liweili/c4_200m)*

*Server Error*
```
Status code:   404
Exception:     Status404Error
Message:       Not found. Maybe the cache is missing, or maybe the ressource does not exist.
```

Am I the one who added this dataset ? Yes
