[Feature] Keep the list of labels of a dataset as metadata
{'login': 'jplu', 'id': 959590, 'node_id': 'MDQ6VXNlcjk1OTU5MA==', 'avatar_url': 'https://avatars.githubusercontent.com/u/959590?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/jplu', 'html_url': 'https://github.com/jplu', 'followers_url': 'https://api.github.com/users/jplu/followers', 'following_url': 'https://api.github.com/users/jplu/following{/other_user}', 'gists_url': 'https://api.github.com/users/jplu/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/jplu/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/jplu/subscriptions', 'organizations_url': 'https://api.github.com/users/jplu/orgs', 'repos_url': 'https://api.github.com/users/jplu/repos', 'events_url': 'https://api.github.com/users/jplu/events{/privacy}', 'received_events_url': 'https://api.github.com/users/jplu/received_events', 'type': 'User', 'site_admin': False}
[]
[]
['Yes! I see mostly two options for this:\r\n- a `Feature` approach like currently (but we might deprecate features)\r\n- wrapping in a smart way the Dictionary arrays of Arrow: https://arrow.apache.org/docs/python/data.html?highlight=dictionary%20encode#dictionary-arrays'
 'I would have a preference for the second bullet point.'
 'This should be accessible now as a feature in dataset.info.features (and even have the mapping methods).'
 'Perfect! Well done!!'
 'Hi,\r\nI hope we could get a better documentation.\r\nIt took me more than 1 hour to found this way to get the label information.'
 'Yes we are working on the doc right now, should be in the next release quite soon.']
It would be useful to keep the list of the labels of a dataset as metadata. Either directly in the `DatasetInfo` or in the Arrow metadata.
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/4/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}