`from_generator` does not allow to specify the split name
MEMBER
Thanks for reporting, @pminervini.

I agree we should give the option to define the split name.

Indeed, there is a PR that addresses precisely this issue:
- #7015

I am reviewing it.
2024-07-09T08:05:22Z
https://github.com/huggingface/datasets/issues/7033#issuecomment-2216885701
https://api.github.com/repos/huggingface/datasets/issues/7033
IC_kwDODunzps6EIv3F
https://api.github.com/repos/huggingface/datasets/issues/comments/2216885701/reactions
2024-07-09T08:05:22Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2216885701
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
Booom! thank you guys :)
2024-07-26T12:56:15Z
https://github.com/huggingface/datasets/issues/7033#issuecomment-2252708813
https://api.github.com/repos/huggingface/datasets/issues/7033
IC_kwDODunzps6GRZvN
https://api.github.com/repos/huggingface/datasets/issues/comments/2252708813/reactions
2024-07-26T12:56:15Z
https://api.github.com/repos/huggingface/datasets/issues/comments/2252708813
https://avatars.githubusercontent.com/u/227357?v=4
https://api.github.com/users/pminervini/events{/privacy}
https://api.github.com/users/pminervini/followers
https://api.github.com/users/pminervini/following{/other_user}
https://api.github.com/users/pminervini/gists{/gist_id}
https://github.com/pminervini
pminervini
MDQ6VXNlcjIyNzM1Nw==
https://api.github.com/users/pminervini/orgs
https://api.github.com/users/pminervini/received_events
https://api.github.com/users/pminervini/repos
https://api.github.com/users/pminervini/starred{/owner}{/repo}
https://api.github.com/users/pminervini/subscriptions
User
https://api.github.com/users/pminervini
public
### Describe the bug

I'm building train, dev, and test using `from_generator`; however, in all three cases, the logger prints `Generating train split:`
It's not possible to change the split name since it seems to be hardcoded: https://github.com/huggingface/datasets/blob/main/src/datasets/packaged_modules/generator/generator.py

### Steps to reproduce the bug

```
In [1]: from datasets import Dataset

In [2]: def gen():
   ...:     yield {"pokemon": "bulbasaur", "type": "grass"}
   ...: 

In [3]: ds = Dataset.from_generator(gen)
Generating train split: 1 examples [00:00, 133.89 examples/s]
```

### Expected behavior

It should be possible to specify any split name

### Environment info

- `datasets` version: 2.19.2
- Platform: macOS-10.16-x86_64-i386-64bit
- Python version: 3.8.5
- `huggingface_hub` version: 0.23.3
- PyArrow version: 15.0.0
- Pandas version: 2.0.3
- `fsspec` version: 2023.10.0