zqwerty
commited on
Commit
•
f08aba0
1
Parent(s):
62f4783
update dataset_info
Browse files- CrossWOZ.py +3 -3
- dataset_infos.json +1 -1
CrossWOZ.py
CHANGED
@@ -203,11 +203,11 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
|
|
203 |
},
|
204 |
),
|
205 |
datasets.SplitGenerator(
|
206 |
-
name="
|
207 |
# These kwargs will be passed to _generate_examples
|
208 |
gen_kwargs={
|
209 |
"filepath": os.path.join(data_dir, "test.json"),
|
210 |
-
"split": "
|
211 |
},
|
212 |
),
|
213 |
]
|
@@ -267,7 +267,7 @@ class CrossWOZ(datasets.GeneratorBasedBuilder):
|
|
267 |
with open(filepath, encoding="utf-8") as f:
|
268 |
data = json.load(f)
|
269 |
for dialog_id, dialog in data.items():
|
270 |
-
if split == "
|
271 |
continue
|
272 |
messages = []
|
273 |
for turn in dialog["messages"]:
|
|
|
203 |
},
|
204 |
),
|
205 |
datasets.SplitGenerator(
|
206 |
+
name="challenge_CMT",
|
207 |
# These kwargs will be passed to _generate_examples
|
208 |
gen_kwargs={
|
209 |
"filepath": os.path.join(data_dir, "test.json"),
|
210 |
+
"split": "challenge_CMT",
|
211 |
},
|
212 |
),
|
213 |
]
|
|
|
267 |
with open(filepath, encoding="utf-8") as f:
|
268 |
data = json.load(f)
|
269 |
for dialog_id, dialog in data.items():
|
270 |
+
if split == "challenge_CMT" and dialog["type"] != "不独立多领域+交通":
|
271 |
continue
|
272 |
messages = []
|
273 |
for turn in dialog["messages"]:
|
dataset_infos.json
CHANGED
@@ -1 +1 @@
|
|
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"}}, "download_checksums": {"data.zip": {"num_bytes": 16338148, "checksum": "c70e36e62f501a77537dedbd0340afeec9899f7c24574505785e372ba25894c2"}}, "download_size": 16338148, "post_processing_size": null, "dataset_size":
|
|
|
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}}
|