Skip to content

Problem deciphering Squad Entry definition #2785

Closed Answered by albertvillanova
Abhishek-P asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Abhishek-P, thanks for your question.

Please, bear in mind that due to legacy compatibility with TensorFlow Datasets, the Sequence feature with an inner dictionary is automatically converted into a dictionary of lists.

You have the explanation about this in our docs, where indeed we explicitly show the SQuAD dataset as an example: Adding dataset metadata

One specific behavior here is the fact that the Sequence field in "answers" is given a dictionary of sub-fields. As mentioned in the above note, in this case, this feature is actually converted into a dictionary of lists (instead of the list of dictionary that we read in the feature here).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Abhishek-P
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants