saattrupdan commited on
Commit
1927935
·
1 Parent(s): c0f8253

fix: Set `id` column to string

Browse files
Files changed (1) hide show
  1. scandiqa.py +2 -2
scandiqa.py CHANGED
@@ -112,7 +112,7 @@ class ScandiQA(GeneratorBasedBuilder):
112
  def _info(self) -> DatasetInfo:
113
  features = Features(
114
  {
115
- "id": Value("int64"),
116
  "question": Value("string"),
117
  "answers": {
118
  "text": [Value("string")],
@@ -167,7 +167,7 @@ class ScandiQA(GeneratorBasedBuilder):
167
  for key, row in enumerate(f):
168
  data = json.loads(row)
169
  yield key, {
170
- "id": data["id"],
171
  "question": data["question"],
172
  "answers": {
173
  "text": [data["answer"]],
 
112
  def _info(self) -> DatasetInfo:
113
  features = Features(
114
  {
115
+ "id": Value("string"),
116
  "question": Value("string"),
117
  "answers": {
118
  "text": [Value("string")],
 
167
  for key, row in enumerate(f):
168
  data = json.loads(row)
169
  yield key, {
170
+ "id": str(data["id"]),
171
  "question": data["question"],
172
  "answers": {
173
  "text": [data["answer"]],