luozhouyang
commited on
Commit
•
17278ac
1
Parent(s):
09d032f
Fixed data file path
Browse files- dureader.py +6 -6
dureader.py
CHANGED
@@ -103,18 +103,18 @@ class DuReader(datasets.GeneratorBasedBuilder):
|
|
103 |
if self.config.name == "robust":
|
104 |
dl_dir = dl_manager.download_and_extract(self.config.data_url)
|
105 |
splits = _build(
|
106 |
-
train_files=os.path.join(dl_dir, "train.json"),
|
107 |
-
valid_files=os.path.join(dl_dir, "dev.json"),
|
108 |
-
test_files=os.path.join(dl_dir, "test.json"),
|
109 |
)
|
110 |
return splits
|
111 |
|
112 |
if self.config.name == "checklist":
|
113 |
dl_dir = dl_manager.download_and_extract(self.config.data_url)
|
114 |
splits = _build(
|
115 |
-
train_files=os.path.join(dl_dir, "train.json"),
|
116 |
-
valid_files=os.path.join(dl_dir, "dev.json"),
|
117 |
-
test_files=os.path.join(dl_dir, "test.json"),
|
118 |
)
|
119 |
return splits
|
120 |
|
|
|
103 |
if self.config.name == "robust":
|
104 |
dl_dir = dl_manager.download_and_extract(self.config.data_url)
|
105 |
splits = _build(
|
106 |
+
train_files=os.path.join(dl_dir, "dureader_robust-data", "train.json"),
|
107 |
+
valid_files=os.path.join(dl_dir, "dureader_robust-data", "dev.json"),
|
108 |
+
test_files=os.path.join(dl_dir, "dureader_robust-data", "test.json"),
|
109 |
)
|
110 |
return splits
|
111 |
|
112 |
if self.config.name == "checklist":
|
113 |
dl_dir = dl_manager.download_and_extract(self.config.data_url)
|
114 |
splits = _build(
|
115 |
+
train_files=os.path.join(dl_dir, "dureader_checklist-data", "train.json"),
|
116 |
+
valid_files=os.path.join(dl_dir, "dureader_checklist-data", "dev.json"),
|
117 |
+
test_files=os.path.join(dl_dir, "dureader_checklist-data", "test.json"),
|
118 |
)
|
119 |
return splits
|
120 |
|