Add an API to access the language and pretty name of a dataset
{'login': 'sgugger', 'id': 35901082, 'node_id': 'MDQ6VXNlcjM1OTAxMDgy', 'avatar_url': 'https://avatars.githubusercontent.com/u/35901082?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/sgugger', 'html_url': 'https://github.com/sgugger', 'followers_url': 'https://api.github.com/users/sgugger/followers', 'following_url': 'https://api.github.com/users/sgugger/following{/other_user}', 'gists_url': 'https://api.github.com/users/sgugger/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/sgugger/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/sgugger/subscriptions', 'organizations_url': 'https://api.github.com/users/sgugger/orgs', 'repos_url': 'https://api.github.com/users/sgugger/repos', 'events_url': 'https://api.github.com/users/sgugger/events{/privacy}', 'received_events_url': 'https://api.github.com/users/sgugger/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892871, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODcx', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/enhancement', 'name': 'enhancement', 'color': 'a2eeef', 'default': True, 'description': 'New feature or request'}]
[]
Hi ! With @bhavitvyamalik we discussed about having something like
```python
from datasets import load_dataset_card

dataset_card = load_dataset_card("squad")
print(dataset_card.metadata.pretty_name)
# Stanford Question Answering Dataset (SQuAD)
print(dataset_card.metadata.languages)
# ["en"]

```
What do you think ?

I don't know if you already have a way to load the model tags in `transformers` but we can agree on the API to have something consistent.

Also note that the pretty name would only be used to show users something prettier than a dataset id, but in the end the source of truth will stay the dataset id (here `squad`). That works for me! maybe use the hub-backed dataset_info method? (so there's only one parser of README.md metadata)? What dataset_info method are you talking about @julien-c ? In `huggingface_hub` I can only see `model_info`. hmm the equivalent method in `datasets` (which could go into `huggingface_hub` at some point) Indeed, this info can now be fetched with `huggingface_hub.dataset_info`, so I think we can close this issue.
It would be super nice to have an API to get some metadata of the dataset from the name and args passed to `load_dataset`. This way we could programmatically infer the language and the name of a dataset when creating model cards automatically in the Transformers examples scripts.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/2347/reactions', 'total_count': 2, '+1': 2, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}