Dictionary Feature
MEMBER
Hi @jordiae,

Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
```python
"list_of_dict_feature": [
    {
        "key1_in_dict": datasets.Value("string"),
        "key2_in_dict": datasets.Value("int32"),
        ...
    }
],
```

Feel free to re-open this issue if that does not work for your use case.
2022-04-28T17:04:58Z
https://github.com/huggingface/datasets/issues/4221#issuecomment-1112450028
https://api.github.com/repos/huggingface/datasets/issues/4221
IC_kwDODunzps5CTqPs
https://api.github.com/repos/huggingface/datasets/issues/comments/1112450028/reactions
2022-04-28T17:04:58Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1112450028
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
NONE
> Hi @jordiae,
> 
> Instead of the `Sequence` feature, you can use just a regular list: put the dict between `[` and `]`:
> 
> ```python
> "list_of_dict_feature": [
>     {
>         "key1_in_dict": datasets.Value("string"),
>         "key2_in_dict": datasets.Value("int32"),
>         ...
>     }
> ],
> ```
> 
> Feel free to re-open this issue if that does not work for your use case.

Thank you
2022-04-29T14:52:18Z
https://github.com/huggingface/datasets/issues/4221#issuecomment-1113414584
https://api.github.com/repos/huggingface/datasets/issues/4221
IC_kwDODunzps5CXVu4
https://api.github.com/repos/huggingface/datasets/issues/comments/1113414584/reactions
2022-04-29T14:52:18Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1113414584
https://avatars.githubusercontent.com/u/2944532?v=4
https://api.github.com/users/jordiae/events{/privacy}
https://api.github.com/users/jordiae/followers
https://api.github.com/users/jordiae/following{/other_user}
https://api.github.com/users/jordiae/gists{/gist_id}
https://github.com/jordiae
jordiae
MDQ6VXNlcjI5NDQ1MzI=
https://api.github.com/users/jordiae/orgs
https://api.github.com/users/jordiae/received_events
https://api.github.com/users/jordiae/repos
https://api.github.com/users/jordiae/starred{/owner}{/repo}
https://api.github.com/users/jordiae/subscriptions
User
https://api.github.com/users/jordiae
public
Hi, I'm trying to create the loading script for a dataset in which one feature is a list of dictionaries, which afaik doesn't fit very well the values and structures supported by Value and Sequence. Is there any suggested workaround, am I missing something?

Thank you in advance.