Datasets:
dainis-boumber
commited on
Commit
•
6ce6509
1
Parent(s):
07b1a5c
path fix
Browse files
gdds.py
CHANGED
@@ -90,7 +90,7 @@ class GDDS(datasets.GeneratorBasedBuilder):
|
|
90 |
urls = {
|
91 |
"train": self.config.name+"/train.jsonl",
|
92 |
"test": self.config.name+"/test.jsonl",
|
93 |
-
"
|
94 |
}
|
95 |
data_dir = dl_manager.download_and_extract(urls)
|
96 |
|
@@ -99,7 +99,7 @@ class GDDS(datasets.GeneratorBasedBuilder):
|
|
99 |
name=datasets.Split.TRAIN,
|
100 |
# These kwargs will be passed to _generate_examples
|
101 |
gen_kwargs={
|
102 |
-
"filepath": os.path.join(data_dir, "train.jsonl"),
|
103 |
"split": "train",
|
104 |
},
|
105 |
),
|
@@ -107,15 +107,15 @@ class GDDS(datasets.GeneratorBasedBuilder):
|
|
107 |
name=datasets.Split.VALIDATION,
|
108 |
# These kwargs will be passed to _generate_examples
|
109 |
gen_kwargs={
|
110 |
-
"filepath": os.path.join(data_dir, "validation.jsonl"),
|
111 |
-
"split": "
|
112 |
},
|
113 |
),
|
114 |
datasets.SplitGenerator(
|
115 |
name=datasets.Split.TEST,
|
116 |
# These kwargs will be passed to _generate_examples
|
117 |
gen_kwargs={
|
118 |
-
"filepath": os.path.join(data_dir, "test.jsonl"),
|
119 |
"split": "test"
|
120 |
},
|
121 |
),
|
|
|
90 |
urls = {
|
91 |
"train": self.config.name+"/train.jsonl",
|
92 |
"test": self.config.name+"/test.jsonl",
|
93 |
+
"validation": self.config.name+"/validation.jsonl",
|
94 |
}
|
95 |
data_dir = dl_manager.download_and_extract(urls)
|
96 |
|
|
|
99 |
name=datasets.Split.TRAIN,
|
100 |
# These kwargs will be passed to _generate_examples
|
101 |
gen_kwargs={
|
102 |
+
"filepath": os.path.join(data_dir, self.config.name, "train.jsonl"),
|
103 |
"split": "train",
|
104 |
},
|
105 |
),
|
|
|
107 |
name=datasets.Split.VALIDATION,
|
108 |
# These kwargs will be passed to _generate_examples
|
109 |
gen_kwargs={
|
110 |
+
"filepath": os.path.join(data_dir, self.config.name, "validation.jsonl"),
|
111 |
+
"split": "validation",
|
112 |
},
|
113 |
),
|
114 |
datasets.SplitGenerator(
|
115 |
name=datasets.Split.TEST,
|
116 |
# These kwargs will be passed to _generate_examples
|
117 |
gen_kwargs={
|
118 |
+
"filepath": os.path.join(data_dir, self.config.name, "test.jsonl"),
|
119 |
"split": "test"
|
120 |
},
|
121 |
),
|