chompk commited on
Commit
c81df53
1 Parent(s): 7b169a8

update dataset

Browse files
Files changed (1) hide show
  1. tydiqa-goldp-th.py +3 -5
tydiqa-goldp-th.py CHANGED
@@ -39,11 +39,10 @@ _VERSION = datasets.Version("1.1.0", "")
39
  class tydiqa_GoldP_th(datasets.GeneratorBasedBuilder):
40
  BUILDER_CONFIGS = [
41
  datasets.BuilderConfig(
42
- name=lang,
43
- description=f"tydiqa-GoldP language {lang}",
44
  version=_VERSION,
45
  )
46
- for lang in _LANG
47
  ]
48
 
49
 
@@ -76,11 +75,10 @@ class tydiqa_GoldP_th(datasets.GeneratorBasedBuilder):
76
  # TODO(tydiqa): Downloads the data and defines the splits
77
  # dl_manager is a datasets.download.DownloadManager that can be used to
78
  # download and extract URLs
79
- language = self.config.name
80
  splits = {datasets.Split.TRAIN: "train", datasets.Split.VALIDATION: "dev"}
81
 
82
  data_urls = {
83
- split: _URL.format(language=language, split=splits[split]) for split in splits
84
  }
85
 
86
  dl_paths = dl_manager.download(data_urls)
 
39
  class tydiqa_GoldP_th(datasets.GeneratorBasedBuilder):
40
  BUILDER_CONFIGS = [
41
  datasets.BuilderConfig(
42
+ name="th",
43
+ description=f"tydiqa-GoldP TH",
44
  version=_VERSION,
45
  )
 
46
  ]
47
 
48
 
 
75
  # TODO(tydiqa): Downloads the data and defines the splits
76
  # dl_manager is a datasets.download.DownloadManager that can be used to
77
  # download and extract URLs
 
78
  splits = {datasets.Split.TRAIN: "train", datasets.Split.VALIDATION: "dev"}
79
 
80
  data_urls = {
81
+ split: _URL.format(split=splits[split]) for split in splits
82
  }
83
 
84
  dl_paths = dl_manager.download(data_urls)