One subset per file in repo ?
CONTRIBUTOR
Hi @lhoestq! I’ve opened a PR that addresses this issue
2025-06-26T08:24:50Z
https://github.com/huggingface/datasets/issues/7066#issuecomment-3007634494
https://api.github.com/repos/huggingface/datasets/issues/7066
IC_kwDODunzps6zRNw-
https://api.github.com/repos/huggingface/datasets/issues/comments/3007634494/reactions
2025-06-26T08:24:50Z
https://api.github.com/repos/huggingface/datasets/issues/comments/3007634494
https://avatars.githubusercontent.com/u/142811259?v=4
https://api.github.com/users/ArjunJagdale/events{/privacy}
https://api.github.com/users/ArjunJagdale/followers
https://api.github.com/users/ArjunJagdale/following{/other_user}
https://api.github.com/users/ArjunJagdale/gists{/gist_id}
https://github.com/ArjunJagdale
ArjunJagdale
U_kgDOCIMgew
https://api.github.com/users/ArjunJagdale/orgs
https://api.github.com/users/ArjunJagdale/received_events
https://api.github.com/users/ArjunJagdale/repos
https://api.github.com/users/ArjunJagdale/starred{/owner}{/repo}
https://api.github.com/users/ArjunJagdale/subscriptions
User
https://api.github.com/users/ArjunJagdale
public
Right now we consider all the files of a dataset to be the same data, e.g.
```
single_subset_dataset/
├── train0.jsonl
├── train1.jsonl
└── train2.jsonl
```
but in cases like this, each file is actually a different subset of the dataset and should be loaded separately
```
many_subsets_dataset/
├── animals.jsonl
├── trees.jsonl
└── metadata.jsonl
```

It would be nice to detect those subsets automatically using a simple heuristic. For example we can group files together if their paths names are the same except some digits ?