khalidalt commited on
Commit
0142e55
1 Parent(s): 24aa7a8

Update tydiqa-goldp.py

Browse files
Files changed (1) hide show
  1. tydiqa-goldp.py +7 -6
tydiqa-goldp.py CHANGED
@@ -51,13 +51,14 @@ class tydiqa_GoldP(datasets.GeneratorBasedBuilder):
51
  features=datasets.Features(
52
  {
53
  "id": datasets.Value("string"),
54
- "title": datasets.Value("string"),
55
- "context": datasets.Value("string"),
56
- "question": datasets.Value("string"),
57
  "answers": datasets.features.Sequence(
58
  {
59
  "text": datasets.Value("string"),
60
- "answer_start": datasets.Value("int32"),
 
61
  }
62
  ),
63
  }
@@ -103,8 +104,8 @@ class tydiqa_GoldP(datasets.GeneratorBasedBuilder):
103
  for _id,row in enumerate(f):
104
  data = json.loads(row)
105
 
106
- print(data)
107
- assert False
108
 
109
  #idx = row["id"]
110
  yield _id, data
 
51
  features=datasets.Features(
52
  {
53
  "id": datasets.Value("string"),
54
+ "document_title": datasets.Value("string"),
55
+ "passage_text": datasets.Value("string"),
56
+ "question_text": datasets.Value("string"),
57
  "answers": datasets.features.Sequence(
58
  {
59
  "text": datasets.Value("string"),
60
+ "start_byte": datasets.Value("int32"),
61
+ "limit_byte": datasets.Value("int32"),
62
  }
63
  ),
64
  }
 
104
  for _id,row in enumerate(f):
105
  data = json.loads(row)
106
 
107
+ #print(data)
108
+ #assert False
109
 
110
  #idx = row["id"]
111
  yield _id, data