How to let `load_dataset` return a `Dataset` instead of `DatasetDict` in customized loading script
MEMBER
Hi @liyucheng09.

Users can pass the `split` parameter to `load_dataset`. For example, if your split name is "train",
```python
ds = load_dataset("dataset_name", split="train")
```
will return a `Dataset` instance.
2022-06-16T06:26:35Z
https://github.com/huggingface/datasets/issues/4507#issuecomment-1157282094
https://api.github.com/repos/huggingface/datasets/issues/4507
IC_kwDODunzps5E-rku
https://api.github.com/repos/huggingface/datasets/issues/comments/1157282094/reactions
2022-06-16T06:26:35Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1157282094
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
NONE
@albertvillanova Thanks! I can't believe I didn't know this feature till now.
2022-06-16T10:40:08Z
https://github.com/huggingface/datasets/issues/4507#issuecomment-1157509897
https://api.github.com/repos/huggingface/datasets/issues/4507
IC_kwDODunzps5E_jMJ
https://api.github.com/repos/huggingface/datasets/issues/comments/1157509897/reactions
2022-06-16T10:40:08Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1157509897
https://avatars.githubusercontent.com/u/27999909?v=4
https://api.github.com/users/liyucheng09/events{/privacy}
https://api.github.com/users/liyucheng09/followers
https://api.github.com/users/liyucheng09/following{/other_user}
https://api.github.com/users/liyucheng09/gists{/gist_id}
https://github.com/liyucheng09
liyucheng09
MDQ6VXNlcjI3OTk5OTA5
https://api.github.com/users/liyucheng09/orgs
https://api.github.com/users/liyucheng09/received_events
https://api.github.com/users/liyucheng09/repos
https://api.github.com/users/liyucheng09/starred{/owner}{/repo}
https://api.github.com/users/liyucheng09/subscriptions
User
https://api.github.com/users/liyucheng09
public
If the dataset does not need splits, i.e., no training and validation split, more like a table. How can I let the `load_dataset` function return a `Dataset` object directly rather than return a `DatasetDict` object with only one key-value pair.

Or I can paraphrase the question in the following way: how to skip `_split_generators` step in `DatasetBuilder` to let `as_dataset` gives a single `Dataset` rather than a list`[Dataset]`?

Many thanks for any help.