Commit
·
249a8d7
1
Parent(s):
365e70e
UPdate
Browse files- diplomat-dataset.py → DiPlomat.py +10 -10
- README.md +22 -1
diplomat-dataset.py → DiPlomat.py
RENAMED
@@ -82,8 +82,8 @@ class Diplomat(datasets.GeneratorBasedBuilder):
|
|
82 |
def _info(self):
|
83 |
# TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
|
84 |
# This is the name of the configuration selected in BUILDER_CONFIGS above
|
85 |
-
print("======================================")
|
86 |
-
print(os.getcwd())
|
87 |
if self.config.name == "PIR_first":
|
88 |
features = datasets.Features(
|
89 |
{
|
@@ -144,15 +144,15 @@ class Diplomat(datasets.GeneratorBasedBuilder):
|
|
144 |
urls = _URLS[self.config.name]
|
145 |
|
146 |
if self.config.name == "PIR_first":
|
147 |
-
data_dir = "./
|
148 |
elif self.config.name == "PIR_second":
|
149 |
-
data_dir = "./
|
150 |
elif self.config.name == "CQA":
|
151 |
-
data_dir = "./
|
152 |
elif self.config.name == "NLI_without_context":
|
153 |
-
data_dir = "./
|
154 |
elif self.config.name == "NLI_with_context":
|
155 |
-
data_dir = "./
|
156 |
else:
|
157 |
raise ValueError("Unknown configuration name selected")
|
158 |
|
@@ -162,7 +162,7 @@ class Diplomat(datasets.GeneratorBasedBuilder):
|
|
162 |
name=datasets.Split.TRAIN,
|
163 |
# These kwargs will be passed to _generate_examples
|
164 |
gen_kwargs={
|
165 |
-
"filepath": os.path.join(data_dir, "train.
|
166 |
"split": "train",
|
167 |
},
|
168 |
),
|
@@ -170,7 +170,7 @@ class Diplomat(datasets.GeneratorBasedBuilder):
|
|
170 |
name=datasets.Split.VALIDATION,
|
171 |
# These kwargs will be passed to _generate_examples
|
172 |
gen_kwargs={
|
173 |
-
"filepath": os.path.join(data_dir, "val.
|
174 |
"split": "val",
|
175 |
},
|
176 |
),
|
@@ -178,7 +178,7 @@ class Diplomat(datasets.GeneratorBasedBuilder):
|
|
178 |
name=datasets.Split.TEST,
|
179 |
# These kwargs will be passed to _generate_examples
|
180 |
gen_kwargs={
|
181 |
-
"filepath": os.path.join(data_dir, "test.
|
182 |
"split": "test"
|
183 |
},
|
184 |
),
|
|
|
82 |
def _info(self):
|
83 |
# TODO: This method specifies the datasets.DatasetInfo object which contains informations and typings for the dataset
|
84 |
# This is the name of the configuration selected in BUILDER_CONFIGS above
|
85 |
+
# print("======================================")
|
86 |
+
# print(os.getcwd())
|
87 |
if self.config.name == "PIR_first":
|
88 |
features = datasets.Features(
|
89 |
{
|
|
|
144 |
urls = _URLS[self.config.name]
|
145 |
|
146 |
if self.config.name == "PIR_first":
|
147 |
+
data_dir = "./DiPlomat/PIR_first_subtask_dataset"
|
148 |
elif self.config.name == "PIR_second":
|
149 |
+
data_dir = "./DiPlomat/PIR_second_subtask_dataset"
|
150 |
elif self.config.name == "CQA":
|
151 |
+
data_dir = "./DiPlomat/CQA_task_dataset"
|
152 |
elif self.config.name == "NLI_without_context":
|
153 |
+
data_dir = "./DiPlomat/NLI_dataset_without_context"
|
154 |
elif self.config.name == "NLI_with_context":
|
155 |
+
data_dir = "./DiPlomat/NLI_task_dataset"
|
156 |
else:
|
157 |
raise ValueError("Unknown configuration name selected")
|
158 |
|
|
|
162 |
name=datasets.Split.TRAIN,
|
163 |
# These kwargs will be passed to _generate_examples
|
164 |
gen_kwargs={
|
165 |
+
"filepath": os.path.join(data_dir, "train.jsonl"),
|
166 |
"split": "train",
|
167 |
},
|
168 |
),
|
|
|
170 |
name=datasets.Split.VALIDATION,
|
171 |
# These kwargs will be passed to _generate_examples
|
172 |
gen_kwargs={
|
173 |
+
"filepath": os.path.join(data_dir, "val.jsonl"),
|
174 |
"split": "val",
|
175 |
},
|
176 |
),
|
|
|
178 |
name=datasets.Split.TEST,
|
179 |
# These kwargs will be passed to _generate_examples
|
180 |
gen_kwargs={
|
181 |
+
"filepath": os.path.join(data_dir, "test.jsonl"),
|
182 |
"split": "test"
|
183 |
},
|
184 |
),
|
README.md
CHANGED
@@ -1,8 +1,29 @@
|
|
1 |
---
|
2 |
language:
|
3 |
- en
|
4 |
-
pretty_name: DiPlomat
|
5 |
license: cc-by-nc-sa-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
---
|
7 |
# The Dataset Presented Here is NOT Ready, please download from the [website](https://diplomat-dataset.github.io)
|
8 |
# DiPlomat
|
|
|
1 |
---
|
2 |
language:
|
3 |
- en
|
|
|
4 |
license: cc-by-nc-sa-4.0
|
5 |
+
pretty_name: DiPlomat
|
6 |
+
dataset_info:
|
7 |
+
config_name: PIR_first
|
8 |
+
features:
|
9 |
+
- name: text
|
10 |
+
sequence: string
|
11 |
+
- name: speaker
|
12 |
+
sequence: string
|
13 |
+
- name: correct_turn_number
|
14 |
+
sequence: int64
|
15 |
+
splits:
|
16 |
+
- name: train
|
17 |
+
num_bytes: 3442927
|
18 |
+
num_examples: 3341
|
19 |
+
- name: validation
|
20 |
+
num_bytes: 161433
|
21 |
+
num_examples: 168
|
22 |
+
- name: test
|
23 |
+
num_bytes: 687605
|
24 |
+
num_examples: 668
|
25 |
+
download_size: 0
|
26 |
+
dataset_size: 4291965
|
27 |
---
|
28 |
# The Dataset Presented Here is NOT Ready, please download from the [website](https://diplomat-dataset.github.io)
|
29 |
# DiPlomat
|