henry12348
commited on
Commit
•
08c1f68
1
Parent(s):
249a8d7
Update script
Browse files- DiPlomat.py +5 -13
- README.md +75 -1
DiPlomat.py
CHANGED
@@ -48,8 +48,11 @@ _LICENSE = "CC BY-NC-SA (Attribution-NonCommercial-ShareAlike)"
|
|
48 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
49 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
50 |
_URLS = {
|
51 |
-
"PIR_first": "https://huggingface.co/
|
52 |
-
"
|
|
|
|
|
|
|
53 |
}
|
54 |
|
55 |
|
@@ -59,17 +62,6 @@ class Diplomat(datasets.GeneratorBasedBuilder):
|
|
59 |
|
60 |
VERSION = datasets.Version("1.1.0")
|
61 |
|
62 |
-
# This is an example of a dataset with multiple configurations.
|
63 |
-
# If you don't want/need to define several sub-sets in your dataset,
|
64 |
-
# just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
|
65 |
-
|
66 |
-
# If you need to make complex sub-parts in the datasets with configurable options
|
67 |
-
# You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig
|
68 |
-
# BUILDER_CONFIG_CLASS = MyBuilderConfig
|
69 |
-
|
70 |
-
# You will be able to load one or the other configurations in the following list with
|
71 |
-
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
72 |
-
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
73 |
BUILDER_CONFIGS = [
|
74 |
datasets.BuilderConfig(name="PIR_first", version=VERSION, description="This part of dataset covers the Pragmatic Identification and Reasoning Task Subtask 1"),
|
75 |
datasets.BuilderConfig(name="PIR_second", version=VERSION, description="This part of dataset covers the Pragmatic Identification and Reasoning Task Subtask 2"),
|
|
|
48 |
# The HuggingFace Datasets library doesn't host the datasets but only points to the original files.
|
49 |
# This can be an arbitrary nested dict/list of URLs (see below in `_split_generators` method)
|
50 |
_URLS = {
|
51 |
+
"PIR_first": "https://huggingface.co/datasets/henry12348/DiPlomat/tree/main/PIR_first_subtask_dataset",
|
52 |
+
"PIR_second": "https://huggingface.co/datasets/henry12348/DiPlomat/tree/main/PIR_second_subtask_dataset",
|
53 |
+
"CQA": "https://huggingface.co/datasets/henry12348/DiPlomat/tree/main/CQA_task_dataset",
|
54 |
+
"NLI_without_context":"https://huggingface.co/datasets/henry12348/DiPlomat/tree/main/NLI_dataset_without_context",
|
55 |
+
"NLI_with_context":"https://huggingface.co/datasets/henry12348/DiPlomat/tree/main/NLI_task_dataset",
|
56 |
}
|
57 |
|
58 |
|
|
|
62 |
|
63 |
VERSION = datasets.Version("1.1.0")
|
64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
BUILDER_CONFIGS = [
|
66 |
datasets.BuilderConfig(name="PIR_first", version=VERSION, description="This part of dataset covers the Pragmatic Identification and Reasoning Task Subtask 1"),
|
67 |
datasets.BuilderConfig(name="PIR_second", version=VERSION, description="This part of dataset covers the Pragmatic Identification and Reasoning Task Subtask 2"),
|
README.md
CHANGED
@@ -4,7 +4,57 @@ language:
|
|
4 |
license: cc-by-nc-sa-4.0
|
5 |
pretty_name: DiPlomat
|
6 |
dataset_info:
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
features:
|
9 |
- name: text
|
10 |
sequence: string
|
@@ -24,6 +74,30 @@ dataset_info:
|
|
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
|
|
|
4 |
license: cc-by-nc-sa-4.0
|
5 |
pretty_name: DiPlomat
|
6 |
dataset_info:
|
7 |
+
- config_name: CQA
|
8 |
+
features:
|
9 |
+
- name: text
|
10 |
+
sequence: string
|
11 |
+
- name: speaker
|
12 |
+
sequence: string
|
13 |
+
- name: gold_statement
|
14 |
+
dtype: string
|
15 |
+
- name: questions
|
16 |
+
dtype: string
|
17 |
+
- name: answer
|
18 |
+
dtype: string
|
19 |
+
splits:
|
20 |
+
- name: train
|
21 |
+
num_bytes: 19805284
|
22 |
+
num_examples: 15585
|
23 |
+
- name: validation
|
24 |
+
num_bytes: 1959148
|
25 |
+
num_examples: 1559
|
26 |
+
- name: test
|
27 |
+
num_bytes: 2967746
|
28 |
+
num_examples: 2338
|
29 |
+
download_size: 0
|
30 |
+
dataset_size: 24732178
|
31 |
+
- config_name: NLI_with_context
|
32 |
+
features:
|
33 |
+
- name: dialogue
|
34 |
+
sequence: string
|
35 |
+
- name: speaker
|
36 |
+
sequence: string
|
37 |
+
- name: human answer
|
38 |
+
dtype: string
|
39 |
+
splits:
|
40 |
+
- name: train
|
41 |
+
num_bytes: 2977929
|
42 |
+
num_examples: 2551
|
43 |
+
download_size: 0
|
44 |
+
dataset_size: 2977929
|
45 |
+
- config_name: NLI_without_context
|
46 |
+
features:
|
47 |
+
- name: text
|
48 |
+
dtype: string
|
49 |
+
- name: hypothesis
|
50 |
+
dtype: string
|
51 |
+
splits:
|
52 |
+
- name: train
|
53 |
+
num_bytes: 1095335
|
54 |
+
num_examples: 2551
|
55 |
+
download_size: 0
|
56 |
+
dataset_size: 1095335
|
57 |
+
- config_name: PIR_first
|
58 |
features:
|
59 |
- name: text
|
60 |
sequence: string
|
|
|
74 |
num_examples: 668
|
75 |
download_size: 0
|
76 |
dataset_size: 4291965
|
77 |
+
- config_name: PIR_second
|
78 |
+
features:
|
79 |
+
- name: text
|
80 |
+
sequence: string
|
81 |
+
- name: speaker
|
82 |
+
sequence: string
|
83 |
+
- name: correct_turn_number
|
84 |
+
dtype: int64
|
85 |
+
- name: label
|
86 |
+
dtype: int64
|
87 |
+
- name: choice
|
88 |
+
sequence: string
|
89 |
+
splits:
|
90 |
+
- name: train
|
91 |
+
num_bytes: 9263111
|
92 |
+
num_examples: 5188
|
93 |
+
- name: validation
|
94 |
+
num_bytes: 399924
|
95 |
+
num_examples: 244
|
96 |
+
- name: test
|
97 |
+
num_bytes: 1890798
|
98 |
+
num_examples: 1062
|
99 |
+
download_size: 0
|
100 |
+
dataset_size: 11553833
|
101 |
---
|
102 |
# The Dataset Presented Here is NOT Ready, please download from the [website](https://diplomat-dataset.github.io)
|
103 |
# DiPlomat
|