Problem deciphering Squad Entry definition #2785
-
As part of allenai/allennlp#5095 I am working on using this(datasets)library in AllenNLP with better ease. When doing the same with SQUAD, train split I am coming across a problem. The definition for the 'answers' field looks as follows
But the definition looks as below
I am having two problems with it.
Not sure if the data modeling should be changed or the features specification should be changed to match it. cc: @albertvillanova Starting this discussion for help with understanding the same. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Abhishek-P, thanks for your question. Please, bear in mind that due to legacy compatibility with TensorFlow Datasets, the You have the explanation about this in our docs, where indeed we explicitly show the SQuAD dataset as an example: Adding dataset metadata
|
Beta Was this translation helpful? Give feedback.
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