Fix definition of dataset features in loading script
#7
by
albertvillanova
HF staff
- opened
- CrossWOZ.py +4 -4
- README.md +191 -1
- dataset_infos.json +0 -1
CrossWOZ.py
CHANGED
@@ -54,15 +54,15 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
|
|
54 |
"dialog_id": datasets.Value("string"),
|
55 |
"sys_id": datasets.Value("int32"),
|
56 |
"usr_id": datasets.Value("int32"),
|
57 |
-
"goal": datasets.Sequence(
|
58 |
"task description": datasets.Sequence(datasets.Value("string")),
|
59 |
"type": datasets.Value("string"),
|
60 |
"messages": datasets.Sequence(
|
61 |
{
|
62 |
"content": datasets.Value("string"),
|
63 |
"role": datasets.Value("string"),
|
64 |
-
"dialog_act": datasets.Sequence(
|
65 |
-
"user_state": datasets.Sequence(
|
66 |
"sys_state": {
|
67 |
"景点": {
|
68 |
"名称": datasets.Value("string"),
|
@@ -151,7 +151,7 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
|
|
151 |
},
|
152 |
}
|
153 |
),
|
154 |
-
"final_goal": datasets.Sequence(
|
155 |
}
|
156 |
)
|
157 |
return datasets.DatasetInfo(
|
|
|
54 |
"dialog_id": datasets.Value("string"),
|
55 |
"sys_id": datasets.Value("int32"),
|
56 |
"usr_id": datasets.Value("int32"),
|
57 |
+
"goal": datasets.Sequence([datasets.Value("string")]),
|
58 |
"task description": datasets.Sequence(datasets.Value("string")),
|
59 |
"type": datasets.Value("string"),
|
60 |
"messages": datasets.Sequence(
|
61 |
{
|
62 |
"content": datasets.Value("string"),
|
63 |
"role": datasets.Value("string"),
|
64 |
+
"dialog_act": datasets.Sequence([datasets.Value("string")]),
|
65 |
+
"user_state": datasets.Sequence([datasets.Value("string")]),
|
66 |
"sys_state": {
|
67 |
"景点": {
|
68 |
"名称": datasets.Value("string"),
|
|
|
151 |
},
|
152 |
}
|
153 |
),
|
154 |
+
"final_goal": datasets.Sequence([datasets.Value("string")]),
|
155 |
}
|
156 |
)
|
157 |
return datasets.DatasetInfo(
|
README.md
CHANGED
@@ -19,6 +19,197 @@ task_ids: []
|
|
19 |
pretty_name: CrossWOZ
|
20 |
tags:
|
21 |
- dialog-response-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
---
|
23 |
|
24 |
# Dataset Card for GEM/CrossWOZ
|
@@ -1516,4 +1707,3 @@ Model may not handle unknown values in the dialog
|
|
1516 |
<!-- scope: microscope -->
|
1517 |
Responses can be diverse, which is not captured by BLEU
|
1518 |
|
1519 |
-
|
|
|
19 |
pretty_name: CrossWOZ
|
20 |
tags:
|
21 |
- dialog-response-generation
|
22 |
+
dataset_info:
|
23 |
+
features:
|
24 |
+
- name: gem_id
|
25 |
+
dtype: string
|
26 |
+
- name: dialog_id
|
27 |
+
dtype: string
|
28 |
+
- name: sys_id
|
29 |
+
dtype: int32
|
30 |
+
- name: usr_id
|
31 |
+
dtype: int32
|
32 |
+
- name: goal
|
33 |
+
sequence: string
|
34 |
+
- name: task description
|
35 |
+
sequence: string
|
36 |
+
- name: type
|
37 |
+
dtype: string
|
38 |
+
- name: messages
|
39 |
+
sequence:
|
40 |
+
- name: content
|
41 |
+
dtype: string
|
42 |
+
- name: role
|
43 |
+
dtype: string
|
44 |
+
- name: dialog_act
|
45 |
+
sequence: string
|
46 |
+
- name: user_state
|
47 |
+
sequence: string
|
48 |
+
- name: sys_state
|
49 |
+
struct:
|
50 |
+
- name: 景点
|
51 |
+
struct:
|
52 |
+
- name: 名称
|
53 |
+
dtype: string
|
54 |
+
- name: 门票
|
55 |
+
dtype: string
|
56 |
+
- name: 游玩时间
|
57 |
+
dtype: string
|
58 |
+
- name: 评分
|
59 |
+
dtype: string
|
60 |
+
- name: 周边景点
|
61 |
+
dtype: string
|
62 |
+
- name: 周边餐馆
|
63 |
+
dtype: string
|
64 |
+
- name: 周边酒店
|
65 |
+
dtype: string
|
66 |
+
- name: selectedResults
|
67 |
+
sequence: string
|
68 |
+
- name: 餐馆
|
69 |
+
struct:
|
70 |
+
- name: 名称
|
71 |
+
dtype: string
|
72 |
+
- name: 推荐菜
|
73 |
+
dtype: string
|
74 |
+
- name: 人均消费
|
75 |
+
dtype: string
|
76 |
+
- name: 评分
|
77 |
+
dtype: string
|
78 |
+
- name: 周边景点
|
79 |
+
dtype: string
|
80 |
+
- name: 周边餐馆
|
81 |
+
dtype: string
|
82 |
+
- name: 周边酒店
|
83 |
+
dtype: string
|
84 |
+
- name: selectedResults
|
85 |
+
sequence: string
|
86 |
+
- name: 酒店
|
87 |
+
struct:
|
88 |
+
- name: 名称
|
89 |
+
dtype: string
|
90 |
+
- name: 酒店类型
|
91 |
+
dtype: string
|
92 |
+
- name: 酒店设施
|
93 |
+
dtype: string
|
94 |
+
- name: 价格
|
95 |
+
dtype: string
|
96 |
+
- name: 评分
|
97 |
+
dtype: string
|
98 |
+
- name: 周边景点
|
99 |
+
dtype: string
|
100 |
+
- name: 周边餐馆
|
101 |
+
dtype: string
|
102 |
+
- name: 周边酒店
|
103 |
+
dtype: string
|
104 |
+
- name: selectedResults
|
105 |
+
sequence: string
|
106 |
+
- name: 地铁
|
107 |
+
struct:
|
108 |
+
- name: 出发地
|
109 |
+
dtype: string
|
110 |
+
- name: 目的地
|
111 |
+
dtype: string
|
112 |
+
- name: selectedResults
|
113 |
+
sequence: string
|
114 |
+
- name: 出租
|
115 |
+
struct:
|
116 |
+
- name: 出发地
|
117 |
+
dtype: string
|
118 |
+
- name: 目的地
|
119 |
+
dtype: string
|
120 |
+
- name: selectedResults
|
121 |
+
sequence: string
|
122 |
+
- name: sys_state_init
|
123 |
+
struct:
|
124 |
+
- name: 景点
|
125 |
+
struct:
|
126 |
+
- name: 名称
|
127 |
+
dtype: string
|
128 |
+
- name: 门票
|
129 |
+
dtype: string
|
130 |
+
- name: 游玩时间
|
131 |
+
dtype: string
|
132 |
+
- name: 评分
|
133 |
+
dtype: string
|
134 |
+
- name: 周边景点
|
135 |
+
dtype: string
|
136 |
+
- name: 周边餐馆
|
137 |
+
dtype: string
|
138 |
+
- name: 周边酒店
|
139 |
+
dtype: string
|
140 |
+
- name: selectedResults
|
141 |
+
sequence: string
|
142 |
+
- name: 餐馆
|
143 |
+
struct:
|
144 |
+
- name: 名称
|
145 |
+
dtype: string
|
146 |
+
- name: 推荐菜
|
147 |
+
dtype: string
|
148 |
+
- name: 人均消费
|
149 |
+
dtype: string
|
150 |
+
- name: 评分
|
151 |
+
dtype: string
|
152 |
+
- name: 周边景点
|
153 |
+
dtype: string
|
154 |
+
- name: 周边餐馆
|
155 |
+
dtype: string
|
156 |
+
- name: 周边酒店
|
157 |
+
dtype: string
|
158 |
+
- name: selectedResults
|
159 |
+
sequence: string
|
160 |
+
- name: 酒店
|
161 |
+
struct:
|
162 |
+
- name: 名称
|
163 |
+
dtype: string
|
164 |
+
- name: 酒店类型
|
165 |
+
dtype: string
|
166 |
+
- name: 酒店设施
|
167 |
+
dtype: string
|
168 |
+
- name: 价格
|
169 |
+
dtype: string
|
170 |
+
- name: 评分
|
171 |
+
dtype: string
|
172 |
+
- name: 周边景点
|
173 |
+
dtype: string
|
174 |
+
- name: 周边餐馆
|
175 |
+
dtype: string
|
176 |
+
- name: 周边酒店
|
177 |
+
dtype: string
|
178 |
+
- name: selectedResults
|
179 |
+
sequence: string
|
180 |
+
- name: 地铁
|
181 |
+
struct:
|
182 |
+
- name: 出发地
|
183 |
+
dtype: string
|
184 |
+
- name: 目的地
|
185 |
+
dtype: string
|
186 |
+
- name: selectedResults
|
187 |
+
sequence: string
|
188 |
+
- name: 出租
|
189 |
+
struct:
|
190 |
+
- name: 出发地
|
191 |
+
dtype: string
|
192 |
+
- name: 目的地
|
193 |
+
dtype: string
|
194 |
+
- name: selectedResults
|
195 |
+
sequence: string
|
196 |
+
- name: final_goal
|
197 |
+
sequence: string
|
198 |
+
splits:
|
199 |
+
- name: train
|
200 |
+
num_bytes: 95331516
|
201 |
+
num_examples: 5012
|
202 |
+
- name: test
|
203 |
+
num_bytes: 9558009
|
204 |
+
num_examples: 500
|
205 |
+
- name: validation
|
206 |
+
num_bytes: 9499418
|
207 |
+
num_examples: 500
|
208 |
+
- name: challenge_CMT
|
209 |
+
num_bytes: 1620484
|
210 |
+
num_examples: 58
|
211 |
+
download_size: 16338148
|
212 |
+
dataset_size: 116009427
|
213 |
---
|
214 |
|
215 |
# Dataset Card for GEM/CrossWOZ
|
|
|
1707 |
<!-- scope: microscope -->
|
1708 |
Responses can be diverse, which is not captured by BLEU
|
1709 |
|
|
dataset_infos.json
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"default": {"description": "CrossWOZ is the first large-scale Chinese Cross-Domain Wizard-of-Oz task-oriented dataset. It contains 6K dialogue sessions and 102K utterances for 5 domains, including hotel, restaurant, attraction, metro, and taxi. Moreover, the corpus contains rich annotation of dialogue states and dialogue acts at both user and system sides.\n", "citation": "@article{zhu2020crosswoz,\n author = {Qi Zhu and Kaili Huang and Zheng Zhang and Xiaoyan Zhu and Minlie Huang},\n title = {Cross{WOZ}: A Large-Scale Chinese Cross-Domain Task-Oriented Dialogue Dataset},\n journal = {Transactions of the Association for Computational Linguistics},\n year = {2020}\n}\n", "homepage": "https://github.com/thu-coai/CrossWOZ", "license": "Apache License, Version 2.0", "features": {"gem_id": {"dtype": "string", "id": null, "_type": "Value"}, "dialog_id": {"dtype": "string", "id": null, "_type": "Value"}, "sys_id": {"dtype": "int32", "id": null, "_type": "Value"}, "usr_id": {"dtype": "int32", "id": null, "_type": "Value"}, "goal": {"feature": [{"dtype": "string", "id": null, "_type": "Value"}], "length": -1, "id": null, "_type": "Sequence"}, "task description": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "type": {"dtype": "string", "id": null, "_type": "Value"}, "messages": {"feature": {"content": {"dtype": "string", "id": null, "_type": "Value"}, "role": {"dtype": "string", "id": null, "_type": "Value"}, "dialog_act": {"feature": [{"dtype": "string", "id": null, "_type": "Value"}], "length": -1, "id": null, "_type": "Sequence"}, "user_state": {"feature": [{"dtype": "string", "id": null, "_type": "Value"}], "length": -1, "id": null, "_type": "Sequence"}, "sys_state": {"\u666f\u70b9": {"\u540d\u79f0": {"dtype": "string", "id": null, "_type": "Value"}, "\u95e8\u7968": {"dtype": "string", "id": null, "_type": "Value"}, "\u6e38\u73a9\u65f6\u95f4": {"dtype": "string", "id": null, "_type": "Value"}, "\u8bc4\u5206": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u666f\u70b9": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9910\u9986": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9152\u5e97": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "\u9910\u9986": {"\u540d\u79f0": {"dtype": "string", "id": null, "_type": "Value"}, "\u63a8\u8350\u83dc": {"dtype": "string", "id": null, "_type": "Value"}, "\u4eba\u5747\u6d88\u8d39": {"dtype": "string", "id": null, "_type": "Value"}, "\u8bc4\u5206": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u666f\u70b9": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9910\u9986": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9152\u5e97": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "\u9152\u5e97": {"\u540d\u79f0": {"dtype": "string", "id": null, "_type": "Value"}, "\u9152\u5e97\u7c7b\u578b": {"dtype": "string", "id": null, "_type": "Value"}, "\u9152\u5e97\u8bbe\u65bd": {"dtype": "string", "id": null, "_type": "Value"}, "\u4ef7\u683c": {"dtype": "string", "id": null, "_type": "Value"}, "\u8bc4\u5206": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u666f\u70b9": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9910\u9986": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9152\u5e97": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "\u5730\u94c1": {"\u51fa\u53d1\u5730": {"dtype": "string", "id": null, "_type": "Value"}, "\u76ee\u7684\u5730": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "\u51fa\u79df": {"\u51fa\u53d1\u5730": {"dtype": "string", "id": null, "_type": "Value"}, "\u76ee\u7684\u5730": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}}, "sys_state_init": {"\u666f\u70b9": {"\u540d\u79f0": {"dtype": "string", "id": null, "_type": "Value"}, "\u95e8\u7968": {"dtype": "string", "id": null, "_type": "Value"}, "\u6e38\u73a9\u65f6\u95f4": {"dtype": "string", "id": null, "_type": "Value"}, "\u8bc4\u5206": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u666f\u70b9": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9910\u9986": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9152\u5e97": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "\u9910\u9986": {"\u540d\u79f0": {"dtype": "string", "id": null, "_type": "Value"}, "\u63a8\u8350\u83dc": {"dtype": "string", "id": null, "_type": "Value"}, "\u4eba\u5747\u6d88\u8d39": {"dtype": "string", "id": null, "_type": "Value"}, "\u8bc4\u5206": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u666f\u70b9": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9910\u9986": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9152\u5e97": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "\u9152\u5e97": {"\u540d\u79f0": {"dtype": "string", "id": null, "_type": "Value"}, "\u9152\u5e97\u7c7b\u578b": {"dtype": "string", "id": null, "_type": "Value"}, "\u9152\u5e97\u8bbe\u65bd": {"dtype": "string", "id": null, "_type": "Value"}, "\u4ef7\u683c": {"dtype": "string", "id": null, "_type": "Value"}, "\u8bc4\u5206": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u666f\u70b9": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9910\u9986": {"dtype": "string", "id": null, "_type": "Value"}, "\u5468\u8fb9\u9152\u5e97": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "\u5730\u94c1": {"\u51fa\u53d1\u5730": {"dtype": "string", "id": null, "_type": "Value"}, "\u76ee\u7684\u5730": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}, "\u51fa\u79df": {"\u51fa\u53d1\u5730": {"dtype": "string", "id": null, "_type": "Value"}, "\u76ee\u7684\u5730": {"dtype": "string", "id": null, "_type": "Value"}, "selectedResults": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}}}}, "length": -1, "id": null, "_type": "Sequence"}, "final_goal": {"feature": [{"dtype": "string", "id": null, "_type": "Value"}], "length": -1, "id": null, "_type": "Sequence"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "cross_woz", "config_name": "default", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 99060478, "num_examples": 5012, "dataset_name": "cross_woz"}, "test": {"name": "test", "num_bytes": 9931589, "num_examples": 500, "dataset_name": "cross_woz"}, "validation": {"name": "validation", "num_bytes": 9871636, "num_examples": 500, "dataset_name": "cross_woz"}, "challenge_CMT": {"name": "challenge_CMT", "num_bytes": 1688138, "num_examples": 58, "dataset_name": "cross_woz"}}, "download_checksums": {"data.zip": {"num_bytes": 16338148, "checksum": "c70e36e62f501a77537dedbd0340afeec9899f7c24574505785e372ba25894c2"}}, "download_size": 16338148, "post_processing_size": null, "dataset_size": 120551841, "size_in_bytes": 136889989}}
|
|
|
|