chompk commited on
Commit
333a47c
1 Parent(s): fa83233

update dataset

Browse files
Files changed (1) hide show
  1. tydiqa-goldp-th.py +6 -1
tydiqa-goldp-th.py CHANGED
@@ -49,7 +49,6 @@ class tydiqa_GoldP_th(datasets.GeneratorBasedBuilder):
49
  features=datasets.Features(
50
  {
51
  "id": datasets.Value("string"),
52
- "title": datasets.Value("string"),
53
  "context": datasets.Value("string"),
54
  "question": datasets.Value("string"),
55
  "answers": datasets.features.Sequence(
@@ -63,6 +62,12 @@ class tydiqa_GoldP_th(datasets.GeneratorBasedBuilder):
63
  homepage="https://github.com/google-research-datasets/tydiqa",
64
  citation=_CITATION,
65
  )
 
 
 
 
 
 
66
 
67
  def _split_generators(self, dl_manager):
68
  """Returns SplitGenerators."""
 
49
  features=datasets.Features(
50
  {
51
  "id": datasets.Value("string"),
 
52
  "context": datasets.Value("string"),
53
  "question": datasets.Value("string"),
54
  "answers": datasets.features.Sequence(
 
62
  homepage="https://github.com/google-research-datasets/tydiqa",
63
  citation=_CITATION,
64
  )
65
+
66
+ def _split_generators(self, dl_manager: datasets.DownloadManager) -> List[datasets.SplitGenerator]:
67
+ downloaded_files = dl_manager.download([f"data/shard_{i}.jsonl" for i in range(1024)])
68
+ return [
69
+ datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepaths": downloaded_files}),
70
+ ]
71
 
72
  def _split_generators(self, dl_manager):
73
  """Returns SplitGenerators."""