update dataset
Browse files- 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=
|
43 |
-
description=f"tydiqa-GoldP
|
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(
|
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)
|