Add an API to access the language and pretty name of a dataset
MEMBER
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`).
2021-05-20T17:14:08Z
https://github.com/huggingface/datasets/issues/2347#issuecomment-845303936
https://api.github.com/repos/huggingface/datasets/issues/2347
MDEyOklzc3VlQ29tbWVudDg0NTMwMzkzNg==
https://api.github.com/repos/huggingface/datasets/issues/comments/845303936/reactions
2021-05-20T17:14:08Z
https://api.github.com/repos/huggingface/datasets/issues/comments/845303936
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
CONTRIBUTOR
That works for me!
2021-05-20T17:28:46Z
https://github.com/huggingface/datasets/issues/2347#issuecomment-845315505
https://api.github.com/repos/huggingface/datasets/issues/2347
MDEyOklzc3VlQ29tbWVudDg0NTMxNTUwNQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/845315505/reactions
2021-05-20T17:28:46Z
https://api.github.com/repos/huggingface/datasets/issues/comments/845315505
https://avatars.githubusercontent.com/u/35901082?v=4
https://api.github.com/users/sgugger/events{/privacy}
https://api.github.com/users/sgugger/followers
https://api.github.com/users/sgugger/following{/other_user}
https://api.github.com/users/sgugger/gists{/gist_id}
https://github.com/sgugger
sgugger
MDQ6VXNlcjM1OTAxMDgy
https://api.github.com/users/sgugger/orgs
https://api.github.com/users/sgugger/received_events
https://api.github.com/users/sgugger/repos
https://api.github.com/users/sgugger/starred{/owner}{/repo}
https://api.github.com/users/sgugger/subscriptions
User
https://api.github.com/users/sgugger
public
MEMBER
maybe use the hub-backed dataset_info method? (so there's only one parser of README.md metadata)?
2021-05-20T19:57:48Z
https://github.com/huggingface/datasets/issues/2347#issuecomment-845433165
https://api.github.com/repos/huggingface/datasets/issues/2347
MDEyOklzc3VlQ29tbWVudDg0NTQzMzE2NQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/845433165/reactions
2021-05-20T19:57:48Z
https://api.github.com/repos/huggingface/datasets/issues/comments/845433165
https://avatars.githubusercontent.com/u/326577?v=4
https://api.github.com/users/julien-c/events{/privacy}
https://api.github.com/users/julien-c/followers
https://api.github.com/users/julien-c/following{/other_user}
https://api.github.com/users/julien-c/gists{/gist_id}
https://github.com/julien-c
julien-c
MDQ6VXNlcjMyNjU3Nw==
https://api.github.com/users/julien-c/orgs
https://api.github.com/users/julien-c/received_events
https://api.github.com/users/julien-c/repos
https://api.github.com/users/julien-c/starred{/owner}{/repo}
https://api.github.com/users/julien-c/subscriptions
User
https://api.github.com/users/julien-c
public
MEMBER
What dataset_info method are you talking about @julien-c ? In `huggingface_hub` I can only see `model_info`.
2021-05-21T09:15:55Z
https://github.com/huggingface/datasets/issues/2347#issuecomment-845810592
https://api.github.com/repos/huggingface/datasets/issues/2347
MDEyOklzc3VlQ29tbWVudDg0NTgxMDU5Mg==
https://api.github.com/repos/huggingface/datasets/issues/comments/845810592/reactions
2021-05-21T09:15:55Z
https://api.github.com/repos/huggingface/datasets/issues/comments/845810592
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
MEMBER
hmm the equivalent method in `datasets` (which could go into `huggingface_hub` at some point)
2021-05-21T09:26:46Z
https://github.com/huggingface/datasets/issues/2347#issuecomment-845817359
https://api.github.com/repos/huggingface/datasets/issues/2347
MDEyOklzc3VlQ29tbWVudDg0NTgxNzM1OQ==
https://api.github.com/repos/huggingface/datasets/issues/comments/845817359/reactions
2021-05-21T09:26:46Z
https://api.github.com/repos/huggingface/datasets/issues/comments/845817359
https://avatars.githubusercontent.com/u/326577?v=4
https://api.github.com/users/julien-c/events{/privacy}
https://api.github.com/users/julien-c/followers
https://api.github.com/users/julien-c/following{/other_user}
https://api.github.com/users/julien-c/gists{/gist_id}
https://github.com/julien-c
julien-c
MDQ6VXNlcjMyNjU3Nw==
https://api.github.com/users/julien-c/orgs
https://api.github.com/users/julien-c/received_events
https://api.github.com/users/julien-c/repos
https://api.github.com/users/julien-c/starred{/owner}{/repo}
https://api.github.com/users/julien-c/subscriptions
User
https://api.github.com/users/julien-c
public
COLLABORATOR
Indeed, this info can now be fetched with `huggingface_hub.dataset_info`, so I think we can close this issue.
2022-10-05T17:16:53Z
https://github.com/huggingface/datasets/issues/2347#issuecomment-1268711974
https://api.github.com/repos/huggingface/datasets/issues/2347
IC_kwDODunzps5LnwIm
https://api.github.com/repos/huggingface/datasets/issues/comments/1268711974/reactions
2022-10-05T17:16:53Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1268711974
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
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.