Upload 339 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitignore +2 -0
- CODEOWNERS +2 -0
- CODE_OF_CONDUCT.md +105 -0
- Dataset_Stats.csv +87 -0
- LICENSE.txt +207 -0
- README.md +152 -0
- SECURITY.md +7 -0
- code/openai_dialog_quality_evaluation.py +101 -0
- code/preprocess_data_DialSum.py +614 -0
- code/preprocess_data_KG.py +368 -0
- code/preprocess_data_OD.py +574 -0
- code/preprocess_data_TOD.py +0 -0
- code/utils/constant.py +55 -0
- code/utils/constant_tod.py +56 -0
- code/utils/domain_mapping.py +238 -0
- conversational-recommendation-dialogues/DuRecDial-2.0/LICENSE.txt +201 -0
- conversational-recommendation-dialogues/DuRecDial-2.0/README.md +75 -0
- conversational-recommendation-dialogues/DuRecDial-2.0/converted_examples.json +998 -0
- conversational-recommendation-dialogues/DuRecDial-2.0/original_examples.json +648 -0
- conversational-recommendation-dialogues/OpenDialKG/README.md +60 -0
- conversational-recommendation-dialogues/OpenDialKG/converted_examples.json +450 -0
- conversational-recommendation-dialogues/OpenDialKG/original_examples.json +27 -0
- conversational-recommendation-dialogues/README.md +79 -0
- conversational-recommendation-dialogues/Redial/converted_examples.json +954 -0
- conversational-recommendation-dialogues/Redial/original_examples.json +848 -0
- conversational-recommendation-dialogues/SalesBot/README.md +57 -0
- conversational-recommendation-dialogues/SalesBot/converted_examples.json +449 -0
- conversational-recommendation-dialogues/SalesBot/original_examples.json +156 -0
- conversational-recommendation-dialogues/SalesBot/otgy.json +8 -0
- dialogstudio.py +284 -0
- dialogue-summarization/AMI/README.md +27 -0
- dialogue-summarization/AMI/converted_examples.json +0 -0
- dialogue-summarization/AMI/license.md +3 -0
- dialogue-summarization/AMI/original_examples.json +0 -0
- dialogue-summarization/CRD3/LICENSE.txt +427 -0
- dialogue-summarization/CRD3/README.md +142 -0
- dialogue-summarization/CRD3/converted_examples.json +0 -0
- dialogue-summarization/CRD3/original_examples.json +0 -0
- dialogue-summarization/ConvoSumm/LICENSE +427 -0
- dialogue-summarization/ConvoSumm/README.md +28 -0
- dialogue-summarization/ConvoSumm/converted_examples.json +52 -0
- dialogue-summarization/ConvoSumm/original_examples.json +27 -0
- dialogue-summarization/DialogSum/LICENSE +21 -0
- dialogue-summarization/DialogSum/README.md +63 -0
- dialogue-summarization/DialogSum/converted_examples.json +316 -0
- dialogue-summarization/DialogSum/original_examples.json +32 -0
- dialogue-summarization/ECTSum/README.md +62 -0
- dialogue-summarization/ECTSum/converted_examples.json +0 -0
- dialogue-summarization/ECTSum/original_examples.json +161 -0
- dialogue-summarization/ICSI/README.md +22 -0
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
.DS_Store
|
2 |
+
Icon?
|
CODEOWNERS
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
# Comment line immediately above ownership line is reserved for related other information. Please be careful while editing.
|
2 |
+
#ECCN:Open Source
|
CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Salesforce Open Source Community Code of Conduct
|
2 |
+
|
3 |
+
## About the Code of Conduct
|
4 |
+
|
5 |
+
Equality is a core value at Salesforce. We believe a diverse and inclusive
|
6 |
+
community fosters innovation and creativity, and are committed to building a
|
7 |
+
culture where everyone feels included.
|
8 |
+
|
9 |
+
Salesforce open-source projects are committed to providing a friendly, safe, and
|
10 |
+
welcoming environment for all, regardless of gender identity and expression,
|
11 |
+
sexual orientation, disability, physical appearance, body size, ethnicity, nationality,
|
12 |
+
race, age, religion, level of experience, education, socioeconomic status, or
|
13 |
+
other similar personal characteristics.
|
14 |
+
|
15 |
+
The goal of this code of conduct is to specify a baseline standard of behavior so
|
16 |
+
that people with different social values and communication styles can work
|
17 |
+
together effectively, productively, and respectfully in our open source community.
|
18 |
+
It also establishes a mechanism for reporting issues and resolving conflicts.
|
19 |
+
|
20 |
+
All questions and reports of abusive, harassing, or otherwise unacceptable behavior
|
21 |
+
in a Salesforce open-source project may be reported by contacting the Salesforce
|
22 |
+
Open Source Conduct Committee at [email protected].
|
23 |
+
|
24 |
+
## Our Pledge
|
25 |
+
|
26 |
+
In the interest of fostering an open and welcoming environment, we as
|
27 |
+
contributors and maintainers pledge to making participation in our project and
|
28 |
+
our community a harassment-free experience for everyone, regardless of gender
|
29 |
+
identity and expression, sexual orientation, disability, physical appearance,
|
30 |
+
body size, ethnicity, nationality, race, age, religion, level of experience, education,
|
31 |
+
socioeconomic status, or other similar personal characteristics.
|
32 |
+
|
33 |
+
## Our Standards
|
34 |
+
|
35 |
+
Examples of behavior that contributes to creating a positive environment
|
36 |
+
include:
|
37 |
+
|
38 |
+
* Using welcoming and inclusive language
|
39 |
+
* Being respectful of differing viewpoints and experiences
|
40 |
+
* Gracefully accepting constructive criticism
|
41 |
+
* Focusing on what is best for the community
|
42 |
+
* Showing empathy toward other community members
|
43 |
+
|
44 |
+
Examples of unacceptable behavior by participants include:
|
45 |
+
|
46 |
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
47 |
+
advances
|
48 |
+
* Personal attacks, insulting/derogatory comments, or trolling
|
49 |
+
* Public or private harassment
|
50 |
+
* Publishing, or threatening to publish, others' private information—such as
|
51 |
+
a physical or electronic address—without explicit permission
|
52 |
+
* Other conduct which could reasonably be considered inappropriate in a
|
53 |
+
professional setting
|
54 |
+
* Advocating for or encouraging any of the above behaviors
|
55 |
+
|
56 |
+
## Our Responsibilities
|
57 |
+
|
58 |
+
Project maintainers are responsible for clarifying the standards of acceptable
|
59 |
+
behavior and are expected to take appropriate and fair corrective action in
|
60 |
+
response to any instances of unacceptable behavior.
|
61 |
+
|
62 |
+
Project maintainers have the right and responsibility to remove, edit, or
|
63 |
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
64 |
+
that are not aligned with this Code of Conduct, or to ban temporarily or
|
65 |
+
permanently any contributor for other behaviors that they deem inappropriate,
|
66 |
+
threatening, offensive, or harmful.
|
67 |
+
|
68 |
+
## Scope
|
69 |
+
|
70 |
+
This Code of Conduct applies both within project spaces and in public spaces
|
71 |
+
when an individual is representing the project or its community. Examples of
|
72 |
+
representing a project or community include using an official project email
|
73 |
+
address, posting via an official social media account, or acting as an appointed
|
74 |
+
representative at an online or offline event. Representation of a project may be
|
75 |
+
further defined and clarified by project maintainers.
|
76 |
+
|
77 |
+
## Enforcement
|
78 |
+
|
79 |
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
80 |
+
reported by contacting the Salesforce Open Source Conduct Committee
|
81 |
+
at [email protected]. All complaints will be reviewed and investigated
|
82 |
+
and will result in a response that is deemed necessary and appropriate to the
|
83 |
+
circumstances. The committee is obligated to maintain confidentiality with
|
84 |
+
regard to the reporter of an incident. Further details of specific enforcement
|
85 |
+
policies may be posted separately.
|
86 |
+
|
87 |
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
88 |
+
faith may face temporary or permanent repercussions as determined by other
|
89 |
+
members of the project's leadership and the Salesforce Open Source Conduct
|
90 |
+
Committee.
|
91 |
+
|
92 |
+
## Attribution
|
93 |
+
|
94 |
+
This Code of Conduct is adapted from the [Contributor Covenant][contributor-covenant-home],
|
95 |
+
version 1.4, available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html.
|
96 |
+
It includes adaptions and additions from [Go Community Code of Conduct][golang-coc],
|
97 |
+
[CNCF Code of Conduct][cncf-coc], and [Microsoft Open Source Code of Conduct][microsoft-coc].
|
98 |
+
|
99 |
+
This Code of Conduct is licensed under the [Creative Commons Attribution 3.0 License][cc-by-3-us].
|
100 |
+
|
101 |
+
[contributor-covenant-home]: https://www.contributor-covenant.org (https://www.contributor-covenant.org/)
|
102 |
+
[golang-coc]: https://golang.org/conduct
|
103 |
+
[cncf-coc]: https://github.com/cncf/foundation/blob/master/code-of-conduct.md
|
104 |
+
[microsoft-coc]: https://opensource.microsoft.com/codeofconduct/
|
105 |
+
[cc-by-3-us]: https://creativecommons.org/licenses/by/3.0/us/
|
Dataset_Stats.csv
ADDED
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Category,Data_name,Index,Year,License,Train,Validation,Test,Total
|
2 |
+
Natural Language Understanding,ATIS,1,Speed and NLP 1990,"GNU General Public License, version 2",4478,500,893,5871
|
3 |
+
Natural Language Understanding,ATIS-NER,2,Speed and NLP 1990,"GNU General Public License, version 2",4478,500,893,5871
|
4 |
+
Natural Language Understanding,BANKING77,3,ACL 2020 NLP4ConvAI,CC BY 4.0,8622,1540,3080,13242
|
5 |
+
Natural Language Understanding,BANKING77-OOS,4,ACL 2020 NLP4ConvAI,CC BY 4.0,5905,1506,2000,9411
|
6 |
+
Natural Language Understanding,CLINC-Single-Domain-OOS-banking,5,EMNLP 2020,CC BY 3.0,500,500,500,1500
|
7 |
+
Natural Language Understanding,CLINC-Single-Domain-OOS-credit_cards,6,EMNLP 2021,CC BY 3.0,500,500,500,1500
|
8 |
+
Natural Language Understanding,CLINC150,7,EMNLP 2019,CC BY 3.0,15000,3000,4500,22500
|
9 |
+
Natural Language Understanding,DSTC8-SGD,8,ACL 2020,CC BY-SA 4.0,1402,0,481,1883
|
10 |
+
Natural Language Understanding,HWU64,9,IWSDS 2019,CC BY 4.0,8954,1076,1076,11106
|
11 |
+
Natural Language Understanding,MIT-Movie,10,ICASSP 2013,BSD license,17590,0,4395,21985
|
12 |
+
Natural Language Understanding,MIT-Restaurant,11,ICASSP 2014,BSD license,7660,0,1521,9181
|
13 |
+
Natural Language Understanding,RESTAURANTS8K,12,ACL 2020,CC BY 4.0,4613,0,2379,6992
|
14 |
+
Natural Language Understanding,SNIPS,13,ArXiv 2018,Apache License 2.0,13084,700,700,14484
|
15 |
+
Natural Language Understanding,SNIPS-NER,14,ArXiv 2018,Apache License 2.0,13084,700,700,14484
|
16 |
+
Natural Language Understanding,TOP,15,EMNLP 2018,CC-BY-SA,31279,0,9042,40321
|
17 |
+
Natural Language Understanding,TOP-NER,16,EMNLP 2018,CC-BY-SA,31279,0,9042,40321
|
18 |
+
Task Oriented Dialogue,ABCD,17,NAACL 2021,MIT License,8034,1004,1004,10042
|
19 |
+
Task Oriented Dialogue,AirDialogue,18,EMNLP 2018,Apache License Version 2.0,321459,40363,0,361822
|
20 |
+
Task Oriented Dialogue,BiTOD,19,NeurIPS 2021 Workshop,Apache License 2.0,2952,295,442,3689
|
21 |
+
Task Oriented Dialogue,CaSiNo,20,NAACL 2021,CC BY 4.0,900,30,100,1030
|
22 |
+
Task Oriented Dialogue,CraigslistBargains,21,EMNLP 2018,MIT License,4000,570,803,5373
|
23 |
+
Task Oriented Dialogue,Disambiguation,22,NAACL 2022,MiT License,8433,999,1000,10432
|
24 |
+
Task Oriented Dialogue,DSTC2-Clean,23,ACL 2018,"GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007",1612,506,1117,3235
|
25 |
+
Task Oriented Dialogue,FRAMES,24,SIGDIAL 2017,"GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007",1329,0,40,1369
|
26 |
+
Task Oriented Dialogue,GECOR,25,EMNLP 2019,CC BY 4.0,676,0,0,676
|
27 |
+
Task Oriented Dialogue,HDSA-Dialog,26,ACL 2019,MIT License,8438,1000,1000,10438
|
28 |
+
Task Oriented Dialogue,KETOD,27,NAACL 2022,MiT License,4247,545,532,5324
|
29 |
+
Task Oriented Dialogue,KVRET,28,SIGDIAL 2017,No License,2425,302,304,3031
|
30 |
+
Task Oriented Dialogue,MetaLWOZ,29,Sigdial 2019,MICROSOFT RESEARCH LICENSE TERMS,37884,0,2319,40203
|
31 |
+
Task Oriented Dialogue,MS-DC,30,Arxiv 2018,MICROSOFT RESEARCH LICENSE TERMS,10000,0,0,10000
|
32 |
+
Task Oriented Dialogue,MuDoCo,31,LREC 2020,Attribution-NonCommercial 4.0 International,6058,691,749,7498
|
33 |
+
Task Oriented Dialogue,MulDoGO,32,EMNLP 2019,Community Data License Agreement – Permissive – Version 1.0,59939,1150,2319,63408
|
34 |
+
Task Oriented Dialogue,MultiWOZ_2.1,33,LREC 2020,MiT License,8434,999,1000,10433
|
35 |
+
Task Oriented Dialogue,MULTIWOZ2_2,34,ACL NLP4CONV AI,Mit License,8437,1000,1000,10437
|
36 |
+
Task Oriented Dialogue,SGD,35,AAAI 2020,CC BY-SA 4.0,16142,2482,4201,22825
|
37 |
+
Task Oriented Dialogue,SimJointGEN,36,NAACL 2020,No license,100000,10000,10000,120000
|
38 |
+
Task Oriented Dialogue,SimJointMovie,37,NAACL 2018,No license,384,120,264,768
|
39 |
+
Task Oriented Dialogue,SimJointRestaurant,38,NAACL 2019,No license,1116,349,775,2240
|
40 |
+
Task Oriented Dialogue,STAR,39,CL 2020,MIT License,6652,0,0,6652
|
41 |
+
Task Oriented Dialogue,Taskmaster1,40,EMNLP 2019,Attribution 4.0 International (CC BY 4.0),6170,769,769,7708
|
42 |
+
Task Oriented Dialogue,Taskmaster2,41,Github 2020,Creative Commons Attribution 4.0 License (CC BY 4.0),17304,0,0,17304
|
43 |
+
Task Oriented Dialogue,Taskmaster3,42,Github 2020,Creative Commons Attribution 4.0 License (CC BY 4.0),22724,17019,17903,57646
|
44 |
+
Task Oriented Dialogue,WOZ2_0,43,ACL 2017,Apache License 2.0,600,200,400,1200
|
45 |
+
Dialogue Summarization,AMI,44,ICASSP 2005,Creative Commons Attribution 4.0 International Licence (CC BY 4.0),117054,0,0,117054
|
46 |
+
Dialogue Summarization,CRD3,45,ACL2021,CC BY-SA 4.0,108,16,16,140
|
47 |
+
Dialogue Summarization,DialogSum,46,ACL 2020,CC BY-SA 4.0,12460,500,500,13460
|
48 |
+
Dialogue Summarization,ECTSum,47,Findings of ACL21,MIT License,1681,249,495,2425
|
49 |
+
Dialogue Summarization,ICSI,48,EMNLP 2022,No License,110254,0,0,110254
|
50 |
+
Dialogue Summarization,MediaSum,49,ICASSP 2005, CC BY 4.0,443596,10000,10000,463596
|
51 |
+
Dialogue Summarization,QMSum,50,NAACL 2021,No license,162,35,35,232
|
52 |
+
Dialogue Summarization,SAMSum,51,NAACL 2021,non-commercial licence: CC BY-NC-ND 4.0,14732,818,819,16369
|
53 |
+
Dialogue Summarization,TweetSumm,52,EMNLP19,Creative Commons Zero v1.0 Universal,879,110,110,1099
|
54 |
+
Dialogue Summarization,ConvoSumm,53,ACL 2022,No License,821,200,1000,2021
|
55 |
+
Dialogue Summarization,SummScreen_ForeverDreaming,54,ACL 2022,No License,3673,338,337,4348
|
56 |
+
Dialogue Summarization,SummScreen_TVMegaSite,55,COLING20,Creative Commons Legal CodeCC0 1.0 Universal,18915,1795,1793,22503
|
57 |
+
Conversational Recommendation,Redial,56,EMNLP 2021,"Apache License 2.0,",10006,0,1342,11348
|
58 |
+
Conversational Recommendation,INSPIRED,57,EMNLP 2020,No License,800,100,100,1000
|
59 |
+
Conversational Recommendation,DuRecDial-2.0,58,ACL 2019,CC-BY-NC-4.0,5678,811,1752,8241
|
60 |
+
Conversational Recommendation,OpenDialKG,59,NeurIPS 2018,CC BY 4.0,12302,0,0,12302
|
61 |
+
Conversational Recommendation,SalesBot,60,ACL 2022,No License,10277,0,0,10277
|
62 |
+
Open Domain Dialogue,AntiScam,61,AAAI 2020,MiT License,220,0,0,220
|
63 |
+
Open Domain Dialogue,chitchat-dataset,62,ICAART 2020,MiT License,4018,0,0,4018
|
64 |
+
Open Domain Dialogue,ConvAI2,63,DSTC 2019,Apache 2.0,2423,0,0,2423
|
65 |
+
Open Domain Dialogue,Empathetic,64,ACL 2019,cc-by-nc-4.0,17802,2761,2541,23104
|
66 |
+
Open Domain Dialogue,HH-RLHF,65,Arxiv 2022,MiT License,160800,0,8552,169352
|
67 |
+
Open Domain Dialogue,PLACES3.5,66,EACL 2023,CC BY-NC 4.0,5591,0,0,5591
|
68 |
+
Open Domain Dialogue,Prosocial,67,EMNLP 2022,MiT License,42304,7132,8701,58137
|
69 |
+
Open Domain Dialogue,SODA,68,Arxiv 2023,Mit License,1191582,146346,148968,1486896
|
70 |
+
Knowledge Grounded Dialogue,CompWebQ,69,NAACL 2018,"GNU General Public License, version 2",27639,703,2816,31158
|
71 |
+
Knowledge Grounded Dialogue,CoQA,70,TACL 2019,MiT License,7199,500,0,7699
|
72 |
+
Knowledge Grounded Dialogue,CoSQL,71,EMNLP 2019,CC BY-SA 4.0,4318,586,0,4904
|
73 |
+
Knowledge Grounded Dialogue,DART,72,NAACL 2021,MIT License,62659,2768,5097,70524
|
74 |
+
Knowledge Grounded Dialogue,FeTaQA,73,TACL 2022,CC BY-SA 4.0,7326,1001,2003,10330
|
75 |
+
Knowledge Grounded Dialogue,GrailQA,74,WWW 2021,Apache License 2.0,44337,300,6463,51100
|
76 |
+
Knowledge Grounded Dialogue,HybridQA,75,EMNLP 2020,MIT License,62682,3466,0,66148
|
77 |
+
Knowledge Grounded Dialogue,MTOP,76,EACL 2021,CC BY-SA 4.0,15667,2235,4386,22288
|
78 |
+
Knowledge Grounded Dialogue,MultiModalQA,77,ICLR 2021,No License,15688,1501,0,17189
|
79 |
+
Knowledge Grounded Dialogue,SParC,78,ACL 2019,CC BY-SA 4.0,6064,844,0,6908
|
80 |
+
Knowledge Grounded Dialogue,Spider,79,EMNLP 2018,CC BY-SA 4.0,7000,1034,0,8034
|
81 |
+
Knowledge Grounded Dialogue,SQA,80,ACL 2017,CC BY-SA 4.0,4257,784,1025,6066
|
82 |
+
Knowledge Grounded Dialogue,ToTTo,81,EMNLP 2020,CC BY-SA 3.0,120761,7700,0,128461
|
83 |
+
Knowledge Grounded Dialogue,WebQSP,82,ACL 2016,No License,2673,309,1639,4621
|
84 |
+
Knowledge Grounded Dialogue,WikiSQL,83,ArXiv 2017,BSD 3-Clause License,56355,8421,15878,80654
|
85 |
+
Knowledge Grounded Dialogue,WikiTQ,84,ACL 2015,CC BY-SA 4.0,11321,2831,4344,18496
|
86 |
+
Knowledge Grounded Dialogue,wizard_of_internet,85,ACL 2022,CC BY 4.0,8614,0,503,9117
|
87 |
+
Knowledge Grounded Dialogue,wizard_of_wikipedia,86,ICLR 2019,CC BY 4.0,18430,967,968,20365
|
LICENSE.txt
ADDED
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Apache License Version 2.0
|
2 |
+
|
3 |
+
Copyright (c) 2023 Salesforce, Inc.
|
4 |
+
All rights reserved.
|
5 |
+
|
6 |
+
Apache License
|
7 |
+
Version 2.0, January 2004
|
8 |
+
http://www.apache.org/licenses/
|
9 |
+
|
10 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
11 |
+
|
12 |
+
1. Definitions.
|
13 |
+
|
14 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
15 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
16 |
+
|
17 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
18 |
+
the copyright owner that is granting the License.
|
19 |
+
|
20 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
21 |
+
other entities that control, are controlled by, or are under common
|
22 |
+
control with that entity. For the purposes of this definition,
|
23 |
+
"control" means (i) the power, direct or indirect, to cause the
|
24 |
+
direction or management of such entity, whether by contract or
|
25 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
26 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
27 |
+
|
28 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
29 |
+
exercising permissions granted by this License.
|
30 |
+
|
31 |
+
"Source" form shall mean the preferred form for making modifications,
|
32 |
+
including but not limited to software source code, documentation
|
33 |
+
source, and configuration files.
|
34 |
+
|
35 |
+
"Object" form shall mean any form resulting from mechanical
|
36 |
+
transformation or translation of a Source form, including but
|
37 |
+
not limited to compiled object code, generated documentation,
|
38 |
+
and conversions to other media types.
|
39 |
+
|
40 |
+
"Work" shall mean the work of authorship, whether in Source or
|
41 |
+
Object form, made available under the License, as indicated by a
|
42 |
+
copyright notice that is included in or attached to the work
|
43 |
+
(an example is provided in the Appendix below).
|
44 |
+
|
45 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
46 |
+
form, that is based on (or derived from) the Work and for which the
|
47 |
+
editorial revisions, annotations, elaborations, or other modifications
|
48 |
+
represent, as a whole, an original work of authorship. For the purposes
|
49 |
+
of this License, Derivative Works shall not include works that remain
|
50 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
51 |
+
the Work and Derivative Works thereof.
|
52 |
+
|
53 |
+
"Contribution" shall mean any work of authorship, including
|
54 |
+
the original version of the Work and any modifications or additions
|
55 |
+
to that Work or Derivative Works thereof, that is intentionally
|
56 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
57 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
58 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
59 |
+
means any form of electronic, verbal, or written communication sent
|
60 |
+
to the Licensor or its representatives, including but not limited to
|
61 |
+
communication on electronic mailing lists, source code control systems,
|
62 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
63 |
+
Licensor for the purpose of discussing and improving the Work, but
|
64 |
+
excluding communication that is conspicuously marked or otherwise
|
65 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
66 |
+
|
67 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
68 |
+
on behalf of whom a Contribution has been received by Licensor and
|
69 |
+
subsequently incorporated within the Work.
|
70 |
+
|
71 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
72 |
+
this License, each Contributor hereby grants to You a perpetual,
|
73 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
74 |
+
copyright license to reproduce, prepare Derivative Works of,
|
75 |
+
publicly display, publicly perform, sublicense, and distribute the
|
76 |
+
Work and such Derivative Works in Source or Object form.
|
77 |
+
|
78 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
79 |
+
this License, each Contributor hereby grants to You a perpetual,
|
80 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
81 |
+
(except as stated in this section) patent license to make, have made,
|
82 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
83 |
+
where such license applies only to those patent claims licensable
|
84 |
+
by such Contributor that are necessarily infringed by their
|
85 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
86 |
+
with the Work to which such Contribution(s) was submitted. If You
|
87 |
+
institute patent litigation against any entity (including a
|
88 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
89 |
+
or a Contribution incorporated within the Work constitutes direct
|
90 |
+
or contributory patent infringement, then any patent licenses
|
91 |
+
granted to You under this License for that Work shall terminate
|
92 |
+
as of the date such litigation is filed.
|
93 |
+
|
94 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
95 |
+
Work or Derivative Works thereof in any medium, with or without
|
96 |
+
modifications, and in Source or Object form, provided that You
|
97 |
+
meet the following conditions:
|
98 |
+
|
99 |
+
(a) You must give any other recipients of the Work or
|
100 |
+
Derivative Works a copy of this License; and
|
101 |
+
|
102 |
+
(b) You must cause any modified files to carry prominent notices
|
103 |
+
stating that You changed the files; and
|
104 |
+
|
105 |
+
(c) You must retain, in the Source form of any Derivative Works
|
106 |
+
that You distribute, all copyright, patent, trademark, and
|
107 |
+
attribution notices from the Source form of the Work,
|
108 |
+
excluding those notices that do not pertain to any part of
|
109 |
+
the Derivative Works; and
|
110 |
+
|
111 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
112 |
+
distribution, then any Derivative Works that You distribute must
|
113 |
+
include a readable copy of the attribution notices contained
|
114 |
+
within such NOTICE file, excluding those notices that do not
|
115 |
+
pertain to any part of the Derivative Works, in at least one
|
116 |
+
of the following places: within a NOTICE text file distributed
|
117 |
+
as part of the Derivative Works; within the Source form or
|
118 |
+
documentation, if provided along with the Derivative Works; or,
|
119 |
+
within a display generated by the Derivative Works, if and
|
120 |
+
wherever such third-party notices normally appear. The contents
|
121 |
+
of the NOTICE file are for informational purposes only and
|
122 |
+
do not modify the License. You may add Your own attribution
|
123 |
+
notices within Derivative Works that You distribute, alongside
|
124 |
+
or as an addendum to the NOTICE text from the Work, provided
|
125 |
+
that such additional attribution notices cannot be construed
|
126 |
+
as modifying the License.
|
127 |
+
|
128 |
+
You may add Your own copyright statement to Your modifications and
|
129 |
+
may provide additional or different license terms and conditions
|
130 |
+
for use, reproduction, or distribution of Your modifications, or
|
131 |
+
for any such Derivative Works as a whole, provided Your use,
|
132 |
+
reproduction, and distribution of the Work otherwise complies with
|
133 |
+
the conditions stated in this License.
|
134 |
+
|
135 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
136 |
+
any Contribution intentionally submitted for inclusion in the Work
|
137 |
+
by You to the Licensor shall be under the terms and conditions of
|
138 |
+
this License, without any additional terms or conditions.
|
139 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
140 |
+
the terms of any separate license agreement you may have executed
|
141 |
+
with Licensor regarding such Contributions.
|
142 |
+
|
143 |
+
6. Trademarks. This License does not grant permission to use the trade
|
144 |
+
names, trademarks, service marks, or product names of the Licensor,
|
145 |
+
except as required for reasonable and customary use in describing the
|
146 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
147 |
+
|
148 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
149 |
+
agreed to in writing, Licensor provides the Work (and each
|
150 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
151 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
152 |
+
implied, including, without limitation, any warranties or conditions
|
153 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
154 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
155 |
+
appropriateness of using or redistributing the Work and assume any
|
156 |
+
risks associated with Your exercise of permissions under this License.
|
157 |
+
|
158 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
159 |
+
whether in tort (including negligence), contract, or otherwise,
|
160 |
+
unless required by applicable law (such as deliberate and grossly
|
161 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
162 |
+
liable to You for damages, including any direct, indirect, special,
|
163 |
+
incidental, or consequential damages of any character arising as a
|
164 |
+
result of this License or out of the use or inability to use the
|
165 |
+
Work (including but not limited to damages for loss of goodwill,
|
166 |
+
work stoppage, computer failure or malfunction, or any and all
|
167 |
+
other commercial damages or losses), even if such Contributor
|
168 |
+
has been advised of the possibility of such damages.
|
169 |
+
|
170 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
171 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
172 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
173 |
+
or other liability obligations and/or rights consistent with this
|
174 |
+
License. However, in accepting such obligations, You may act only
|
175 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
176 |
+
of any other Contributor, and only if You agree to indemnify,
|
177 |
+
defend, and hold each Contributor harmless for any liability
|
178 |
+
incurred by, or claims asserted against, such Contributor by reason
|
179 |
+
of your accepting any such warranty or additional liability.
|
180 |
+
|
181 |
+
END OF TERMS AND CONDITIONS
|
182 |
+
|
183 |
+
APPENDIX: How to apply the Apache License to your work.
|
184 |
+
|
185 |
+
To apply the Apache License to your work, attach the following
|
186 |
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
187 |
+
replaced with your own identifying information. (Don't include
|
188 |
+
the brackets!) The text should be enclosed in the appropriate
|
189 |
+
comment syntax for the file format. We also recommend that a
|
190 |
+
file or class name and description of purpose be included on the
|
191 |
+
same "printed page" as the copyright notice for easier
|
192 |
+
identification within third-party archives.
|
193 |
+
|
194 |
+
Copyright {yyyy} {name of copyright owner}
|
195 |
+
|
196 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
197 |
+
you may not use this file except in compliance with the License.
|
198 |
+
You may obtain a copy of the License at
|
199 |
+
|
200 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
201 |
+
|
202 |
+
Unless required by applicable law or agreed to in writing, software
|
203 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
204 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
205 |
+
See the License for the specific language governing permissions and
|
206 |
+
limitations under the License.
|
207 |
+
|
README.md
ADDED
@@ -0,0 +1,152 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<p align="center">
|
2 |
+
<br>
|
3 |
+
<img src="figures/logo.png" width="510"/>
|
4 |
+
<br>
|
5 |
+
<!-- <p>
|
6 |
+
<div align="center"> -->
|
7 |
+
<a href="https://arxiv.org/abs/2307.10172" style="font-size:20px;">Paper</a>,
|
8 |
+
<a href="https://huggingface.co/datasets/Salesforce/dialogstudio" style="font-size:20px;">Huggingface</a>,
|
9 |
+
<a href="#model" style="font-size:20px;">Model</a>,
|
10 |
+
<a href="https://twitter.com/JianguoZhang3" style="font-size:20px">Twitter</a>
|
11 |
+
<!-- </div> -->
|
12 |
+
<p>
|
13 |
+
|
14 |
+
# DialogStudio: Towards Richest and Most Diverse Unified Dataset Collection and Instruction-Aware Models for Conversational AI
|
15 |
+
|
16 |
+
## News!
|
17 |
+
|
18 |
+
* [Initial Release] July 2023, we're thrilled to the initial release of the largest unified Dialog dataset collection. The full list of all available datasets is [here](./Dataset_Stats.csv).
|
19 |
+
|
20 |
+
|
21 |
+
## Contents
|
22 |
+
|
23 |
+
- [Introduction](#introduction)
|
24 |
+
- [Loading Data](#loading-data)
|
25 |
+
- [Datasets](#datasets)
|
26 |
+
- [Model](#model)
|
27 |
+
- [License](#license)
|
28 |
+
- [Citation](#citation)
|
29 |
+
|
30 |
+
## Introduction
|
31 |
+
|
32 |
+
<!-- Check [DialogStudio_datasets.csv](https://docs.google.com/spreadsheets/d/10U9I4GoHFTYxl3OlzbbV0gmXerMT9Itn2MZs8t6AIK0/edit#gid=461625820) for all supported datasets. -->
|
33 |
+
DialogStudio is a large collection and unified dialog datasets.
|
34 |
+
The figure below provides a summary of the general statistics associated with DialogStudio. DialogStudio unified each dataset while preserving its original information, and this aids in supporting research on both individual datasets and Large Language Model (LLM) training. The full list of all available datasets is [here](./Dataset_Stats.csv).
|
35 |
+
|
36 |
+
The data are downloadable through Huggingface as introduced in [Loading Data](#loading-data). We also provide examples for each dataset in this repo. For more granular and category-specific details, please refer to the individual folders corresponding to each category within the DialogStudio collection, e.g. [MULTIWOZ2_2](./task-oriented-dialogues/MULTIWOZ2_2/) dataset under the [task-oriented-dialogues](./task-oriented-dialogues/) category.
|
37 |
+
<p align="center">
|
38 |
+
<br>
|
39 |
+
<img src="figures/DialogStudio_Stats.png" width="730"/>
|
40 |
+
<br>
|
41 |
+
<p>
|
42 |
+
|
43 |
+
DialogStudio evaluates dialogue quality based on six critical criteria, namely Understanding, Relevance, Correctness, Coherence, Completeness, and Overall Quality. Each criterion is scored on a scale of 1 to 5, with the highest scores reserved for exceptional dialogues.
|
44 |
+
|
45 |
+
Given the vast number of datasets incorporated into DialogStudio, we utilized 'gpt-3.5-turbo' to assess 33 distinct datasets. The corresponding script used for this evaluation can be accessed through the [link](https://github.com/salesforce/DialogStudio/blob/main/code/openai_dialog_quality_evaluation.py).
|
46 |
+
|
47 |
+
The results of our dialogue quality assessment are presented below. We intend to release evaluation scores for individually selected dialogues in the upcoming period.
|
48 |
+
<p align="center">
|
49 |
+
<br>
|
50 |
+
<img src="figures/DialogStudio_Quality_Scores.png" width="700"/>
|
51 |
+
<br>
|
52 |
+
<p>
|
53 |
+
|
54 |
+
|
55 |
+
## Loading Data
|
56 |
+
|
57 |
+
You can load any dataset in the DialogStudio from the [HuggingFace hub](https://huggingface.co/datasets/Salesforce/dialogstudio) by claiming the `{dataset_name}`, which is exactly the dataset folder name. All available datasets are described in [dataset content](./Dataset_Stats.csv).
|
58 |
+
|
59 |
+
Below is one example to load the [MULTIWOZ2_2](./task-oriented-dialogues/MULTIWOZ2_2/) dataset under the [task-oriented-dialogues](./task-oriented-dialogues/) category:
|
60 |
+
|
61 |
+
<!-- Agree Licenses on the [HuggingFace hub](https://huggingface.co/datasets/Salesforce/dialogstudio). Ensure you're also logged into your HuggingFace account on local. If you haven't logged in yet, you can do so by running the following command in your terminal:
|
62 |
+
```python
|
63 |
+
huggingface-cli login
|
64 |
+
``` -->
|
65 |
+
|
66 |
+
Load the dataset
|
67 |
+
```python
|
68 |
+
from datasets import load_dataset
|
69 |
+
|
70 |
+
dataset = load_dataset('Salesforce/dialogstudio', 'MULTIWOZ2_2')
|
71 |
+
```
|
72 |
+
Here is the output structure of MultiWOZ 2.2
|
73 |
+
```python
|
74 |
+
DatasetDict({
|
75 |
+
train: Dataset({
|
76 |
+
features: ['original dialog id', 'new dialog id', 'dialog index', 'original dialog info', 'log', 'prompt', 'external knowledge non-flat', 'external knowledge', 'dst knowledge', 'intent knowledge'],
|
77 |
+
num_rows: 8437
|
78 |
+
})
|
79 |
+
validation: Dataset({
|
80 |
+
features: ['original dialog id', 'new dialog id', 'dialog index', 'original dialog info', 'log', 'prompt', 'external knowledge non-flat', 'external knowledge', 'dst knowledge', 'intent knowledge'],
|
81 |
+
num_rows: 1000
|
82 |
+
})
|
83 |
+
test: Dataset({
|
84 |
+
features: ['original dialog id', 'new dialog id', 'dialog index', 'original dialog info', 'log', 'prompt', 'external knowledge non-flat', 'external knowledge', 'dst knowledge', 'intent knowledge'],
|
85 |
+
num_rows: 1000
|
86 |
+
})
|
87 |
+
})
|
88 |
+
```
|
89 |
+
|
90 |
+
|
91 |
+
## Datasets
|
92 |
+
|
93 |
+
The datasets are split into several categories in this GitHub repository and [HuggingFace hub](https://huggingface.co/datasets/Salesforce/dialogstudio). You can check the [table of dataset](./Dataset_Stats.csv) for more information. And you can click into each folder to check a few examples:
|
94 |
+
|
95 |
+
- [Knowledge-Grounded-Dialogues](./knowledge-grounded-dialogues/)
|
96 |
+
- [Natural-Language-Understanding](./natural-language-understanding/)
|
97 |
+
- [Open-Domain-Dialogues](./open-domain-dialogues/)
|
98 |
+
- [Task-Oriented-Dialogues](./task-oriented-dialogues/)
|
99 |
+
- [Dialogue-Summarization](./dialogue-summarization/)
|
100 |
+
- [Conversational-Recommendation-Dialogs](./conversational-recommendation-dialogues/)
|
101 |
+
|
102 |
+
<!-- ```
|
103 |
+
Datasets/
|
104 |
+
├── Knowledge-Grounded-Dialogues
|
105 |
+
├── Natural-Language-Understanding
|
106 |
+
├── Open-Domain-Dialogues
|
107 |
+
├── Task-Oriented-Dialogues
|
108 |
+
├── Dialogue-Summarization
|
109 |
+
├── Conversational-Recommendation-Dialogs
|
110 |
+
``` -->
|
111 |
+
|
112 |
+
|
113 |
+
## Model
|
114 |
+
(Will update soon)
|
115 |
+
|
116 |
+
We've rolled out version 1.0 of models trained on a few selected DialogStudio datasets. Built on small-scale pre-trained models, this version does not incorporate datasets utilized for training large-scale models (>=7B) like Alpaca, ShareGPT, GPT4ALL, UltraChat from OpenAI's 'GPT-3.5/4', or other datasets such as OASST1 and WizardCoder (Note that DialogStudio has unified such datasets). As a result, it has certain limitations in terms of writing and creative capabilities. Our initial focus is to update the model versions to enhance existing abilities. Further improvements, including expansion of other capabilities, are part of our roadmap and will be responsive to community requests.
|
117 |
+
|
118 |
+
|
119 |
+
## License
|
120 |
+
|
121 |
+
Our project follows the following structure with respect to licensing:
|
122 |
+
|
123 |
+
1. For all the modified datasets in DialogStudio:
|
124 |
+
- A portion of these datasets is under the [Apache License 2.0](LICENSE.txt).
|
125 |
+
- Some retain their original licenses even after modification.
|
126 |
+
- For a few datasets that lacked a license, we have cited the relevant papers.
|
127 |
+
2. Original dataset licenses: For reference, we also put the originally available licenses for each dataset into their respective dataset folders.
|
128 |
+
3. Code: Our codebase is under the [Apache License 2.0](LICENSE.txt).
|
129 |
+
|
130 |
+
For detailed licensing information, please refer to the specific licenses accompanying the datasets. It is important to familiarize yourself with these terms as we do not assume responsibility for licensing issues.
|
131 |
+
|
132 |
+
## Acknowledgement
|
133 |
+
We sincerely thank all dataset authors who have contributed to the Conversational AI field. Despite careful efforts, inaccuracies in our citations or references may occur. If you spot any errors or omissions, please raise an issue or submit a pull request to help us improve. Thank you!
|
134 |
+
|
135 |
+
## Citation
|
136 |
+
|
137 |
+
The data and code in this repository is mostly developed for or derived from the paper below. If you utilize datasets from DialogStudio, we kindly request you cite both the original work and our own.
|
138 |
+
|
139 |
+
```
|
140 |
+
@misc{zhang2023dialogstudio,
|
141 |
+
title={DialogStudio: Towards Richest and Most Diverse Unified Dataset Collection for Conversational AI},
|
142 |
+
author={Jianguo Zhang and Kun Qian and Zhiwei Liu and Shelby Heinecke and Rui Meng and Ye Liu and Zhou Yu and and Huan Wang and Silvio Savarese and Caiming Xiong},
|
143 |
+
year={2023},
|
144 |
+
eprint={2307.10172},
|
145 |
+
archivePrefix={arXiv},
|
146 |
+
primaryClass={cs.CL}
|
147 |
+
}
|
148 |
+
```
|
149 |
+
|
150 |
+
## Contribution
|
151 |
+
|
152 |
+
We enthusiastically invite contributions from the community! Join us in our shared mission to propel the field of conversational AI forward!
|
SECURITY.md
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Security
|
2 |
+
|
3 |
+
Please report any security issue to [[email protected]](mailto:[email protected])
|
4 |
+
as soon as it is discovered. This library limits its runtime dependencies in
|
5 |
+
order to reduce the total cost of ownership as much as can be, but all consumers
|
6 |
+
should remain vigilant and have their security stakeholders review all third-party
|
7 |
+
products (3PP) like this one and their dependencies.
|
code/openai_dialog_quality_evaluation.py
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Copyright (c) 2023, salesforce.com, inc.
|
3 |
+
All rights reserved.
|
4 |
+
SPDX-License-Identifier: Apache License 2.0
|
5 |
+
For full license text, see the LICENSE file in the repo root or https://www.apache.org/licenses/LICENSE-2.0
|
6 |
+
"""
|
7 |
+
|
8 |
+
|
9 |
+
import os
|
10 |
+
os.environ["OPENAI_API_KEY"] = ""
|
11 |
+
|
12 |
+
|
13 |
+
from langchain.chains.llm import LLMChain
|
14 |
+
from langchain.prompts import PromptTemplate
|
15 |
+
from langchain.chat_models import ChatOpenAI
|
16 |
+
import json
|
17 |
+
from utils import open_json, save_json, open_jsonl
|
18 |
+
from collections import defaultdict
|
19 |
+
|
20 |
+
class EvaluateDialogs(object):
|
21 |
+
""" Evaluate Dialogs based on OpenAI. To run this:
|
22 |
+
pip install openai
|
23 |
+
pip install langchain
|
24 |
+
"""
|
25 |
+
def __init__(self):
|
26 |
+
self.data_dir = "/Users/jianguozhang/TOD-Family/TOD-Studio/open-source/"
|
27 |
+
self.excluded_datasets = ['MetaLWOZ', "MuDoCo", "SalesBot", "HDSA-Dialog", "MULTIWOZ2_2"] # "SGD"
|
28 |
+
|
29 |
+
self.quality_agent_prompt = PromptTemplate(
|
30 |
+
input_variables=["dialog"],
|
31 |
+
template="""
|
32 |
+
Hi AI, I plan to train a language model for response generation. Please analyze the following dialogue and evaluate it based on the criteria provided. Assign a score from 1 (poor) to 5 (excellent) for each category. We're looking for a critical assessment, and higher scores should only be given to truly exceptional examples. The criteria for evaluation are: Understanding, Relevance, Completeness, Correctness, and Coherence.
|
33 |
+
|
34 |
+
After your assessment, provide an overall score for the dialogue along with a concise summary of your evaluation. The overall score should also be on a scale of 1 (poor) to 5 (excellent) and should represent a holistic assessment of the dialogue.
|
35 |
+
|
36 |
+
Please present your evaluation and comment into the following format:
|
37 |
+
|
38 |
+
{{
|
39 |
+
"Understanding": _,
|
40 |
+
"Relevance": _,
|
41 |
+
"Completeness": _,
|
42 |
+
"Correctness": _,
|
43 |
+
"Coherence": _,
|
44 |
+
"Overall": {{"score": _, "comment": _}}
|
45 |
+
}}
|
46 |
+
|
47 |
+
Please replace each underscore (_) with the appropriate score. For the 'Overall' field, provide the score and a concise comment. Regarding to the comment, it should not only summarize the dialogue's quality but also highlight any issues or shortcomings you may have identified in the dialogue.
|
48 |
+
|
49 |
+
Below is the dialog:
|
50 |
+
|
51 |
+
{dialog}
|
52 |
+
|
53 |
+
Evaluate the dialog now.
|
54 |
+
"""
|
55 |
+
)
|
56 |
+
|
57 |
+
self.quality_chain = LLMChain(llm=ChatOpenAI(temperature=0.2, model_name="gpt-3.5-turbo"), prompt=self.quality_agent_prompt)
|
58 |
+
|
59 |
+
def run_openai_evaluation(self, dialog):
|
60 |
+
res = self.quality_chain.run(dialog=dialog)
|
61 |
+
try:
|
62 |
+
res = json.loads(res)
|
63 |
+
except:
|
64 |
+
res = str(res)
|
65 |
+
return res
|
66 |
+
|
67 |
+
def tod(self):
|
68 |
+
"""
|
69 |
+
Evaluate TOD dialogues
|
70 |
+
:return:
|
71 |
+
"""
|
72 |
+
folder_name = "Task-Oriented-Dialogues--OpenAI"
|
73 |
+
folder_path = os.path.join(self.data_dir, folder_name)
|
74 |
+
dataset_names = os.listdir(folder_path)
|
75 |
+
print(dataset_names)
|
76 |
+
print()
|
77 |
+
for dataset_name in dataset_names:
|
78 |
+
if not os.path.isdir(os.path.join(folder_path, dataset_name)):
|
79 |
+
continue
|
80 |
+
|
81 |
+
data = open_json(os.path.join(folder_path, dataset_name, "train.json"))
|
82 |
+
f_writer = open(os.path.join(folder_path, dataset_name, "train_quality_scores.json"), "w")
|
83 |
+
print("Start processing: {} #total dialogs: {}".format(dataset_name, len(data)))
|
84 |
+
|
85 |
+
for index, item in enumerate(data):
|
86 |
+
|
87 |
+
output = defaultdict(dict)
|
88 |
+
output["source"] = item["source"]
|
89 |
+
output["quality score"] = self.run_openai_evaluation(item["dialog"])
|
90 |
+
|
91 |
+
json.dump(output, f_writer)
|
92 |
+
f_writer.write("\n") # Add a new line for readability
|
93 |
+
if index % 10 == 0 or index + 1 == len(data):
|
94 |
+
f_writer.flush() # Flush the buffer to update the file immediately
|
95 |
+
|
96 |
+
def run(self):
|
97 |
+
self.tod()
|
98 |
+
|
99 |
+
process = EvaluateDialogs()
|
100 |
+
# Run evaluations for dialogs
|
101 |
+
process.run()
|
code/preprocess_data_DialSum.py
ADDED
@@ -0,0 +1,614 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Copyright (c) 2023, salesforce.com, inc.
|
3 |
+
All rights reserved.
|
4 |
+
SPDX-License-Identifier: Apache License 2.0
|
5 |
+
For full license text, see the LICENSE file in the repo root or https://www.apache.org/licenses/LICENSE-2.0
|
6 |
+
"""
|
7 |
+
|
8 |
+
#!/usr/bin/env python3
|
9 |
+
#
|
10 |
+
import sys, os, pdb
|
11 |
+
import json
|
12 |
+
import shutil, errno
|
13 |
+
from tqdm import tqdm
|
14 |
+
import pandas as pd
|
15 |
+
from utils.constant import *
|
16 |
+
|
17 |
+
|
18 |
+
class PreProcessData(object):
|
19 |
+
"""docstring for PreProcessData"""
|
20 |
+
def __init__(self):
|
21 |
+
super(PreProcessData, self).__init__()
|
22 |
+
self.data_dir = "/path/to/where/the/raw/dataset/is"
|
23 |
+
self.save_dir = "/path/to/store/the/processed/dataset/" # e.g. ./data/processed/Dialogue-Summarization
|
24 |
+
|
25 |
+
|
26 |
+
def _load_json(self, path=None):
|
27 |
+
if path is None or not os.path.exists(path):
|
28 |
+
raise IOError('File does not exist: %s' % path)
|
29 |
+
# return None
|
30 |
+
with open(path) as df:
|
31 |
+
data = json.loads(df.read())
|
32 |
+
return data
|
33 |
+
|
34 |
+
|
35 |
+
def _load_txt(self, path=None, split_tok="\n"):
|
36 |
+
if path is None or not os.path.exists(path):
|
37 |
+
raise IOError('File does not exist: %s' % path)
|
38 |
+
with open(path) as df:
|
39 |
+
data = df.read().strip().split(split_tok)
|
40 |
+
return data
|
41 |
+
|
42 |
+
|
43 |
+
def _load_csv(self, path=None, sep="\t"):
|
44 |
+
if path is None or not os.path.exists(path):
|
45 |
+
raise IOError('File does not exist: %s' % path)
|
46 |
+
with open(path) as df:
|
47 |
+
data = pd.read_csv(df, sep=sep)
|
48 |
+
return data
|
49 |
+
|
50 |
+
|
51 |
+
def _load_jsonl(self, path=None):
|
52 |
+
if path is None or not os.path.exists(path):
|
53 |
+
raise IOError('File does not exist: %s' % path)
|
54 |
+
data = []
|
55 |
+
with open(path) as df:
|
56 |
+
for line in df.readlines():
|
57 |
+
data.append(json.loads(line))
|
58 |
+
return data
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
def _load_dir_json(self, dir_path=None):
|
63 |
+
if dir_path is None or not os.path.exists(dir_path): return None
|
64 |
+
total_data = [] # assume data is a list of dialogs
|
65 |
+
for filename in sorted(os.listdir(dir_path)):
|
66 |
+
if filename in ["schema.json"]: continue
|
67 |
+
if not filename.endswith(".json"): continue
|
68 |
+
file_path = os.path.join(dir_path, filename)
|
69 |
+
data = self._load_json(path=file_path)
|
70 |
+
if type(data) == list:
|
71 |
+
total_data.extend(data)
|
72 |
+
else:
|
73 |
+
total_data.append(data)
|
74 |
+
return total_data
|
75 |
+
|
76 |
+
|
77 |
+
def _load_dir_txt(self, dir_path=None, file_type="txt"):
|
78 |
+
if dir_path is None or not os.path.exists(dir_path): return None
|
79 |
+
total_data = [] # assume data is a list of dialogs
|
80 |
+
for filename in sorted(os.listdir(dir_path)):
|
81 |
+
if not filename.endswith(file_type): continue
|
82 |
+
file_path = os.path.join(dir_path, filename)
|
83 |
+
data = self._load_txt(path=file_path)
|
84 |
+
if type(data) == list:
|
85 |
+
total_data.extend(data)
|
86 |
+
else:
|
87 |
+
total_data.append(data)
|
88 |
+
return total_data
|
89 |
+
|
90 |
+
|
91 |
+
def _load_dir_tsv(self, dir_path=None, sep="\t"):
|
92 |
+
if dir_path is None or not os.path.exists(dir_path): return None
|
93 |
+
total_data = None
|
94 |
+
for filename in sorted(os.listdir(dir_path)):
|
95 |
+
file_path = os.path.join(dir_path, filename)
|
96 |
+
data = self._load_csv(path=file_path, sep=sep)
|
97 |
+
total_data = pd.concat([total_data, data], ignore_index=True)
|
98 |
+
return total_data
|
99 |
+
|
100 |
+
|
101 |
+
def _save_json(self, data, path):
|
102 |
+
with open(path, "w") as tf:
|
103 |
+
json.dump(data, tf, indent=4)
|
104 |
+
|
105 |
+
|
106 |
+
def init_dial(self, dial_idx=0, ori_dial_id=""):
|
107 |
+
dial = {
|
108 |
+
ORI_DIAL_ID: ori_dial_id,
|
109 |
+
DIAL_IDX: dial_idx,
|
110 |
+
ORI_DIAL_INFO: {},
|
111 |
+
LOG: [],
|
112 |
+
PROMPT: [],
|
113 |
+
}
|
114 |
+
return dial
|
115 |
+
|
116 |
+
|
117 |
+
def init_turn(self, turn_id=0, dial_hist=[]):
|
118 |
+
turn = {
|
119 |
+
TURN_ID: turn_id,
|
120 |
+
USR_UTT: "",
|
121 |
+
SYS_UTT: "",
|
122 |
+
DIAL_HIST: " ".join(dial_hist),
|
123 |
+
ORI_USR_ANN: {},
|
124 |
+
ORI_SYS_ANN: {},
|
125 |
+
}
|
126 |
+
return turn
|
127 |
+
|
128 |
+
|
129 |
+
def save_dial(self, data, data_name="", file_idx=0, mode="train"):
|
130 |
+
save_name = f"dialogues_{file_idx}.json"
|
131 |
+
folder_path = os.path.join(self.save_dir, data_name, mode)
|
132 |
+
if not os.path.exists(folder_path): os.makedirs(folder_path)
|
133 |
+
path = os.path.join(folder_path, save_name)
|
134 |
+
self._save_json(data, path)
|
135 |
+
|
136 |
+
|
137 |
+
def copy_general(self, src, dst):
|
138 |
+
try:
|
139 |
+
shutil.copytree(src, dst, dirs_exist_ok=True)
|
140 |
+
except OSError as exc: # python >2.5
|
141 |
+
if exc.errno in (errno.ENOTDIR, errno.EINVAL):
|
142 |
+
shutil.copy(src, dst)
|
143 |
+
else: raise
|
144 |
+
|
145 |
+
|
146 |
+
def copy_related_files(self, data_name, exp_list=[], extra_dir=""):
|
147 |
+
source_dir = os.path.join(self.data_dir, data_name, extra_dir)
|
148 |
+
target_dir = os.path.join(self.save_dir, data_name)
|
149 |
+
for filename in os.listdir(source_dir):
|
150 |
+
if filename.startswith("."): continue # ignore hidden files
|
151 |
+
if filename.startswith("__"): continue # ignore hidden files
|
152 |
+
if filename in exp_list: continue
|
153 |
+
if filename.endswith(".py"): continue
|
154 |
+
source_path = os.path.join(source_dir, filename)
|
155 |
+
target_path = os.path.join(target_dir, filename)
|
156 |
+
self.copy_general(source_path, target_path)
|
157 |
+
|
158 |
+
|
159 |
+
def save_original_examples(self, examples, data_name):
|
160 |
+
"""
|
161 |
+
save 5 original data points just for reference and check
|
162 |
+
data would be a list of length 5, each entry is a dialog
|
163 |
+
in the form of dictionary
|
164 |
+
"""
|
165 |
+
path = os.path.join(self.save_dir, data_name, "original_examples.json")
|
166 |
+
self._save_json(examples, path)
|
167 |
+
print("original examples saved")
|
168 |
+
|
169 |
+
|
170 |
+
def save_converted_examples(self, data_name):
|
171 |
+
"""
|
172 |
+
extract the first 5 examples from the train set of the
|
173 |
+
already processed data, just for reference and check
|
174 |
+
"""
|
175 |
+
data = self._load_json(os.path.join(self.save_dir, data_name, "train/dialogues_1.json"))
|
176 |
+
examples = {key: data[key] for key in list(data.keys())[:5]}
|
177 |
+
self._save_json(examples, os.path.join(self.save_dir, data_name, "converted_examples.json"))
|
178 |
+
print("converted examples saved")
|
179 |
+
|
180 |
+
|
181 |
+
def _import_system_file(self, filename="", module_name=""):
|
182 |
+
import importlib, sys
|
183 |
+
spec = importlib.util.spec_from_file_location(module_name, filename)
|
184 |
+
module = importlib.util.module_from_spec(spec)
|
185 |
+
sys.modules[module_name] = module
|
186 |
+
spec.loader.exec_module(module)
|
187 |
+
return module
|
188 |
+
|
189 |
+
|
190 |
+
def tweetsum(self):
|
191 |
+
"""
|
192 |
+
real data store in kaggle, need to download and preprocess first
|
193 |
+
"""
|
194 |
+
data_name = "TweetSumm"
|
195 |
+
# prepare data
|
196 |
+
Modules = self._import_system_file(os.path.join(self.data_dir, data_name, "tweet_sum_processor.py"), "TweetSumProcessor")
|
197 |
+
processor = Modules.TweetSumProcessor(os.path.join(self.data_dir, data_name, "archive/twcs/twcs.csv"))
|
198 |
+
exp_list = ["tweet_sum_data_files", "archive", "tweet_sum_processor.py"]
|
199 |
+
for mode in ["train", "val", "test"]:
|
200 |
+
real_name = f"final_{mode}_tweetsum.jsonl" if mode != "val" else "final_valid_tweetsum.jsonl"
|
201 |
+
path = os.path.join(self.data_dir, data_name, "tweet_sum_data_files", real_name)
|
202 |
+
|
203 |
+
# split = self._load_jsonl(path)
|
204 |
+
new_data = {}
|
205 |
+
file_idx = 1
|
206 |
+
original_data_sample = []
|
207 |
+
|
208 |
+
with open(path) as f:
|
209 |
+
dialog_with_summaries = processor.get_dialog_with_summaries(f.readlines())
|
210 |
+
for dial_idx, dialog_with_summary in tqdm(enumerate(dialog_with_summaries)):
|
211 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx+1}"
|
212 |
+
|
213 |
+
json_format = dialog_with_summary.get_json()
|
214 |
+
dial = json.loads(json_format)
|
215 |
+
if mode == "train" and dial_idx < 5:
|
216 |
+
original_data_sample.append(dial)
|
217 |
+
|
218 |
+
new_dial = self.init_dial(dial_idx=dial_idx+1, ori_dial_id=dial["dialog"]["dialog_id"]) # idx starts from 1
|
219 |
+
new_dial[ORI_DIAL_INFO] = {
|
220 |
+
"summaries" : dial["summaries"]
|
221 |
+
}
|
222 |
+
turn_id, dial_hist = 1, []
|
223 |
+
new_turn = self.init_turn(turn_id=turn_id)
|
224 |
+
for idx, turn in enumerate(dial["dialog"]["turns"]):
|
225 |
+
utt = " ".join(turn["sentences"])
|
226 |
+
if turn["is_agent"]:
|
227 |
+
new_turn[SYS_UTT] += f" {utt}"
|
228 |
+
new_turn[SYS_UTT] = new_turn[SYS_UTT].strip()
|
229 |
+
if idx == len(dial["dialog"]["turns"]) - 1 or \
|
230 |
+
not dial["dialog"]["turns"][idx+1]["is_agent"]:
|
231 |
+
|
232 |
+
new_dial[LOG].append(new_turn)
|
233 |
+
turn_id += 1
|
234 |
+
if new_turn[USR_UTT]:
|
235 |
+
dial_hist.append("<USER> " + new_turn[USR_UTT])
|
236 |
+
dial_hist.append("<SYSTEM> " + new_turn[SYS_UTT])
|
237 |
+
new_turn = self.init_turn(turn_id=turn_id)
|
238 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
239 |
+
else:
|
240 |
+
new_turn[USR_UTT] += f" {utt}"
|
241 |
+
new_turn[USR_UTT] = new_turn[USR_UTT].strip()
|
242 |
+
|
243 |
+
new_data[new_dial_id] = new_dial
|
244 |
+
if (dial_idx+1) % 1000 == 0 or dial_idx+1 == len(dialog_with_summaries):
|
245 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
246 |
+
new_data = {} # reset
|
247 |
+
file_idx += 1
|
248 |
+
|
249 |
+
if mode == "train": self.save_original_examples(original_data_sample, data_name)
|
250 |
+
self.save_converted_examples(data_name)
|
251 |
+
self.copy_related_files(data_name, exp_list)
|
252 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
253 |
+
|
254 |
+
|
255 |
+
def samsum(self):
|
256 |
+
"""
|
257 |
+
1. achieved from HF datasets "samsum"
|
258 |
+
2. no sys/user, but two human being, assuming the first utterance comes from user, ignore residual
|
259 |
+
"""
|
260 |
+
data_name = "SAMSum"
|
261 |
+
# prepare data
|
262 |
+
from datasets import load_dataset
|
263 |
+
data = load_dataset("samsum")
|
264 |
+
for mode in ["train", "val", "test"]:
|
265 |
+
real_name = mode if mode != "val" else "validation"
|
266 |
+
new_data, file_idx = {}, 1
|
267 |
+
|
268 |
+
for dial_idx, dial in tqdm(enumerate(data[real_name])):
|
269 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx+1}"
|
270 |
+
new_dial = self.init_dial(dial_idx=dial_idx+1, ori_dial_id=dial["id"]) # idx starts from 1
|
271 |
+
new_dial[ORI_DIAL_INFO] = {
|
272 |
+
"summary" : dial["summary"]
|
273 |
+
}
|
274 |
+
dial_hist = []
|
275 |
+
sep = "\r\n" if "\r\n" in dial["dialogue"] else "\n"
|
276 |
+
for turn_idx, turn in enumerate(dial["dialogue"].split(sep)):
|
277 |
+
speaker, utt = turn.split(": ")[0], ": ".join(turn.split(": ")[1:])
|
278 |
+
if turn_idx % 2 == 0:
|
279 |
+
new_turn = self.init_turn(turn_id=turn_idx//2+1)
|
280 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
281 |
+
new_turn[USR_UTT] = utt.strip().replace(" ", " ")
|
282 |
+
new_turn[ORI_USR_ANN]['speaker'] = speaker
|
283 |
+
else:
|
284 |
+
new_turn[SYS_UTT] = utt.strip().replace(" ", " ")
|
285 |
+
new_turn[ORI_SYS_ANN]['speaker'] = speaker
|
286 |
+
dial_hist.append("<USER> " + new_turn[USR_UTT])
|
287 |
+
dial_hist.append("<SYSTEM> " + new_turn[SYS_UTT])
|
288 |
+
new_dial[LOG].append(new_turn)
|
289 |
+
|
290 |
+
new_data[new_dial_id] = new_dial
|
291 |
+
if (dial_idx+1) % 1000 == 0 or dial_idx+1 == len(data[real_name]):
|
292 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
293 |
+
new_data = {} # reset
|
294 |
+
file_idx += 1
|
295 |
+
|
296 |
+
self.save_original_examples(data["train"][:5], data_name)
|
297 |
+
self.save_converted_examples(data_name)
|
298 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
299 |
+
|
300 |
+
|
301 |
+
def dialogsum(self):
|
302 |
+
"""
|
303 |
+
1. we use the data from github: https://github.com/cylnlp/dialogsum/tree/main/DialogSum_Data
|
304 |
+
but, it is also available from HF datasets "knkarthick/dialogsum"
|
305 |
+
2. no sys/user, but two human being, assuming the first utterance comes from user, ignore residual
|
306 |
+
"""
|
307 |
+
data_name = "DialogSum"
|
308 |
+
|
309 |
+
for mode in ["train", "val", "test"]:
|
310 |
+
real_name = mode if mode != "val" else "dev"
|
311 |
+
path = os.path.join(self.data_dir, data_name, f"DialogSum_Data/dialogsum.{real_name}.jsonl")
|
312 |
+
data = self._load_jsonl(path)
|
313 |
+
new_data, file_idx = {}, 1
|
314 |
+
|
315 |
+
for dial_idx, dial in tqdm(enumerate(data)):
|
316 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx+1}"
|
317 |
+
new_dial = self.init_dial(dial_idx=dial_idx+1, ori_dial_id=dial["fname"]) # idx starts from 1
|
318 |
+
for key in dial:
|
319 |
+
if key in ["fname", "dialogue"]: continue
|
320 |
+
new_dial[ORI_DIAL_INFO][key] = dial[key]
|
321 |
+
|
322 |
+
dial_hist = []
|
323 |
+
turns = dial["dialogue"].replace("PErson","Person").split("#Person")[1:]
|
324 |
+
for turn_idx, turn in enumerate(turns):
|
325 |
+
speaker, utt = turn.split("#:")
|
326 |
+
speaker = "Person" + speaker
|
327 |
+
utt = utt.replace("\n","").strip()
|
328 |
+
|
329 |
+
if turn_idx % 2 == 0:
|
330 |
+
new_turn = self.init_turn(turn_id=turn_idx//2+1)
|
331 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
332 |
+
new_turn[USR_UTT] = utt.strip()
|
333 |
+
new_turn[ORI_USR_ANN]['speaker'] = speaker.replace("#","")
|
334 |
+
else:
|
335 |
+
new_turn[SYS_UTT] = utt.strip()
|
336 |
+
new_turn[ORI_SYS_ANN]['speaker'] = speaker.replace("#","")
|
337 |
+
dial_hist.append("<USER> " + new_turn[USR_UTT])
|
338 |
+
dial_hist.append("<SYSTEM> " + new_turn[SYS_UTT])
|
339 |
+
new_dial[LOG].append(new_turn)
|
340 |
+
|
341 |
+
new_data[new_dial_id] = new_dial
|
342 |
+
if (dial_idx+1) % 1000 == 0 or dial_idx+1 == len(data):
|
343 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
344 |
+
new_data = {} # reset
|
345 |
+
file_idx += 1
|
346 |
+
|
347 |
+
if mode == "train": self.save_original_examples(data[:5], data_name)
|
348 |
+
self.save_converted_examples(data_name)
|
349 |
+
self.copy_related_files(data_name, ['Baseline'])
|
350 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
351 |
+
|
352 |
+
|
353 |
+
def ami(self):
|
354 |
+
"""
|
355 |
+
download processed data from https://drive.google.com/drive/folders/1BbmaZnzG9WrqOO-D3h211NOJePotqwQJ
|
356 |
+
the data is separated into 6 files based on annotation
|
357 |
+
here we extract the dialog context based on file "dialogueActs"
|
358 |
+
no train/val/test split, consider all as train
|
359 |
+
no readme file needs to be copied
|
360 |
+
we use ABCD instead of USR_UTT/SYS_UTT
|
361 |
+
|
362 |
+
1. each dialog contains more than 2 speaker? yes A,B,C,D
|
363 |
+
2. speaking in any order? yes A->B->C->D
|
364 |
+
"""
|
365 |
+
data_name = "AMI"
|
366 |
+
mode = "train"
|
367 |
+
data_dir = os.path.join(self.data_dir, data_name, "dialogueActs")
|
368 |
+
new_data, dial_idx = {}, 1
|
369 |
+
|
370 |
+
for filename in os.listdir(data_dir):
|
371 |
+
dial = self._load_json(os.path.join(data_dir, filename))
|
372 |
+
new_dial = self.init_dial(dial_idx=dial_idx) # idx starts from 1
|
373 |
+
# # # save dialog log
|
374 |
+
new_dial[ORI_DIAL_INFO]["dialog history"] = []
|
375 |
+
for turn in dial:
|
376 |
+
new_dial[ORI_DIAL_INFO]["dialog history"].append(turn["speaker"] + " : " + turn["text"])
|
377 |
+
|
378 |
+
# # # save abstractive summary
|
379 |
+
if os.path.exists(os.path.join(self.data_dir, data_name, "abstractive", filename)):
|
380 |
+
abs_sum = self._load_json(os.path.join(self.data_dir, data_name, "abstractive", filename))
|
381 |
+
new_dial[ORI_DIAL_INFO]["abstractive summary"] = abs_sum
|
382 |
+
# # # save extractive summary
|
383 |
+
if os.path.exists(os.path.join(self.data_dir, data_name, "extractive", filename)):
|
384 |
+
ext_sum = self._load_json(os.path.join(self.data_dir, data_name, "extractive", filename))
|
385 |
+
new_dial[ORI_DIAL_INFO]["extractive summary"] = []
|
386 |
+
for ext_turn in ext_sum:
|
387 |
+
new_dial[ORI_DIAL_INFO]["extractive summary"].append(ext_turn["speaker"] + " : " + ext_turn["text"])
|
388 |
+
|
389 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
390 |
+
new_dial[ORI_DIAL_ID] = filename
|
391 |
+
new_data[new_dial_id] = new_dial
|
392 |
+
dial_idx += 1
|
393 |
+
if dial_idx == 2:
|
394 |
+
self.save_original_examples(dial, data_name)
|
395 |
+
|
396 |
+
self.save_dial(new_data, data_name=data_name, file_idx=1, mode=mode)
|
397 |
+
self.save_converted_examples(data_name)
|
398 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
399 |
+
|
400 |
+
|
401 |
+
def icsi(self):
|
402 |
+
"""
|
403 |
+
similar as AMI
|
404 |
+
speak can last to A->J
|
405 |
+
"""
|
406 |
+
data_name = "ICSI"
|
407 |
+
mode = "train"
|
408 |
+
data_dir = os.path.join(self.data_dir, data_name, "dialogueActs")
|
409 |
+
new_data, dial_idx = {}, 1
|
410 |
+
|
411 |
+
for filename in os.listdir(data_dir):
|
412 |
+
dial = self._load_json(os.path.join(data_dir, filename))
|
413 |
+
new_dial = self.init_dial(dial_idx=dial_idx) # idx starts from 1
|
414 |
+
# # # save dialog log
|
415 |
+
new_dial[ORI_DIAL_INFO]["dialog history"] = []
|
416 |
+
for turn in dial:
|
417 |
+
new_dial[ORI_DIAL_INFO]["dialog history"].append(turn["speaker"] + " : " + turn["text"])
|
418 |
+
|
419 |
+
# # # save abstractive summary
|
420 |
+
if os.path.exists(os.path.join(self.data_dir, data_name, "abstractive", filename)):
|
421 |
+
abs_sum = self._load_json(os.path.join(self.data_dir, data_name, "abstractive", filename))
|
422 |
+
new_dial[ORI_DIAL_INFO]["abstractive summary"] = abs_sum
|
423 |
+
# # # save extractive summary
|
424 |
+
if os.path.exists(os.path.join(self.data_dir, data_name, "extractive", filename)):
|
425 |
+
ext_sum = self._load_json(os.path.join(self.data_dir, data_name, "extractive", filename))
|
426 |
+
new_dial[ORI_DIAL_INFO]["extractive summary"] = []
|
427 |
+
for ext_turn in ext_sum:
|
428 |
+
new_dial[ORI_DIAL_INFO]["extractive summary"].append(ext_turn["speaker"] + " : " + ext_turn["text"])
|
429 |
+
|
430 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
431 |
+
new_dial[ORI_DIAL_ID] = filename
|
432 |
+
new_data[new_dial_id] = new_dial
|
433 |
+
dial_idx += 1
|
434 |
+
if dial_idx == 2:
|
435 |
+
self.save_original_examples(dial, data_name)
|
436 |
+
|
437 |
+
self.save_dial(new_data, data_name=data_name, file_idx=1, mode=mode)
|
438 |
+
self.save_converted_examples(data_name)
|
439 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
440 |
+
|
441 |
+
|
442 |
+
def qmsum(self):
|
443 |
+
data_name = "QMSum"
|
444 |
+
for mode in ["train", "val", "test"]:
|
445 |
+
path = os.path.join(self.data_dir, data_name, f"data/ALL/{mode}")
|
446 |
+
data = self._load_dir_json(path)
|
447 |
+
new_data, file_idx = {}, 1
|
448 |
+
for dial_idx, dial in tqdm(enumerate(data)):
|
449 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx+1}"
|
450 |
+
new_dial = self.init_dial(dial_idx=dial_idx+1)
|
451 |
+
for key_ in dial:
|
452 |
+
if key_ == "meeting_transcripts": continue
|
453 |
+
new_dial[ORI_DIAL_INFO][key_] = dial[key_]
|
454 |
+
|
455 |
+
new_dial[ORI_DIAL_INFO]["dialog history"] = []
|
456 |
+
for turn in dial["meeting_transcripts"]:
|
457 |
+
new_dial[ORI_DIAL_INFO]["dialog history"].append(turn["speaker"] + " : " + turn["content"])
|
458 |
+
|
459 |
+
new_data[new_dial_id] = new_dial
|
460 |
+
if (dial_idx+1) % 1000 == 0 or dial_idx+1 == len(data):
|
461 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
462 |
+
new_data = {} # reset
|
463 |
+
file_idx += 1
|
464 |
+
|
465 |
+
if mode == "train": self.save_original_examples(data[:5], data_name)
|
466 |
+
self.save_converted_examples(data_name)
|
467 |
+
self.copy_related_files(data_name, ['Baseline'])
|
468 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
469 |
+
|
470 |
+
|
471 |
+
def mediasum(self):
|
472 |
+
data_name = "MediaSum"
|
473 |
+
split_id = self._load_json(os.path.join(self.data_dir, data_name, "data/train_val_test_split.json"))
|
474 |
+
data = self._load_json(os.path.join(self.data_dir, data_name, "data/news_dialogue.json"))
|
475 |
+
|
476 |
+
split_id2mode, new_data, file_idx, dial_idx = {}, {}, {}, {}
|
477 |
+
for mode in ["train", "val", "test"]:
|
478 |
+
for dial_id in split_id[mode]:
|
479 |
+
split_id2mode[dial_id] = mode
|
480 |
+
new_data[mode], file_idx[mode], dial_idx[mode] = {}, 1, 1
|
481 |
+
|
482 |
+
for dial in tqdm(data):
|
483 |
+
new_dial = self.init_dial() # idx starts from 1
|
484 |
+
new_dial[ORI_DIAL_ID] = dial['id']
|
485 |
+
for key_ in dial:
|
486 |
+
if key_ in ["id", "utt", "speaker"]: continue
|
487 |
+
new_dial[ORI_DIAL_INFO][key_] = dial[key_]
|
488 |
+
dialog_log = []
|
489 |
+
for idx in range(len(dial["utt"])):
|
490 |
+
dialog_log.append(dial["speaker"][idx] + " : " + dial["utt"][idx])
|
491 |
+
new_dial[ORI_DIAL_INFO]["dialog history"] = dialog_log
|
492 |
+
|
493 |
+
mode = split_id2mode.get(dial["id"], "train")
|
494 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx[mode]}"
|
495 |
+
new_dial[DIAL_IDX] = dial_idx[mode]
|
496 |
+
new_data[mode][new_dial_id] = new_dial
|
497 |
+
dial_idx[mode] += 1
|
498 |
+
|
499 |
+
if len(new_data[mode]) == 1000:
|
500 |
+
self.save_dial(new_data[mode], data_name=data_name, file_idx=file_idx[mode], mode=mode)
|
501 |
+
new_data[mode] = {} # reset
|
502 |
+
file_idx[mode] += 1
|
503 |
+
|
504 |
+
# if there are some unsaved dialogs left, save it now
|
505 |
+
for mode in ["train", "val", "test"]:
|
506 |
+
if new_data[mode]:
|
507 |
+
self.save_dial(new_data[mode], data_name=data_name, file_idx=file_idx[mode], mode=mode)
|
508 |
+
|
509 |
+
self.save_original_examples(data[:5], data_name)
|
510 |
+
self.save_converted_examples(data_name)
|
511 |
+
self.copy_related_files(data_name, ["data"])
|
512 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
513 |
+
|
514 |
+
|
515 |
+
def crd3(self):
|
516 |
+
"""
|
517 |
+
For this dataset, we choose present only chunk_size=2 offset=0
|
518 |
+
some file are missing for chunk size = 2
|
519 |
+
"""
|
520 |
+
data_name = "CRD3"
|
521 |
+
exp_list = []
|
522 |
+
for filename in os.listdir(os.path.join(self.data_dir, data_name)):
|
523 |
+
if filename == "readme.txt": continue
|
524 |
+
if filename == "LICENSE": continue
|
525 |
+
exp_list.append(filename)
|
526 |
+
for mode in ["train", "val", "test"]:
|
527 |
+
new_data, file_idx, dial_idx = {}, 1, 1
|
528 |
+
for file_name in self._load_txt(os.path.join(self.data_dir, data_name, f"data/aligned data/{mode}_files")):
|
529 |
+
file_path = os.path.join(self.data_dir, data_name, f"data/aligned data/c=2/{file_name}_2_0.json")
|
530 |
+
if not os.path.exists(file_path): continue
|
531 |
+
data = self._load_json(file_path)
|
532 |
+
|
533 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
534 |
+
new_dial = self.init_dial(dial_idx=dial_idx)
|
535 |
+
new_dial[ORI_DIAL_ID] = file_name
|
536 |
+
new_dial[ORI_DIAL_INFO] = data
|
537 |
+
new_data[new_dial_id] = new_dial
|
538 |
+
dial_idx += 1
|
539 |
+
|
540 |
+
if (dial_idx) % 1000 == 0:
|
541 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
542 |
+
new_data = {} # reset
|
543 |
+
file_idx += 1
|
544 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
545 |
+
if mode == "train": self.save_original_examples([new_dial[ORI_DIAL_INFO]], data_name)
|
546 |
+
self.save_converted_examples(data_name)
|
547 |
+
self.copy_related_files(data_name, exp_list)
|
548 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
549 |
+
|
550 |
+
|
551 |
+
def ectsum(self):
|
552 |
+
data_name = "ECTSum"
|
553 |
+
for mode in ["train", "val", "test"]:
|
554 |
+
new_data, file_idx, dial_idx = {}, 1, 1
|
555 |
+
data_dir = os.path.join(self.data_dir, data_name, "data/final", mode)
|
556 |
+
for file_name in os.listdir(os.path.join(data_dir, "ects")):
|
557 |
+
if not file_name.endswith("txt"): pdb.set_trace()
|
558 |
+
ect_data = self._load_txt(os.path.join(data_dir, "ects", file_name))
|
559 |
+
sum_data = self._load_txt(os.path.join(data_dir, "gt_summaries", file_name))
|
560 |
+
|
561 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
562 |
+
new_dial = self.init_dial(dial_idx=dial_idx)
|
563 |
+
new_dial[ORI_DIAL_INFO]["file_name"] = file_name
|
564 |
+
new_dial[ORI_DIAL_INFO]["ect"] = ect_data
|
565 |
+
new_dial[ORI_DIAL_INFO]["summary"] = sum_data
|
566 |
+
new_data[new_dial_id] = new_dial
|
567 |
+
dial_idx += 1
|
568 |
+
|
569 |
+
if (dial_idx) % 1000 == 0:
|
570 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
571 |
+
new_data = {} # reset
|
572 |
+
file_idx += 1
|
573 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
574 |
+
if mode == "train": self.save_original_examples([new_dial[ORI_DIAL_INFO]], data_name)
|
575 |
+
self.save_converted_examples(data_name)
|
576 |
+
self.copy_related_files(data_name, ['codes', 'data'])
|
577 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
578 |
+
|
579 |
+
|
580 |
+
def run_all(self):
|
581 |
+
# self.todsum()
|
582 |
+
# self.tweetsum()
|
583 |
+
# self.samsum()
|
584 |
+
# self.dialogsum()
|
585 |
+
# self.ami()
|
586 |
+
# self.icsi()
|
587 |
+
# self.qmsum()
|
588 |
+
self.mediasum()
|
589 |
+
# self.crd3()
|
590 |
+
# self.ectsum()
|
591 |
+
pass
|
592 |
+
|
593 |
+
|
594 |
+
def copy_example(self):
|
595 |
+
source_dir = self.save_dir
|
596 |
+
target_dir = "/home/qkun/projs/TOD-Project/Datasets/Dialogue-Summarization_PROCESSED/"
|
597 |
+
file_list = ["converted_examples.json", "original_examples.json", "readme.txt", "LICENSE"]
|
598 |
+
for dir_name in sorted(os.listdir(source_dir)):
|
599 |
+
if os.path.isfile(os.path.join(source_dir, dir_name)): continue
|
600 |
+
if not os.path.exists(os.path.join(target_dir, dir_name)): os.makedirs(os.path.join(target_dir, dir_name))
|
601 |
+
for filename in file_list:
|
602 |
+
source_path = os.path.join(source_dir, dir_name, filename)
|
603 |
+
target_path = os.path.join(target_dir, dir_name, filename)
|
604 |
+
if not os.path.exists(source_path): continue
|
605 |
+
shutil.copy(source_path, target_path)
|
606 |
+
|
607 |
+
|
608 |
+
def main():
|
609 |
+
preprocess = PreProcessData()
|
610 |
+
preprocess.run_all()
|
611 |
+
preprocess.copy_example()
|
612 |
+
|
613 |
+
if __name__ == '__main__':
|
614 |
+
main()
|
code/preprocess_data_KG.py
ADDED
@@ -0,0 +1,368 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Copyright (c) 2023, salesforce.com, inc.
|
3 |
+
All rights reserved.
|
4 |
+
SPDX-License-Identifier: Apache License 2.0
|
5 |
+
For full license text, see the LICENSE file in the repo root or https://www.apache.org/licenses/LICENSE-2.0
|
6 |
+
"""
|
7 |
+
|
8 |
+
#!/usr/bin/env python3
|
9 |
+
#
|
10 |
+
import sys, os, pdb
|
11 |
+
import json
|
12 |
+
import shutil, errno
|
13 |
+
from tqdm import tqdm
|
14 |
+
import pandas as pd
|
15 |
+
from utils.constant import *
|
16 |
+
|
17 |
+
|
18 |
+
class PreProcessData(object):
|
19 |
+
"""docstring for PreProcessData"""
|
20 |
+
def __init__(self):
|
21 |
+
super(PreProcessData, self).__init__()
|
22 |
+
self.data_dir = "/path/to/where/the/raw/dataset/is"
|
23 |
+
self.save_dir = "/path/to/store/the/processed/dataset/" # e.g. ./data/processed/Knowledge-Grounded
|
24 |
+
|
25 |
+
|
26 |
+
def _load_json(self, path=None):
|
27 |
+
if path is None or not os.path.exists(path):
|
28 |
+
raise IOError('File does not exist: %s' % path)
|
29 |
+
# return None
|
30 |
+
with open(path) as df:
|
31 |
+
data = json.loads(df.read())
|
32 |
+
return data
|
33 |
+
|
34 |
+
|
35 |
+
def _load_txt(self, path=None, split_tok="\n"):
|
36 |
+
if path is None or not os.path.exists(path):
|
37 |
+
raise IOError('File does not exist: %s' % path)
|
38 |
+
with open(path) as df:
|
39 |
+
data = df.read().strip().split(split_tok)
|
40 |
+
return data
|
41 |
+
|
42 |
+
|
43 |
+
def _load_csv(self, path=None, sep="\t"):
|
44 |
+
if path is None or not os.path.exists(path):
|
45 |
+
raise IOError('File does not exist: %s' % path)
|
46 |
+
with open(path) as df:
|
47 |
+
data = pd.read_csv(df, sep=sep)
|
48 |
+
return data
|
49 |
+
|
50 |
+
|
51 |
+
def _load_jsonl(self, path=None):
|
52 |
+
if path is None or not os.path.exists(path):
|
53 |
+
raise IOError('File does not exist: %s' % path)
|
54 |
+
data = []
|
55 |
+
with open(path) as df:
|
56 |
+
for line in df.readlines():
|
57 |
+
data.append(json.loads(line))
|
58 |
+
return data
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
def _load_dir_json(self, dir_path=None):
|
63 |
+
if dir_path is None or not os.path.exists(dir_path): return None
|
64 |
+
total_data = [] # assume data is a list of dialogs
|
65 |
+
for filename in sorted(os.listdir(dir_path)):
|
66 |
+
if filename in ["schema.json"]: continue
|
67 |
+
if not filename.endswith(".json"): continue
|
68 |
+
file_path = os.path.join(dir_path, filename)
|
69 |
+
data = self._load_json(path=file_path)
|
70 |
+
if type(data) == list:
|
71 |
+
total_data.extend(data)
|
72 |
+
else:
|
73 |
+
total_data.append(data)
|
74 |
+
return total_data
|
75 |
+
|
76 |
+
|
77 |
+
def _load_dir_txt(self, dir_path=None, file_type="txt"):
|
78 |
+
if dir_path is None or not os.path.exists(dir_path): return None
|
79 |
+
total_data = [] # assume data is a list of dialogs
|
80 |
+
for filename in sorted(os.listdir(dir_path)):
|
81 |
+
if not filename.endswith(file_type): continue
|
82 |
+
file_path = os.path.join(dir_path, filename)
|
83 |
+
data = self._load_txt(path=file_path)
|
84 |
+
if type(data) == list:
|
85 |
+
total_data.extend(data)
|
86 |
+
else:
|
87 |
+
total_data.append(data)
|
88 |
+
return total_data
|
89 |
+
|
90 |
+
|
91 |
+
def _load_dir_tsv(self, dir_path=None, sep="\t"):
|
92 |
+
if dir_path is None or not os.path.exists(dir_path): return None
|
93 |
+
total_data = None
|
94 |
+
for filename in sorted(os.listdir(dir_path)):
|
95 |
+
file_path = os.path.join(dir_path, filename)
|
96 |
+
data = self._load_csv(path=file_path, sep=sep)
|
97 |
+
total_data = pd.concat([total_data, data], ignore_index=True)
|
98 |
+
return total_data
|
99 |
+
|
100 |
+
|
101 |
+
def _save_json(self, data, path):
|
102 |
+
with open(path, "w") as tf:
|
103 |
+
json.dump(data, tf, indent=4)
|
104 |
+
|
105 |
+
|
106 |
+
def init_dial(self, dial_idx=0, ori_dial_id=""):
|
107 |
+
dial = {
|
108 |
+
ORI_DIAL_ID: "",
|
109 |
+
DIAL_IDX: dial_idx,
|
110 |
+
ORI_DIAL_INFO: {},
|
111 |
+
LOG: [],
|
112 |
+
# EK_ORI: {
|
113 |
+
# TOD_EK:{},
|
114 |
+
# },
|
115 |
+
# EK: "",
|
116 |
+
PROMPT: [],
|
117 |
+
}
|
118 |
+
return dial
|
119 |
+
|
120 |
+
|
121 |
+
def init_turn(self, turn_id=0, dial_hist=[]):
|
122 |
+
turn = {
|
123 |
+
TURN_ID: int(turn_id),
|
124 |
+
USR_UTT: "",
|
125 |
+
SYS_UTT: "",
|
126 |
+
DIAL_HIST: " ".join(dial_hist),
|
127 |
+
ORI_USR_ANN: {},
|
128 |
+
ORI_SYS_ANN: {},
|
129 |
+
EK_ORI: {
|
130 |
+
TOD_EK:{},
|
131 |
+
},
|
132 |
+
EK: "",
|
133 |
+
}
|
134 |
+
return turn
|
135 |
+
|
136 |
+
|
137 |
+
def save_dial(self, data, data_name="", file_idx=0, mode="train"):
|
138 |
+
save_name = f"dialogues_{file_idx}.json"
|
139 |
+
folder_path = os.path.join(self.save_dir, data_name, mode)
|
140 |
+
if not os.path.exists(folder_path): os.makedirs(folder_path)
|
141 |
+
path = os.path.join(folder_path, save_name)
|
142 |
+
self._save_json(data, path)
|
143 |
+
|
144 |
+
|
145 |
+
def save_original_examples(self, examples, data_name):
|
146 |
+
"""
|
147 |
+
save 5 original data points just for reference and check
|
148 |
+
data would be a list of length 5, each entry is a dialog
|
149 |
+
in the form of dictionary
|
150 |
+
"""
|
151 |
+
path = os.path.join(self.save_dir, data_name, "original_examples.json")
|
152 |
+
self._save_json(examples, path)
|
153 |
+
print("original examples saved")
|
154 |
+
|
155 |
+
|
156 |
+
def save_converted_examples(self, data_name):
|
157 |
+
"""
|
158 |
+
extract the first 5 examples from the train set of the
|
159 |
+
already processed data, just for reference and check
|
160 |
+
"""
|
161 |
+
data = self._load_json(os.path.join(self.save_dir, data_name, "train/dialogues_1.json"))
|
162 |
+
examples = {key: data[key] for key in list(data.keys())[:5]}
|
163 |
+
self._save_json(examples, os.path.join(self.save_dir, data_name, "converted_examples.json"))
|
164 |
+
print("converted examples saved")
|
165 |
+
|
166 |
+
|
167 |
+
def dict_to_str(self, ek_ori):
|
168 |
+
"""
|
169 |
+
turn non-flat external knowledge into string
|
170 |
+
original format:
|
171 |
+
"metadata":{
|
172 |
+
domain: [
|
173 |
+
{
|
174 |
+
attr1: value1,
|
175 |
+
attr2: value2,
|
176 |
+
...
|
177 |
+
},
|
178 |
+
...
|
179 |
+
]
|
180 |
+
}
|
181 |
+
output format:
|
182 |
+
( metadata : ( domain : ( attr1 : value1 | attr2 : value2 | ... ) | ( ... ) | ... ))
|
183 |
+
"""
|
184 |
+
ek = str(ek_ori).replace("'"," ").replace(", "," | ")
|
185 |
+
ek = ek.replace("{","(").replace("}",")").replace("[","(").replace("]",")")
|
186 |
+
ek = ek.replace(" ", " ")
|
187 |
+
return ek
|
188 |
+
|
189 |
+
|
190 |
+
def wow(self):
|
191 |
+
"""
|
192 |
+
Speakers: Apprentice (always starts a turn), Wizard (ends a turn)
|
193 |
+
turn-level EK only
|
194 |
+
checked facts:
|
195 |
+
|
196 |
+
"""
|
197 |
+
data_name = "wizard_of_wikipedia"
|
198 |
+
for mode in ["train", "val", "test"]:
|
199 |
+
if mode == "train": filename = "train.json"
|
200 |
+
elif mode == "val": filename = "valid_topic_split.json"
|
201 |
+
else: filename = "test_topic_split.json"
|
202 |
+
data = self._load_json(os.path.join(self.data_dir, data_name, filename))
|
203 |
+
new_data, file_idx = {}, 1
|
204 |
+
for dial_idx, dial in tqdm(enumerate(data)):
|
205 |
+
new_dial = self.init_dial(dial_idx=dial_idx+1)
|
206 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx+1}"
|
207 |
+
new_dial[ORI_DIAL_INFO]["chosen_topic"] = dial["chosen_topic"]
|
208 |
+
new_dial[ORI_DIAL_INFO]["persona"] = dial["persona"]
|
209 |
+
new_dial[ORI_DIAL_INFO]["wizard_eval"] = dial["wizard_eval"]
|
210 |
+
new_dial[ORI_DIAL_INFO]["chosen_topic_passage"] = dial["chosen_topic_passage"]
|
211 |
+
turn_idx, dial_hist = 1, []
|
212 |
+
new_turn = self.init_turn(turn_id=turn_idx)
|
213 |
+
for turn in (dial["dialog"]):
|
214 |
+
if turn["speaker"].split("_")[-1] == "Apprentice":
|
215 |
+
new_turn = self.init_turn(turn_id=turn_idx)
|
216 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
217 |
+
for key_ in turn:
|
218 |
+
if key_ == "text":
|
219 |
+
new_turn[USR_UTT] = turn["text"]
|
220 |
+
else:
|
221 |
+
new_turn[ORI_USR_ANN][key_] = turn[key_]
|
222 |
+
|
223 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
224 |
+
elif turn["speaker"].split("_")[-1] == "Wizard":
|
225 |
+
for key_ in turn:
|
226 |
+
if key_ == "text":
|
227 |
+
new_turn[SYS_UTT] = turn["text"]
|
228 |
+
else:
|
229 |
+
new_turn[ORI_SYS_ANN][key_] = turn[key_]
|
230 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
231 |
+
if not turn["checked_passage"]:
|
232 |
+
turn["checked_passage"] = {"none": dial["chosen_topic"]}
|
233 |
+
if not turn["checked_sentence"]:
|
234 |
+
turn["checked_sentence"] = {"no_passages_used": "no_passages_used"}
|
235 |
+
if len(turn["checked_passage"]) == 2 and "no_passages_used" in turn["checked_passage"]:
|
236 |
+
# for case turn["checked_passage"] = {'chosen_topic_0_Aquarium': 'Aquarium', 'no_passages_used': 'no_passages_used'}
|
237 |
+
del turn["checked_passage"]["no_passages_used"]
|
238 |
+
# if len(turn["checked_passage"].values()) != 1 or len(turn["checked_sentence"].values()) != 1: pdb.set_trace()
|
239 |
+
title = list(turn["checked_passage"].values())[0]
|
240 |
+
sent = list(turn["checked_sentence"].values())[0]
|
241 |
+
new_turn[EK_ORI][TOD_EK][title] = sent
|
242 |
+
new_turn[EK] = self.dict_to_str(new_turn[EK_ORI][TOD_EK])
|
243 |
+
new_dial[LOG].append(new_turn)
|
244 |
+
turn_idx += 1
|
245 |
+
else:
|
246 |
+
print(turn["speaker"])
|
247 |
+
raise ValueError("Unknown speaker")
|
248 |
+
|
249 |
+
if not new_turn[SYS_UTT]:
|
250 |
+
new_dial[LOG].append(new_turn)
|
251 |
+
|
252 |
+
new_data[new_dial_id] = new_dial
|
253 |
+
if new_dial[DIAL_IDX] % 10000 == 0:
|
254 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
255 |
+
new_data = {} # reset
|
256 |
+
file_idx += 1
|
257 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
258 |
+
if mode == "train": self.save_original_examples(data[:5], data_name)
|
259 |
+
print(f"finishing processing {dial_idx+1} dialogs for {mode} set ...")
|
260 |
+
self.save_converted_examples(data_name)
|
261 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
262 |
+
|
263 |
+
|
264 |
+
def woi(self):
|
265 |
+
"""
|
266 |
+
actions:
|
267 |
+
Apprentice => Wizard
|
268 |
+
Wizard => SearchAgent
|
269 |
+
SearchAgent => Wizard
|
270 |
+
Wizard => Apprentice
|
271 |
+
"""
|
272 |
+
data_name = "wizard_of_internet"
|
273 |
+
for mode in ["test", "train"]:
|
274 |
+
data = self._load_jsonl(os.path.join(self.data_dir, data_name, f"{mode}.jsonl"))
|
275 |
+
data = {k:v for dial in data for k,v in dial.items()}
|
276 |
+
new_data, file_idx, dial_idx = {}, 1, 1
|
277 |
+
for dial_id, dial in tqdm(data.items()):
|
278 |
+
# new_dial = dial
|
279 |
+
new_dial = self.init_dial(dial_idx=dial_idx)
|
280 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
281 |
+
new_dial[ORI_DIAL_ID] = dial_id
|
282 |
+
new_dial[ORI_DIAL_INFO]["apprentice_persona"] = dial["apprentice_persona"]
|
283 |
+
new_dial[ORI_DIAL_INFO]["start_timestamp"] = dial["start_timestamp"]
|
284 |
+
turn_idx, dial_hist = 1, []
|
285 |
+
new_turn = self.init_turn(turn_id=turn_idx)
|
286 |
+
for turn in dial["dialog_history"]:
|
287 |
+
if turn["action"] == "Apprentice => Wizard":
|
288 |
+
new_turn = self.init_turn(turn_id=turn_idx)
|
289 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
290 |
+
new_turn[USR_UTT] = turn["text"]
|
291 |
+
new_turn[ORI_USR_ANN]["timestamp"] = turn["timestamp"]
|
292 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
293 |
+
elif turn["action"] == "Wizard => SearchAgent":
|
294 |
+
if "query" not in new_turn[ORI_SYS_ANN]:
|
295 |
+
new_turn[ORI_SYS_ANN]["query"] = []
|
296 |
+
new_turn[ORI_SYS_ANN]["query"].append({
|
297 |
+
"query": turn["text"],
|
298 |
+
"query_result": "",
|
299 |
+
"timestamp_query": turn["timestamp"],
|
300 |
+
})
|
301 |
+
elif turn["action"] == "SearchAgent => Wizard":
|
302 |
+
# checked, each query corresponds to one query result
|
303 |
+
# if new_turn[ORI_SYS_ANN]["query"][-1]["query_result"]: pdb.set_trace()
|
304 |
+
new_turn[ORI_SYS_ANN]["query"][-1]["query_result"] = turn["context"]
|
305 |
+
elif turn["action"] == "Wizard => Apprentice":
|
306 |
+
new_turn[SYS_UTT] = turn["text"]
|
307 |
+
for doc_id, doc in enumerate(turn["context"]["selected_contents"][1:]):
|
308 |
+
for sent_id, choose in enumerate(doc):
|
309 |
+
if choose:
|
310 |
+
title = turn["context"]["contents"][doc_id]["title"]
|
311 |
+
sent = turn["context"]["contents"][doc_id]["content"][sent_id]
|
312 |
+
if title not in new_turn[EK_ORI][TOD_EK]:
|
313 |
+
new_turn[EK_ORI][TOD_EK][title] = []
|
314 |
+
new_turn[EK_ORI][TOD_EK][title].append(sent)
|
315 |
+
new_turn[EK] = self.dict_to_str(new_turn[EK_ORI][TOD_EK])
|
316 |
+
new_turn[ORI_SYS_ANN]["context"] = turn["context"]
|
317 |
+
new_turn[ORI_SYS_ANN]["timestamp"] = turn["timestamp"]
|
318 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
319 |
+
new_dial[LOG].append(new_turn)
|
320 |
+
turn_idx += 1
|
321 |
+
else:
|
322 |
+
# checked, no such turns
|
323 |
+
print(turn["action"])
|
324 |
+
raise ValueError("The fifth case")
|
325 |
+
if not new_turn[SYS_UTT]:
|
326 |
+
new_dial[LOG].append(new_turn)
|
327 |
+
|
328 |
+
# new_dial[EK_ORI][TOD_EK]["apprentice_persona"] = dial["apprentice_persona"]
|
329 |
+
# new_dial[EK] = self.dict_to_str(new_dial[EK_ORI][TOD_EK])
|
330 |
+
new_data[new_dial_id] = new_dial
|
331 |
+
if dial_idx % 10000 == 0:
|
332 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
333 |
+
new_data = {} # reset
|
334 |
+
file_idx += 1
|
335 |
+
dial_idx += 1
|
336 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
337 |
+
if mode == "train": self.save_original_examples({k:data[k] for k in list(data.keys())[:5]}, data_name)
|
338 |
+
print(f"finishing processing {dial_idx-1} dialogs for {mode} set ...")
|
339 |
+
self.save_converted_examples(data_name)
|
340 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
341 |
+
|
342 |
+
def run_all(self):
|
343 |
+
self.wow()
|
344 |
+
self.woi()
|
345 |
+
|
346 |
+
|
347 |
+
def copy_example(self):
|
348 |
+
source_dir = self.save_dir
|
349 |
+
for target_dir in [ "/home/qkun/projs/TOD-Project/Datasets/Knowledge-Grounded_PROCESSED/", "/home/qkun/projs/DialogStudio-Release/knowledge-grounded-dialogues/"]:
|
350 |
+
# target_dir = "/home/qkun/projs/TOD-Project/Datasets/Knowledge-Grounded_PROCESSED/"
|
351 |
+
file_list = ["converted_examples.json", "original_examples.json", "readme.txt", "LICENSE"]
|
352 |
+
for dir_name in sorted(os.listdir(source_dir)):
|
353 |
+
if os.path.isfile(os.path.join(source_dir, dir_name)): continue
|
354 |
+
if not os.path.exists(os.path.join(target_dir, dir_name)): os.makedirs(os.path.join(target_dir, dir_name))
|
355 |
+
for filename in file_list:
|
356 |
+
source_path = os.path.join(source_dir, dir_name, filename)
|
357 |
+
target_path = os.path.join(target_dir, dir_name, filename)
|
358 |
+
if not os.path.exists(source_path): continue
|
359 |
+
shutil.copy(source_path, target_path)
|
360 |
+
|
361 |
+
|
362 |
+
def main():
|
363 |
+
preprocess = PreProcessData()
|
364 |
+
preprocess.run_all()
|
365 |
+
preprocess.copy_example()
|
366 |
+
|
367 |
+
if __name__ == '__main__':
|
368 |
+
main()
|
code/preprocess_data_OD.py
ADDED
@@ -0,0 +1,574 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Copyright (c) 2023, salesforce.com, inc.
|
3 |
+
All rights reserved.
|
4 |
+
SPDX-License-Identifier: Apache License 2.0
|
5 |
+
For full license text, see the LICENSE file in the repo root or https://www.apache.org/licenses/LICENSE-2.0
|
6 |
+
"""
|
7 |
+
|
8 |
+
#!/usr/bin/env python3
|
9 |
+
#
|
10 |
+
import sys, os, pdb
|
11 |
+
import json
|
12 |
+
import shutil, errno
|
13 |
+
from tqdm import tqdm
|
14 |
+
import pandas as pd
|
15 |
+
from constant import *
|
16 |
+
|
17 |
+
|
18 |
+
class PreProcessData(object):
|
19 |
+
"""docstring for PreProcessData"""
|
20 |
+
def __init__(self):
|
21 |
+
super(PreProcessData, self).__init__()
|
22 |
+
self.data_dir = "/path/to/where/the/raw/dataset/is"
|
23 |
+
self.save_dir = "/path/to/store/the/processed/dataset/" # e.g. ./data/processed/Open-Domain
|
24 |
+
|
25 |
+
|
26 |
+
def _load_json(self, path=None):
|
27 |
+
if path is None or not os.path.exists(path):
|
28 |
+
raise IOError('File does not exist: %s' % path)
|
29 |
+
# return None
|
30 |
+
with open(path) as df:
|
31 |
+
data = json.loads(df.read())
|
32 |
+
return data
|
33 |
+
|
34 |
+
|
35 |
+
def _load_txt(self, path=None, split_tok="\n", encoding="utf-8"):
|
36 |
+
if path is None or not os.path.exists(path):
|
37 |
+
raise IOError('File does not exist: %s' % path)
|
38 |
+
with open(path, 'r', encoding=encoding) as df:
|
39 |
+
data = df.read().strip().split(split_tok)
|
40 |
+
return data
|
41 |
+
|
42 |
+
|
43 |
+
def _load_csv(self, path=None, sep="\t"):
|
44 |
+
if path is None or not os.path.exists(path):
|
45 |
+
raise IOError('File does not exist: %s' % path)
|
46 |
+
with open(path) as df:
|
47 |
+
data = pd.read_csv(df, sep=sep)
|
48 |
+
return data
|
49 |
+
|
50 |
+
|
51 |
+
def _load_jsonl(self, path=None):
|
52 |
+
if path is None or not os.path.exists(path):
|
53 |
+
raise IOError('File does not exist: %s' % path)
|
54 |
+
data = []
|
55 |
+
with open(path) as df:
|
56 |
+
for line in df.readlines():
|
57 |
+
data.append(json.loads(line))
|
58 |
+
return data
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
def _load_dir_json(self, dir_path=None):
|
63 |
+
if dir_path is None or not os.path.exists(dir_path): return None
|
64 |
+
total_data = [] # assume data is a list of dialogs
|
65 |
+
for filename in sorted(os.listdir(dir_path)):
|
66 |
+
if filename in ["schema.json"]: continue
|
67 |
+
if not filename.endswith(".json"): continue
|
68 |
+
file_path = os.path.join(dir_path, filename)
|
69 |
+
data = self._load_json(path=file_path)
|
70 |
+
if type(data) == list:
|
71 |
+
total_data.extend(data)
|
72 |
+
else:
|
73 |
+
total_data.append(data)
|
74 |
+
return total_data
|
75 |
+
|
76 |
+
|
77 |
+
def _load_dir_txt(self, dir_path=None, file_type="txt"):
|
78 |
+
if dir_path is None or not os.path.exists(dir_path): return None
|
79 |
+
total_data = [] # assume data is a list of dialogs
|
80 |
+
for filename in sorted(os.listdir(dir_path)):
|
81 |
+
if not filename.endswith(file_type): continue
|
82 |
+
file_path = os.path.join(dir_path, filename)
|
83 |
+
data = self._load_txt(path=file_path)
|
84 |
+
if type(data) == list:
|
85 |
+
total_data.extend(data)
|
86 |
+
else:
|
87 |
+
total_data.append(data)
|
88 |
+
return total_data
|
89 |
+
|
90 |
+
|
91 |
+
def _load_dir_tsv(self, dir_path=None, sep="\t"):
|
92 |
+
if dir_path is None or not os.path.exists(dir_path): return None
|
93 |
+
total_data = None
|
94 |
+
for filename in sorted(os.listdir(dir_path)):
|
95 |
+
file_path = os.path.join(dir_path, filename)
|
96 |
+
data = self._load_csv(path=file_path, sep=sep)
|
97 |
+
total_data = pd.concat([total_data, data], ignore_index=True)
|
98 |
+
return total_data
|
99 |
+
|
100 |
+
|
101 |
+
def _save_json(self, data, path):
|
102 |
+
with open(path, "w") as tf:
|
103 |
+
json.dump(data, tf, indent=4)
|
104 |
+
|
105 |
+
|
106 |
+
def init_dial(self, dial_idx=0, ori_dial_id=""):
|
107 |
+
dial = {
|
108 |
+
ORI_DIAL_ID: ori_dial_id,
|
109 |
+
DIAL_IDX: int(dial_idx),
|
110 |
+
ORI_DIAL_INFO: {},
|
111 |
+
LOG: [],
|
112 |
+
PROMPT: [],
|
113 |
+
}
|
114 |
+
return dial
|
115 |
+
|
116 |
+
|
117 |
+
def init_turn(self, turn_id=0, dial_hist=[]):
|
118 |
+
turn = {
|
119 |
+
TURN_ID: int(turn_id),
|
120 |
+
USR_UTT: "",
|
121 |
+
SYS_UTT: "",
|
122 |
+
DIAL_HIST: " ".join(dial_hist),
|
123 |
+
ORI_USR_ANN: {},
|
124 |
+
ORI_SYS_ANN: {},
|
125 |
+
}
|
126 |
+
return turn
|
127 |
+
|
128 |
+
|
129 |
+
def save_dial(self, data, data_name="", file_idx=0, mode="train"):
|
130 |
+
save_name = f"dialogues_{file_idx}.json"
|
131 |
+
folder_path = os.path.join(self.save_dir, data_name, mode)
|
132 |
+
if not os.path.exists(folder_path): os.makedirs(folder_path)
|
133 |
+
path = os.path.join(folder_path, save_name)
|
134 |
+
self._save_json(data, path)
|
135 |
+
|
136 |
+
|
137 |
+
def save_original_examples(self, examples, data_name):
|
138 |
+
"""
|
139 |
+
save 5 original data points just for reference and check
|
140 |
+
data would be a list of length 5, each entry is a dialog
|
141 |
+
in the form of dictionary
|
142 |
+
"""
|
143 |
+
path = os.path.join(self.save_dir, data_name, "original_examples.json")
|
144 |
+
self._save_json(examples, path)
|
145 |
+
print("original examples saved")
|
146 |
+
|
147 |
+
|
148 |
+
def save_converted_examples(self, data_name):
|
149 |
+
"""
|
150 |
+
extract the first 5 examples from the train set of the
|
151 |
+
already processed data, just for reference and check
|
152 |
+
"""
|
153 |
+
data = self._load_json(os.path.join(self.save_dir, data_name, "train/dialogues_1.json"))
|
154 |
+
examples = {key: data[key] for key in list(data.keys())[:5]}
|
155 |
+
self._save_json(examples, os.path.join(self.save_dir, data_name, "converted_examples.json"))
|
156 |
+
print("converted examples saved")
|
157 |
+
|
158 |
+
|
159 |
+
|
160 |
+
def places(self):
|
161 |
+
"""
|
162 |
+
no train/val/test split"""
|
163 |
+
data_name = "PLACES3.5"
|
164 |
+
mode = "train"
|
165 |
+
data = self._load_jsonl(os.path.join(self.data_dir, data_name, "data.jsonl"))
|
166 |
+
new_data, file_idx, dial_idx = {}, 1, 1
|
167 |
+
for dial in (data):
|
168 |
+
new_dial = self.init_dial(dial_idx=dial_idx)
|
169 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
170 |
+
for key in dial:
|
171 |
+
if key == "conversation": continue
|
172 |
+
new_dial[ORI_DIAL_INFO][key] = dial[key]
|
173 |
+
dial_hist, multiparty = [], False
|
174 |
+
for turn_idx, utt in enumerate(dial["conversation"]):
|
175 |
+
if utt.startswith("Alice:"):
|
176 |
+
new_turn = self.init_turn(turn_id=turn_idx//2+1)
|
177 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
178 |
+
new_turn[USR_UTT] = utt.split("Alice:")[-1].strip()
|
179 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
180 |
+
elif utt.startswith("Bob:"):
|
181 |
+
new_turn[SYS_UTT] = utt.split("Bob:")[-1].strip()
|
182 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
183 |
+
new_dial[LOG].append(new_turn)
|
184 |
+
elif utt.startswith("Emilie:"):
|
185 |
+
multiparty = True
|
186 |
+
break
|
187 |
+
else:
|
188 |
+
if len(utt.split(":")[0].split()) == 1:
|
189 |
+
# might have a third speaker
|
190 |
+
raise ValueError("Unknown Speaker ... ")
|
191 |
+
else:
|
192 |
+
if not turn_idx: continue
|
193 |
+
if new_turn[SYS_UTT]:
|
194 |
+
new_turn[SYS_UTT] += " " + utt
|
195 |
+
else:
|
196 |
+
new_turn[USR_UTT] += " " + utt
|
197 |
+
dial_hist[-1] += " " + utt
|
198 |
+
if multiparty: continue
|
199 |
+
new_data[new_dial_id] = new_dial
|
200 |
+
if (dial_idx) % 10000 == 0:
|
201 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
202 |
+
new_data = {} # reset
|
203 |
+
file_idx += 1
|
204 |
+
dial_idx += 1
|
205 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
206 |
+
print(f"finishing processing {new_dial[DIAL_IDX]} dialogs for {mode} set ...")
|
207 |
+
self.save_original_examples(data[:5], data_name)
|
208 |
+
self.save_converted_examples(data_name)
|
209 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
210 |
+
|
211 |
+
|
212 |
+
def chitchat(self):
|
213 |
+
"""
|
214 |
+
no train/val/test split"""
|
215 |
+
data_name = "chitchat-dataset"
|
216 |
+
mode = "train"
|
217 |
+
data = self._load_json(os.path.join(self.data_dir, data_name, "chitchat_dataset/dataset.json"))
|
218 |
+
new_data, file_idx, dial_idx = {}, 1, 1
|
219 |
+
for dial_id, dial in data.items():
|
220 |
+
new_dial = self.init_dial(dial_idx=dial_idx)
|
221 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
222 |
+
new_dial[ORI_DIAL_ID] = dial_id
|
223 |
+
for key in dial:
|
224 |
+
if key == "messages": continue
|
225 |
+
new_dial[ORI_DIAL_INFO][key] = dial[key]
|
226 |
+
dial_hist, speakers = [], []
|
227 |
+
for turn in dial["messages"]:
|
228 |
+
if turn[0]["sender"] not in speakers:
|
229 |
+
speakers.append(turn[0]["sender"])
|
230 |
+
if len(speakers) < 2: continue
|
231 |
+
# if len(speakers) != 2:
|
232 |
+
# print("This is a multi-party dialog")
|
233 |
+
# continue
|
234 |
+
for turn_idx, turn in enumerate(dial["messages"]):
|
235 |
+
if turn[0]["sender"] == speakers[0]:
|
236 |
+
new_turn = self.init_turn(turn_id=turn_idx//2+1)
|
237 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
238 |
+
new_turn[USR_UTT] = " ".join([row["text"] for row in turn])
|
239 |
+
new_turn[ORI_USR_ANN]["sender"] = turn[0]["sender"]
|
240 |
+
new_turn[ORI_USR_ANN]["timestamp"] = [row["timestamp"] for row in turn]
|
241 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
242 |
+
|
243 |
+
elif turn[0]["sender"] == speakers[1]:
|
244 |
+
new_turn[SYS_UTT] = " ".join([row["text"] for row in turn])
|
245 |
+
new_turn[ORI_SYS_ANN]["sender"] = turn[0]["sender"]
|
246 |
+
new_turn[ORI_SYS_ANN]["timestamp"] = [row["timestamp"] for row in turn]
|
247 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
248 |
+
new_dial[LOG].append(new_turn)
|
249 |
+
|
250 |
+
new_data[new_dial_id] = new_dial
|
251 |
+
if (dial_idx) % 10000 == 0:
|
252 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
253 |
+
new_data = {} # reset
|
254 |
+
file_idx += 1
|
255 |
+
dial_idx += 1
|
256 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
257 |
+
print(f"finishing processing {new_dial[DIAL_IDX]} dialogs for {mode} set ...")
|
258 |
+
self.save_original_examples({k:data[k] for k in list(data.keys())[:5]}, data_name)
|
259 |
+
self.save_converted_examples(data_name)
|
260 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
261 |
+
|
262 |
+
|
263 |
+
def prosocial(self):
|
264 |
+
data_name = "Prosocial"
|
265 |
+
from datasets import load_dataset
|
266 |
+
for mode in ["train", "val", "test"]:
|
267 |
+
new_data, file_idx = {}, 1
|
268 |
+
real_name = "validation" if mode == "val" else mode
|
269 |
+
data = load_dataset("allenai/prosocial-dialog", split=real_name)
|
270 |
+
data_df = data.to_pandas()
|
271 |
+
for row_id in (range(len(data_df))):
|
272 |
+
if data_df["response_id"][row_id] == 0:
|
273 |
+
new_dial = self.init_dial(dial_idx=data_df["dialogue_id"][row_id]+1)
|
274 |
+
dial_hist = []
|
275 |
+
|
276 |
+
new_turn = self.init_turn(turn_id=data_df["response_id"][row_id]+1)
|
277 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
278 |
+
new_turn[USR_UTT] = data_df["context"][row_id]
|
279 |
+
new_turn[SYS_UTT] = data_df["response"][row_id]
|
280 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
281 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
282 |
+
|
283 |
+
for key in data_df.keys():
|
284 |
+
if key in ["context", "response"]: continue
|
285 |
+
# numpy.ndarray cannot be written into json
|
286 |
+
if type(data_df[key][row_id]) == str:
|
287 |
+
new_turn[ORI_USR_ANN][key] = data_df[key][row_id]
|
288 |
+
else:
|
289 |
+
new_turn[ORI_USR_ANN][key] = data_df[key][row_id].tolist()
|
290 |
+
|
291 |
+
new_dial[LOG].append(new_turn)
|
292 |
+
if data_df["episode_done"][row_id]:
|
293 |
+
new_dial_id = f"{data_name}--{mode}--{new_dial[DIAL_IDX]}"
|
294 |
+
new_data[new_dial_id] = new_dial
|
295 |
+
if new_dial[DIAL_IDX] % 10000 == 0:
|
296 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
297 |
+
new_data = {} # reset
|
298 |
+
file_idx += 1
|
299 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
300 |
+
print(f"finishing processing {new_dial[DIAL_IDX]} dialogs for {mode} set ...")
|
301 |
+
self.save_original_examples(data[:5], data_name)
|
302 |
+
self.save_converted_examples(data_name)
|
303 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
304 |
+
|
305 |
+
|
306 |
+
def hhrlhf(self):
|
307 |
+
"""
|
308 |
+
only use the chosen pair"""
|
309 |
+
from datasets import load_dataset
|
310 |
+
data_name = "HH-RLHF"
|
311 |
+
for mode in ["train", "test"]:
|
312 |
+
data = load_dataset("Anthropic/hh-rlhf", split=mode)
|
313 |
+
data_df = data.to_pandas()
|
314 |
+
new_data, file_idx = {}, 1
|
315 |
+
for i in (range(len(data_df))):
|
316 |
+
new_dial = self.init_dial(dial_idx=i+1)
|
317 |
+
new_dial_id = f"{data_name}--{mode}--{i+1}"
|
318 |
+
dial_hist = []
|
319 |
+
utts = data_df["chosen"][i].replace("Assistant:", "Human:").split("Human:")
|
320 |
+
for turn_idx, utt in enumerate(utts[1:]):
|
321 |
+
utt = utt.replace("\n\n", " ").strip()
|
322 |
+
if turn_idx % 2 == 0:
|
323 |
+
new_turn = self.init_turn(turn_id=turn_idx//2+1)
|
324 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
325 |
+
new_turn[USR_UTT] = utt
|
326 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
327 |
+
else:
|
328 |
+
new_turn[SYS_UTT] = utt
|
329 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
330 |
+
new_dial[LOG].append(new_turn)
|
331 |
+
|
332 |
+
new_data[new_dial_id] = new_dial
|
333 |
+
if new_dial[DIAL_IDX] % 10000 == 0:
|
334 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
335 |
+
new_data = {} # reset
|
336 |
+
file_idx += 1
|
337 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
338 |
+
print(f"finishing processing {new_dial[DIAL_IDX]} dialogs for {mode} set ...")
|
339 |
+
self.save_original_examples(data[:5], data_name)
|
340 |
+
self.save_converted_examples(data_name)
|
341 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
342 |
+
|
343 |
+
|
344 |
+
def empathetic(self):
|
345 |
+
"""
|
346 |
+
consecutive turns from the same speaker happens"""
|
347 |
+
data_name = "Empathetic"
|
348 |
+
from datasets import load_dataset
|
349 |
+
for mode in ["train", "val", "test"]:
|
350 |
+
real_name = "validation" if mode == "val" else mode
|
351 |
+
data = load_dataset("empathetic_dialogues", split=real_name)
|
352 |
+
data_df = data.to_pandas()
|
353 |
+
new_data, file_idx, dial_idx, speakers = {}, 1, 1, []
|
354 |
+
for row_id in (range(len(data_df))):
|
355 |
+
utt = data_df["utterance"][row_id].replace("_comma_", ",").strip()
|
356 |
+
if data_df["utterance_idx"][row_id] == 1:
|
357 |
+
new_dial = self.init_dial(dial_idx)
|
358 |
+
new_dial[ORI_DIAL_ID] = data_df["conv_id"][row_id]
|
359 |
+
new_dial[ORI_DIAL_INFO]["context"] = data_df["context"][row_id]
|
360 |
+
new_dial[ORI_DIAL_INFO]["selfeval"] = data_df["selfeval"][row_id]
|
361 |
+
dial_hist = []
|
362 |
+
|
363 |
+
# process the first turn
|
364 |
+
new_turn = self.init_turn(turn_id=1)
|
365 |
+
new_turn[USR_UTT] = data_df["prompt"][row_id].strip()
|
366 |
+
new_turn[SYS_UTT] = utt
|
367 |
+
new_turn[ORI_USR_ANN]["tags"] = ""
|
368 |
+
new_turn[ORI_USR_ANN]["speaker_idx"] = int(data_df["speaker_idx"][row_id+1])
|
369 |
+
new_turn[ORI_SYS_ANN]["tags"] = data_df["tags"][row_id]
|
370 |
+
new_turn[ORI_SYS_ANN]["speaker_idx"] = int(data_df["speaker_idx"][row_id])
|
371 |
+
|
372 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
373 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
374 |
+
# speakers.append(data_df["speaker_idx"][row_id])
|
375 |
+
# in the first turn, the first speaker's utt is in the prompt and
|
376 |
+
# utterance contains the utt from the second speaker
|
377 |
+
second_speaker_id = data_df["speaker_idx"][row_id]
|
378 |
+
new_dial[LOG].append(new_turn)
|
379 |
+
new_turn = self.init_turn(turn_id=(int(data_df["utterance_idx"][row_id])+1)//2+1)
|
380 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
381 |
+
|
382 |
+
elif data_df["speaker_idx"][row_id] == second_speaker_id:
|
383 |
+
if not new_turn[USR_UTT]: # in this case, consecutive turns from system side happens, we add utt directly to new_dial[LOG][-1]
|
384 |
+
new_dial[LOG][-1][SYS_UTT] += " " + utt
|
385 |
+
dial_hist[-1] += " " + utt
|
386 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
387 |
+
else:
|
388 |
+
new_turn[SYS_UTT] = utt
|
389 |
+
new_turn[ORI_SYS_ANN]["tags"] = data_df["tags"][row_id]
|
390 |
+
new_turn[ORI_SYS_ANN]["speaker_idx"] = int(data_df["speaker_idx"][row_id])
|
391 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
392 |
+
new_dial[LOG].append(new_turn)
|
393 |
+
new_turn = self.init_turn(turn_id=(int(data_df["utterance_idx"][row_id])+1)//2+1)
|
394 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
395 |
+
|
396 |
+
else:
|
397 |
+
if not new_turn[USR_UTT]:
|
398 |
+
new_turn[USR_UTT] = utt
|
399 |
+
new_turn[ORI_USR_ANN]["tags"] = data_df["tags"][row_id]
|
400 |
+
new_turn[ORI_USR_ANN]["speaker_idx"] = int(data_df["speaker_idx"][row_id])
|
401 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
402 |
+
else: # in this case, consecutive turns from user side happens, we add utt directly to new_turn
|
403 |
+
new_turn[USR_UTT] += " " + utt
|
404 |
+
dial_hist[-1] += " " + utt
|
405 |
+
|
406 |
+
if row_id == len(data_df)-1 or data_df["utterance_idx"][row_id+1] == 1:
|
407 |
+
# append the rest dialog in case ends with user side
|
408 |
+
if new_turn[USR_UTT]:
|
409 |
+
new_dial[LOG].append(new_turn)
|
410 |
+
|
411 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
412 |
+
new_data[new_dial_id] = new_dial
|
413 |
+
|
414 |
+
if dial_idx % 10000 == 0:
|
415 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
416 |
+
new_data = {} # reset
|
417 |
+
file_idx += 1
|
418 |
+
dial_idx += 1
|
419 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
420 |
+
print(f"finishing processing {dial_idx-1} dialogs for {mode} set ...")
|
421 |
+
self.save_original_examples(data[:5], data_name)
|
422 |
+
self.save_converted_examples(data_name)
|
423 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
424 |
+
|
425 |
+
|
426 |
+
def convai2(self):
|
427 |
+
"""
|
428 |
+
incomplete dialog included, we remove dialog with equal or less than one turn"""
|
429 |
+
from datasets import load_dataset
|
430 |
+
data_name = "ConvAI2"
|
431 |
+
mode = "train"
|
432 |
+
data = load_dataset("conv_ai_2", split=mode)
|
433 |
+
data_df = data.to_pandas()
|
434 |
+
new_data, file_idx, dial_idx = {}, 1, 1
|
435 |
+
for i in (range(len(data_df))):
|
436 |
+
new_dial = self.init_dial(dial_idx=dial_idx)
|
437 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
438 |
+
new_dial[ORI_DIAL_ID] = data_df["dialog_id"][i]
|
439 |
+
new_dial[ORI_DIAL_INFO]["id"] = data_df["id"][i]
|
440 |
+
new_dial[ORI_DIAL_INFO]["bot_profile"] = ["".join(persona) for persona in data_df["bot_profile"][i]]
|
441 |
+
new_dial[ORI_DIAL_INFO]["user_profile"] = ["".join(persona) for persona in data_df["user_profile"][i]]
|
442 |
+
new_dial[ORI_DIAL_INFO]["eval_score"] = int(data_df["eval_score"][i])
|
443 |
+
new_dial[ORI_DIAL_INFO]["profile_match"] = int(data_df["profile_match"][i])
|
444 |
+
if len(data_df["dialog"][i]) <= 2: continue
|
445 |
+
if "Text is not given." in " ".join([turn["text"] for turn in data_df["dialog"][i]]): continue
|
446 |
+
dial_hist = []
|
447 |
+
for turn_idx, turn in enumerate(data_df["dialog"][i]):
|
448 |
+
if turn_idx % 2 == 0:
|
449 |
+
new_turn = self.init_turn(turn_id=turn_idx//2+1)
|
450 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
451 |
+
new_turn[USR_UTT] = turn["text"]
|
452 |
+
new_turn[ORI_USR_ANN]["id"] = turn["id"]
|
453 |
+
new_turn[ORI_USR_ANN]["sender"] = turn["sender"]
|
454 |
+
new_turn[ORI_USR_ANN]["sender_class"] = turn["sender_class"]
|
455 |
+
|
456 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
457 |
+
else:
|
458 |
+
new_turn[SYS_UTT] = turn["text"]
|
459 |
+
new_turn[ORI_SYS_ANN]["id"] = turn["id"]
|
460 |
+
new_turn[ORI_SYS_ANN]["sender"] = turn["sender"]
|
461 |
+
new_turn[ORI_SYS_ANN]["sender_class"] = turn["sender_class"]
|
462 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
463 |
+
new_dial[LOG].append(new_turn)
|
464 |
+
if not new_turn[SYS_UTT]:
|
465 |
+
new_dial[LOG].append(new_turn)
|
466 |
+
new_data[new_dial_id] = new_dial
|
467 |
+
if new_dial[DIAL_IDX] % 10000 == 0:
|
468 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
469 |
+
new_data = {} # reset
|
470 |
+
file_idx += 1
|
471 |
+
dial_idx += 1
|
472 |
+
print(f"finishing processing {dial_idx-1} dialogs for {mode} set ...")
|
473 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
474 |
+
self.save_original_examples(data[:5], data_name)
|
475 |
+
self.save_converted_examples(data_name)
|
476 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
477 |
+
|
478 |
+
|
479 |
+
def antiscam(self):
|
480 |
+
"""
|
481 |
+
0: attacker
|
482 |
+
1: agent
|
483 |
+
0 always starts conversation
|
484 |
+
1 always ends conversation
|
485 |
+
"""
|
486 |
+
data_name = "AntiScam"
|
487 |
+
data = self._load_txt(os.path.join(self.data_dir, data_name, "data/AntiScam_all.txt"), encoding='latin-1')
|
488 |
+
new_data, file_idx, dial_idx, turn_idx, dial_hist = {}, 1, 1, 1, []
|
489 |
+
mode = "train"
|
490 |
+
new_dial = self.init_dial(dial_idx=dial_idx)
|
491 |
+
new_turn = self.init_turn(turn_id=turn_idx)
|
492 |
+
for row in (data):
|
493 |
+
speaker, utt = row.split("\t")
|
494 |
+
if speaker == "0":
|
495 |
+
if new_turn[SYS_UTT]: # start a new turn
|
496 |
+
# wrap up the previous turn
|
497 |
+
new_dial[LOG].append(new_turn)
|
498 |
+
turn_idx += 1
|
499 |
+
dial_hist.append(f"<{SPEAKER1.upper()}> " + new_turn[USR_UTT])
|
500 |
+
dial_hist.append(f"<{SPEAKER2.upper()}> " + new_turn[SYS_UTT])
|
501 |
+
# start a new turn
|
502 |
+
new_turn = self.init_turn(turn_id=turn_idx)
|
503 |
+
new_turn[DIAL_HIST] = " ".join(dial_hist)
|
504 |
+
new_turn[USR_UTT] = utt.strip('\"')
|
505 |
+
else: # multiple utt from '0'
|
506 |
+
new_turn[USR_UTT] += " " + utt.strip('\"')
|
507 |
+
new_turn[USR_UTT] = new_turn[USR_UTT].strip()
|
508 |
+
elif speaker == "1":
|
509 |
+
new_turn[SYS_UTT] += " " + utt.strip('"')
|
510 |
+
new_turn[SYS_UTT] = new_turn[SYS_UTT].strip()
|
511 |
+
elif not speaker: # finish a dialog
|
512 |
+
if new_turn[SYS_UTT]: # wrap up the previous turn
|
513 |
+
new_dial[LOG].append(new_turn)
|
514 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
515 |
+
new_data[new_dial_id] = new_dial
|
516 |
+
if dial_idx % 10000 == 0:
|
517 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
518 |
+
new_data = {} # reset
|
519 |
+
file_idx += 1
|
520 |
+
dial_idx += 1
|
521 |
+
turn_idx = 1
|
522 |
+
dial_hist = []
|
523 |
+
new_dial = self.init_dial(dial_idx=dial_idx)
|
524 |
+
new_turn = self.init_turn(turn_id=turn_idx)
|
525 |
+
else:
|
526 |
+
raise ValueError("Unknown speaker ... ")
|
527 |
+
if new_turn[SYS_UTT]:
|
528 |
+
new_dial[LOG].append(new_turn)
|
529 |
+
new_dial_id = f"{data_name}--{mode}--{dial_idx}"
|
530 |
+
new_data[new_dial_id] = new_dial
|
531 |
+
print(f"finishing processing {dial_idx} dialogs for {mode} set ...")
|
532 |
+
self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
533 |
+
|
534 |
+
if new_data: self.save_dial(new_data, data_name=data_name, file_idx=file_idx, mode=mode)
|
535 |
+
self.save_original_examples(data[:150], data_name)
|
536 |
+
self.save_converted_examples(data_name)
|
537 |
+
print("*"*10, f"finishing processing dataset {data_name}", "*"*10)
|
538 |
+
|
539 |
+
|
540 |
+
|
541 |
+
|
542 |
+
def run_all(self):
|
543 |
+
# self.places()
|
544 |
+
# self.chitchat()
|
545 |
+
# self.prosocial()
|
546 |
+
# self.hhrlhf()
|
547 |
+
# self.empathetic()
|
548 |
+
# self.convai2()
|
549 |
+
self.antiscam()
|
550 |
+
|
551 |
+
|
552 |
+
def copy_example(self):
|
553 |
+
source_dir = self.save_dir
|
554 |
+
for target_dir in [ "/home/qkun/projs/TOD-Project/Datasets/Open-Domain_PROCESSED/", "/home/qkun/projs/DialogStudio-Release/open-domain-dialogues/"]:
|
555 |
+
# target_dir = "/home/qkun/projs/TOD-Project/Datasets/Open-Domain_PROCESSED/"
|
556 |
+
# target_dir2 = "/home/qkun/projs/DialogStudio-Release/open-domain-dialogues/"
|
557 |
+
file_list = ["converted_examples.json", "original_examples.json", "readme.txt", "LICENSE"]
|
558 |
+
for dir_name in sorted(os.listdir(source_dir)):
|
559 |
+
if os.path.isfile(os.path.join(source_dir, dir_name)): continue
|
560 |
+
if not os.path.exists(os.path.join(target_dir, dir_name)): os.makedirs(os.path.join(target_dir, dir_name))
|
561 |
+
for filename in file_list:
|
562 |
+
source_path = os.path.join(source_dir, dir_name, filename)
|
563 |
+
target_path = os.path.join(target_dir, dir_name, filename)
|
564 |
+
if not os.path.exists(source_path): continue
|
565 |
+
shutil.copy(source_path, target_path)
|
566 |
+
|
567 |
+
|
568 |
+
def main():
|
569 |
+
preprocess = PreProcessData()
|
570 |
+
preprocess.run_all()
|
571 |
+
preprocess.copy_example()
|
572 |
+
|
573 |
+
if __name__ == '__main__':
|
574 |
+
main()
|
code/preprocess_data_TOD.py
ADDED
The diff for this file is too large to render.
See raw diff
|
|
code/utils/constant.py
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Copyright (c) 2023, salesforce.com, inc.
|
3 |
+
All rights reserved.
|
4 |
+
SPDX-License-Identifier: Apache License 2.0
|
5 |
+
For full license text, see the LICENSE file in the repo root or https://www.apache.org/licenses/LICENSE-2.0
|
6 |
+
"""
|
7 |
+
|
8 |
+
#!/usr/bin/env python3
|
9 |
+
#
|
10 |
+
|
11 |
+
# key used for direct usage
|
12 |
+
SPEAKER1 = "user"
|
13 |
+
SPEAKER2 = "system"
|
14 |
+
ORI_DIAL_ID = "original dialog id"
|
15 |
+
DIAL_IDX = "dialog index"
|
16 |
+
ORI_DIAL_INFO = "original dialog info"
|
17 |
+
TURN_ID = "turn id"
|
18 |
+
USR_UTT = f"{SPEAKER1} utterance"
|
19 |
+
SYS_UTT = f"{SPEAKER2} response"
|
20 |
+
DIAL_HIST = "dialog history"
|
21 |
+
ORI_USR_ANN = f"original {SPEAKER1} side information"
|
22 |
+
ORI_SYS_ANN = f"original {SPEAKER2} side information"
|
23 |
+
LOG = "log"
|
24 |
+
|
25 |
+
# # # output for different task
|
26 |
+
# domain prediction
|
27 |
+
DOM = "domain"
|
28 |
+
# intent prediction, including dialog act prediction if intent missing
|
29 |
+
INTENT = "intent"
|
30 |
+
INTENT_SPLIT = " , "
|
31 |
+
# dst
|
32 |
+
DST = "dst"
|
33 |
+
DST_ACC = "dst accumulated"
|
34 |
+
DST_SPLIT = " , "
|
35 |
+
|
36 |
+
# # # used for external knowledge
|
37 |
+
EK = "external knowledge"
|
38 |
+
EK_DST = "dst knowledge"
|
39 |
+
EK_INTENT = "intent knowledge"
|
40 |
+
# non-flat external knowledge dictionary
|
41 |
+
EK_ORI = "external knowledge non-flat"
|
42 |
+
TOD_EK = "metadata"
|
43 |
+
TOD_LENGTH = 10
|
44 |
+
# DOM_EK = "domains"
|
45 |
+
INTENT_EK = "intents"
|
46 |
+
DST_EK = "slots and values"
|
47 |
+
DST_LENGTH = 10
|
48 |
+
|
49 |
+
# # # prompt for each dialog
|
50 |
+
PROMPT = "prompt"
|
51 |
+
PROMPT_DST = "prompt for dst task"
|
52 |
+
PROMPT_INTENT = "prompt for intent prediction"
|
53 |
+
|
54 |
+
MULTIWOZ_DOMAINS = ["taxi", "police", "hospital", "hotel","attraction","train","restaurant"]
|
55 |
+
|
code/utils/constant_tod.py
ADDED
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Copyright (c) 2023, salesforce.com, inc.
|
3 |
+
All rights reserved.
|
4 |
+
SPDX-License-Identifier: Apache License 2.0
|
5 |
+
For full license text, see the LICENSE file in the repo root or https://www.apache.org/licenses/LICENSE-2.0
|
6 |
+
"""
|
7 |
+
|
8 |
+
|
9 |
+
#!/usr/bin/env python3
|
10 |
+
#
|
11 |
+
|
12 |
+
# key used for direct usage
|
13 |
+
SPEAKER1 = "user"
|
14 |
+
SPEAKER2 = "system"
|
15 |
+
ORI_DIAL_ID = "original dialog id"
|
16 |
+
DIAL_IDX = "dialog index"
|
17 |
+
ORI_DIAL_INFO = "original dialog info"
|
18 |
+
TURN_ID = "turn id"
|
19 |
+
USR_UTT = f"{SPEAKER1} utterance"
|
20 |
+
SYS_UTT = f"{SPEAKER2} response"
|
21 |
+
DIAL_HIST = "dialog history"
|
22 |
+
ORI_USR_ANN = f"original {SPEAKER1} side information"
|
23 |
+
ORI_SYS_ANN = f"original {SPEAKER2} side information"
|
24 |
+
LOG = "log"
|
25 |
+
|
26 |
+
# # # output for different task
|
27 |
+
# domain prediction
|
28 |
+
DOM = "domain"
|
29 |
+
# intent prediction, including dialog act prediction if intent missing
|
30 |
+
INTENT = "intent"
|
31 |
+
INTENT_SPLIT = " , "
|
32 |
+
# dst
|
33 |
+
DST = "dst"
|
34 |
+
DST_ACC = "dst accumulated"
|
35 |
+
DST_SPLIT = " , "
|
36 |
+
|
37 |
+
# # # used for external knowledge
|
38 |
+
EK = "external knowledge"
|
39 |
+
EK_DST = "dst knowledge"
|
40 |
+
EK_INTENT = "intent knowledge"
|
41 |
+
# non-flat external knowledge dictionary
|
42 |
+
EK_ORI = "external knowledge non-flat"
|
43 |
+
TOD_EK = "metadata"
|
44 |
+
TOD_LENGTH = 10
|
45 |
+
# DOM_EK = "domains"
|
46 |
+
INTENT_EK = "intents"
|
47 |
+
DST_EK = "slots and values"
|
48 |
+
DST_LENGTH = 10
|
49 |
+
|
50 |
+
# # # prompt for each dialog
|
51 |
+
PROMPT = "prompt"
|
52 |
+
PROMPT_DST = "prompt for dst task"
|
53 |
+
PROMPT_INTENT = "prompt for intent prediction"
|
54 |
+
|
55 |
+
MULTIWOZ_DOMAINS = ["taxi", "police", "hospital", "hotel","attraction","train","restaurant"]
|
56 |
+
|
code/utils/domain_mapping.py
ADDED
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Copyright (c) 2023, salesforce.com, inc.
|
3 |
+
All rights reserved.
|
4 |
+
SPDX-License-Identifier: Apache License 2.0
|
5 |
+
For full license text, see the LICENSE file in the repo root or https://www.apache.org/licenses/LICENSE-2.0
|
6 |
+
"""
|
7 |
+
|
8 |
+
|
9 |
+
#!/usr/bin/env python3
|
10 |
+
import sys, os
|
11 |
+
import random
|
12 |
+
|
13 |
+
templates = [
|
14 |
+
"This is a bot helping users to _____. Given the dialog context and external database, please generate a relevant system response for the user.",
|
15 |
+
"This bot assists users to _____. Based on the dialogue context and information from the external database, please generate an appropriate response for the user.",
|
16 |
+
"This bot helps users to _____. Provide a suitable response to the user, keeping in mind the conversation history and accessible external data.",
|
17 |
+
"The purpose of this bot is to assist users to _____. Considering the dialogue context and the information available in the external knowledge, please provide a fitting response for the user.",
|
18 |
+
"This bot is designed to help users _____. By utilizing the current dialog context and external resources, generate an appropriate response for the user."
|
19 |
+
]
|
20 |
+
|
21 |
+
mapping = {
|
22 |
+
"ABCD":{
|
23 |
+
"product_defect": "solve issues about refunds and returns",
|
24 |
+
"storewide_query": "find answers to FAQ questions about pricing, timing, membership or features",
|
25 |
+
"shipping_issue": "check out update a shipment of an item",
|
26 |
+
"subscription_inquiry": "updates premium subscription",
|
27 |
+
"account_access": "manage account access information",
|
28 |
+
"troubleshoot_site": "solve website-related issues", # website slow, search not working, credit card, cart not updating
|
29 |
+
"single_item_query": "find answers to FAQ questions about clothes",
|
30 |
+
"order_issue": "get status of an order or change an order",
|
31 |
+
"purchase_dispute": "dispute a purchase",
|
32 |
+
"manage_account": "manage account profile",
|
33 |
+
},
|
34 |
+
"AirDialogue":{
|
35 |
+
"flight": "book a flight ticket",
|
36 |
+
},
|
37 |
+
"BiTOD":{
|
38 |
+
"restaurants": "find and book a restaurant",
|
39 |
+
"attractions": "find a tourist attraction",
|
40 |
+
"HKMTR": "find a metro line",
|
41 |
+
"weathers": "search weather information",
|
42 |
+
"hotels": "find and book a hotel",
|
43 |
+
},
|
44 |
+
"CaSiNo":{
|
45 |
+
"negotiate": "take the role of campsite neighbors and negotiate for food, water, and firewood" # not help to finish task
|
46 |
+
},
|
47 |
+
"CraigslistBargains":{
|
48 |
+
"bargain": "bargain for goods" # can be devided into different items e.g. housing, bike, electronics
|
49 |
+
},
|
50 |
+
"DSTC2-Clean":{
|
51 |
+
"restaurant": "find a restaurant"
|
52 |
+
},
|
53 |
+
"FRAMES":{
|
54 |
+
"trip": "book a trip"
|
55 |
+
},
|
56 |
+
"KVRET":{
|
57 |
+
"schedule":"manage a calendar",
|
58 |
+
"weather":"find weather information",
|
59 |
+
"navigate":"get navigation",
|
60 |
+
},
|
61 |
+
"WOZ2_0":{
|
62 |
+
"restaurant":"find a restaurant",
|
63 |
+
},
|
64 |
+
"SGD":{
|
65 |
+
"alarm": "manage alarms",
|
66 |
+
"banks": "manage bank accounts",
|
67 |
+
"buses": "book a bus journey",
|
68 |
+
"events": "book an event ticket",
|
69 |
+
"flights": "book a flight ticket",
|
70 |
+
"homes": "find an apartment or schedule an apartment viewing", # Homes_2 : Service for finding properties to buy and rent"
|
71 |
+
"hotels": "book a hotel",
|
72 |
+
"media": "rent a movie to watch",
|
73 |
+
"music": "find a song",
|
74 |
+
"rentalcars": "rent a car",
|
75 |
+
"restaurants": "book a restaurant",
|
76 |
+
"ridesharing": "book a ride",
|
77 |
+
"services": "reserve a therapist, dentists, doctor or hair stylist", # Services_1: hair stylist; _2:dentists; Services_4: therapist
|
78 |
+
"travel": "find a tourist attraction",
|
79 |
+
"weather": "get weather information",
|
80 |
+
"messaging": "connect and share locations", # Messaging_1:Connect and share locations with your contact
|
81 |
+
"movies": "book a movie ticket",
|
82 |
+
"payment": "manage a payment", # payment_1 The fast, simple way to pay in apps, on the web, and in millions of stores
|
83 |
+
"trains": "book a train journey",
|
84 |
+
"calendar": "manage a calendar",
|
85 |
+
},
|
86 |
+
"MetaLWOZ":{
|
87 |
+
"update_calendar": "schedule meetings on a calendar",
|
88 |
+
"order_pizza": "order a pizza",
|
89 |
+
"movie_listings": "get movie information",
|
90 |
+
"event_reserve": "make reservations for events",
|
91 |
+
"weather_check": "get weather information",
|
92 |
+
"update_contact": "update cell phone contacts",
|
93 |
+
"make_restaurant_reservations": "reserve a restaurant",
|
94 |
+
"edit_playlist": "manage music playlists",
|
95 |
+
"look_up_info": "fetch information from the internet",
|
96 |
+
"shopping": "order products from website",
|
97 |
+
"store_details": "get information about stores and businesses",
|
98 |
+
"sports_info": "get sports information",
|
99 |
+
"quote_of_the_day_bot": "get a quote of the day",
|
100 |
+
"how_to_basic": "get instructions for basic tasks",
|
101 |
+
"prompt_generator": "get creative prompts",
|
102 |
+
"library_request": "get library information",
|
103 |
+
"bank_bot": "manage bank accounts",
|
104 |
+
"restaurant_picker": "find a restaurant",
|
105 |
+
"phone_plan_bot": "get mobile phone service",
|
106 |
+
"name_suggester": "get names for things",
|
107 |
+
"city_info": "get facts about different cities",
|
108 |
+
"music_suggester": "get music suggestions",
|
109 |
+
"agreement_bot": "get agreements",
|
110 |
+
"pet_advice": "get pet advice",
|
111 |
+
"apartment_finder": "find an apartment",
|
112 |
+
"guiness_check": "get world records",
|
113 |
+
"geography": "get to know where countries are",
|
114 |
+
"alarm_set": "manage alarms",
|
115 |
+
"contact_manager": "manage the user's contacts",
|
116 |
+
"phone_settings": "manage the user's phone's settings",
|
117 |
+
"appointment_reminder": "confirm their appointments",
|
118 |
+
"home_bot": "manage the user's home",
|
119 |
+
"policy_bot": "get information about a company's policies",
|
120 |
+
"decider_bot": "make decisions for the user",
|
121 |
+
"catalogue_bot": "search a catalogue",
|
122 |
+
"ski_bot": "book skiing trips",
|
123 |
+
"bus_schedule_bot": "manage public transit schedules",
|
124 |
+
"insurance": "get insurance information",
|
125 |
+
"what_is_it": "remember what a thing is.",
|
126 |
+
"auto_sort": "sort things",
|
127 |
+
"scam_lookup": "get about various scams",
|
128 |
+
"time_zone": "get information about time zones",
|
129 |
+
"play_times": "schedule shows during a theatre festival",
|
130 |
+
"game_rules": "know the rules for games",
|
131 |
+
"wedding_planner": "plan weddings",
|
132 |
+
"check_status": "check the status of things",
|
133 |
+
"present_ideas": "get advice on gift giving",
|
134 |
+
"booking_flight": "book a flight ticket",
|
135 |
+
"hotel_reserve": "book rooms in a hotel",
|
136 |
+
"vacation_ideas": "plan for vacations and trips",
|
137 |
+
"tourism": "get tourism related advices"
|
138 |
+
},
|
139 |
+
"STAR":{
|
140 |
+
"apartment": "find an apartment or schedule an apartment viewing",
|
141 |
+
"bank": "manage bank accounts", # Check the balance / Report suspicious behavior
|
142 |
+
"doctor": "make an appointment with a doctor", # appointment Make an appointment with a doctor / followup doctor appointment Check instructions given by doctor upon last visit
|
143 |
+
"hotel": "book a hotel", # find / book a hotel or call for room service
|
144 |
+
"meeting": "schedule a meeting",
|
145 |
+
"party": "plan a party", # plan Plan a party at a given venue, party rsvp RSVP to a party of a given host at a given venue
|
146 |
+
"plane": "book a flight ticket", # search Find a flight between two cities / plane reserve Book a flight, given its id
|
147 |
+
"restaurant": "reserve a restaurant", # search Find a restaurant / restaurant reserve Reserve a table at a restaurant
|
148 |
+
"ride": "book a ride", # book ride Call a Taxi/Uber/Lyft ride to any destination / ride change Change details of a Taxi/Uber/Lyft ride that had been called earlier / ride status Check the status of a ride you called earlier
|
149 |
+
"spaceship": "solve issues with a spaceship", # life support Recover the spaceship’s life support / spaceship access codes Get a repair robot to open a door for you
|
150 |
+
"trip": "get navigation", # directions Get walking/driving/transit directions between two locations (B).
|
151 |
+
"trivia": "plan a game of trivia", # Play a game of trivia (C).
|
152 |
+
"weather": "get weather information", # Check the weather (forecast) in various cities
|
153 |
+
},
|
154 |
+
"Taskmaster1":{
|
155 |
+
"restaurant": "reserve a restaurant",
|
156 |
+
"movie": "book a movie ticket",
|
157 |
+
"pizza": "order a pizza",
|
158 |
+
"coffee": "order coffee drinks",
|
159 |
+
"auto": "make appointment for auto repair",
|
160 |
+
"uber": "book a uber ride",
|
161 |
+
},
|
162 |
+
"Taskmaster2":{ # domains can be split further into subdomains based on instruction_id e.g. sports --> nba, nfl, epl
|
163 |
+
"flights": "book a flight ticket",
|
164 |
+
"food-ordering": "make a take-out order",
|
165 |
+
"hotels":"find a hotel",
|
166 |
+
"movies":"find a movie to watch",
|
167 |
+
"music": "find music tracks",
|
168 |
+
"restaurant-search": "find a restaurant",
|
169 |
+
"sports": "get sports information",
|
170 |
+
},
|
171 |
+
"Taskmaster3":{
|
172 |
+
"movie": "book a movie ticket",
|
173 |
+
},
|
174 |
+
"SimJointMovie":{
|
175 |
+
"movie": "book a movie ticket",
|
176 |
+
},
|
177 |
+
"SimJointRestaurant":{
|
178 |
+
"restaurant": "reserve a restaurant",
|
179 |
+
},
|
180 |
+
"SimJointGEN":{
|
181 |
+
"movie": "book a movie ticket",
|
182 |
+
},
|
183 |
+
"MulDoGO":{
|
184 |
+
"airline": "book a flight ticket", # e domain dialogues focus on booking airline flights, selecting or changing seat assignments, and requesting boarding passes;
|
185 |
+
"fastfood": "order fast food", # domain is the least similar to the others, as the intents primarily involve ordering food and the slots quantify their order.
|
186 |
+
"finance": "manage bank accounts", # domain simulates dialogues a customer may have with a bank. These include opening a bank account, checking their balance, and reporting a lost credit card;
|
187 |
+
"insurance": "get insurance information", # domain simulates users calling about their insurance policy or requesting the fulfillment of a policy on their car or phone
|
188 |
+
"media": "order a media service", # domain simulates dialogues a customer may have ordering a service or paying bills related to telecommunications.
|
189 |
+
"software": "get software service information", # domain involves customers inquiring about software services: products, outages, promotions, and bills
|
190 |
+
},
|
191 |
+
"MS-DC":{
|
192 |
+
"restaurant": "reserve a restaurant",
|
193 |
+
"taxi": "book a taxi",
|
194 |
+
"movie": "book a movie ticket",
|
195 |
+
},
|
196 |
+
"SalesBot":{
|
197 |
+
"GetTimesForMovie": "get information for a movie",
|
198 |
+
"LookupSong": "find a song",
|
199 |
+
"FindMovies": "find a movie to watch",
|
200 |
+
"LookupMusic": "find and play a song",
|
201 |
+
"PlaySong": "play a song",
|
202 |
+
"FindAttractions": "find a tourist attraction",
|
203 |
+
},
|
204 |
+
"MuDoCo":{
|
205 |
+
"calling": "make a call", # user initiates or manipulates a voice or video call
|
206 |
+
"messaging": "send or read messages", # user sends or reads messages, asks for information about their message queue
|
207 |
+
"music": "find a song", # user searches for music by a certain artist or in a certain genre, asks the system to play songs, etc.
|
208 |
+
"news": "get news information", # user asks for information about current events related to a variety of topics
|
209 |
+
"reminders": "modify a reminder", # user sets, modifies, queries or deletes reminders for a certain date or time
|
210 |
+
"weather": "get weather information", # user asks about the current or future weather conditions in various locations
|
211 |
+
},
|
212 |
+
"MULTIWOZ2_2":{
|
213 |
+
"restaurant": "find a restaurant",
|
214 |
+
"hotel": "find a hotel",
|
215 |
+
"attraction": "find an attraction",
|
216 |
+
"train": "book a train ticket",
|
217 |
+
"taxi": "find a taxi",
|
218 |
+
"hospital": "find a hospital",
|
219 |
+
"police": "find a police station",
|
220 |
+
"bus": "find a bus",
|
221 |
+
},
|
222 |
+
}
|
223 |
+
|
224 |
+
def generate_prompt(data_name, domains, num_sample=1):
|
225 |
+
"""
|
226 |
+
Including all 5 types of prompt and output a list
|
227 |
+
"""
|
228 |
+
# sampled_template = random.choice(templates)
|
229 |
+
descriptions = [mapping[data_name][domain] for domain in domains]
|
230 |
+
if len(descriptions) == 1:
|
231 |
+
description_str = descriptions[0]
|
232 |
+
elif len(descriptions) == 2:
|
233 |
+
description_str = " and ".join(descriptions)
|
234 |
+
elif len(descriptions) == 0:
|
235 |
+
description_str = "complete specified tasks"
|
236 |
+
else:
|
237 |
+
description_str = "complete multiple tasks, e.g. " + ", ".join(descriptions[:-1]) + ", and " + descriptions[-1]
|
238 |
+
return [sampled_template.replace("_____", description_str) for sampled_template in templates]
|
conversational-recommendation-dialogues/DuRecDial-2.0/LICENSE.txt
ADDED
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Apache License
|
2 |
+
Version 2.0, January 2004
|
3 |
+
http://www.apache.org/licenses/
|
4 |
+
|
5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6 |
+
|
7 |
+
1. Definitions.
|
8 |
+
|
9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
11 |
+
|
12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13 |
+
the copyright owner that is granting the License.
|
14 |
+
|
15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
16 |
+
other entities that control, are controlled by, or are under common
|
17 |
+
control with that entity. For the purposes of this definition,
|
18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
19 |
+
direction or management of such entity, whether by contract or
|
20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22 |
+
|
23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24 |
+
exercising permissions granted by this License.
|
25 |
+
|
26 |
+
"Source" form shall mean the preferred form for making modifications,
|
27 |
+
including but not limited to software source code, documentation
|
28 |
+
source, and configuration files.
|
29 |
+
|
30 |
+
"Object" form shall mean any form resulting from mechanical
|
31 |
+
transformation or translation of a Source form, including but
|
32 |
+
not limited to compiled object code, generated documentation,
|
33 |
+
and conversions to other media types.
|
34 |
+
|
35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
36 |
+
Object form, made available under the License, as indicated by a
|
37 |
+
copyright notice that is included in or attached to the work
|
38 |
+
(an example is provided in the Appendix below).
|
39 |
+
|
40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41 |
+
form, that is based on (or derived from) the Work and for which the
|
42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
44 |
+
of this License, Derivative Works shall not include works that remain
|
45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46 |
+
the Work and Derivative Works thereof.
|
47 |
+
|
48 |
+
"Contribution" shall mean any work of authorship, including
|
49 |
+
the original version of the Work and any modifications or additions
|
50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
54 |
+
means any form of electronic, verbal, or written communication sent
|
55 |
+
to the Licensor or its representatives, including but not limited to
|
56 |
+
communication on electronic mailing lists, source code control systems,
|
57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
59 |
+
excluding communication that is conspicuously marked or otherwise
|
60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
61 |
+
|
62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
64 |
+
subsequently incorporated within the Work.
|
65 |
+
|
66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
71 |
+
Work and such Derivative Works in Source or Object form.
|
72 |
+
|
73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76 |
+
(except as stated in this section) patent license to make, have made,
|
77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78 |
+
where such license applies only to those patent claims licensable
|
79 |
+
by such Contributor that are necessarily infringed by their
|
80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
82 |
+
institute patent litigation against any entity (including a
|
83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84 |
+
or a Contribution incorporated within the Work constitutes direct
|
85 |
+
or contributory patent infringement, then any patent licenses
|
86 |
+
granted to You under this License for that Work shall terminate
|
87 |
+
as of the date such litigation is filed.
|
88 |
+
|
89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
90 |
+
Work or Derivative Works thereof in any medium, with or without
|
91 |
+
modifications, and in Source or Object form, provided that You
|
92 |
+
meet the following conditions:
|
93 |
+
|
94 |
+
(a) You must give any other recipients of the Work or
|
95 |
+
Derivative Works a copy of this License; and
|
96 |
+
|
97 |
+
(b) You must cause any modified files to carry prominent notices
|
98 |
+
stating that You changed the files; and
|
99 |
+
|
100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
101 |
+
that You distribute, all copyright, patent, trademark, and
|
102 |
+
attribution notices from the Source form of the Work,
|
103 |
+
excluding those notices that do not pertain to any part of
|
104 |
+
the Derivative Works; and
|
105 |
+
|
106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107 |
+
distribution, then any Derivative Works that You distribute must
|
108 |
+
include a readable copy of the attribution notices contained
|
109 |
+
within such NOTICE file, excluding those notices that do not
|
110 |
+
pertain to any part of the Derivative Works, in at least one
|
111 |
+
of the following places: within a NOTICE text file distributed
|
112 |
+
as part of the Derivative Works; within the Source form or
|
113 |
+
documentation, if provided along with the Derivative Works; or,
|
114 |
+
within a display generated by the Derivative Works, if and
|
115 |
+
wherever such third-party notices normally appear. The contents
|
116 |
+
of the NOTICE file are for informational purposes only and
|
117 |
+
do not modify the License. You may add Your own attribution
|
118 |
+
notices within Derivative Works that You distribute, alongside
|
119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
120 |
+
that such additional attribution notices cannot be construed
|
121 |
+
as modifying the License.
|
122 |
+
|
123 |
+
You may add Your own copyright statement to Your modifications and
|
124 |
+
may provide additional or different license terms and conditions
|
125 |
+
for use, reproduction, or distribution of Your modifications, or
|
126 |
+
for any such Derivative Works as a whole, provided Your use,
|
127 |
+
reproduction, and distribution of the Work otherwise complies with
|
128 |
+
the conditions stated in this License.
|
129 |
+
|
130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
132 |
+
by You to the Licensor shall be under the terms and conditions of
|
133 |
+
this License, without any additional terms or conditions.
|
134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135 |
+
the terms of any separate license agreement you may have executed
|
136 |
+
with Licensor regarding such Contributions.
|
137 |
+
|
138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
140 |
+
except as required for reasonable and customary use in describing the
|
141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
142 |
+
|
143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144 |
+
agreed to in writing, Licensor provides the Work (and each
|
145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147 |
+
implied, including, without limitation, any warranties or conditions
|
148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150 |
+
appropriateness of using or redistributing the Work and assume any
|
151 |
+
risks associated with Your exercise of permissions under this License.
|
152 |
+
|
153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
154 |
+
whether in tort (including negligence), contract, or otherwise,
|
155 |
+
unless required by applicable law (such as deliberate and grossly
|
156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157 |
+
liable to You for damages, including any direct, indirect, special,
|
158 |
+
incidental, or consequential damages of any character arising as a
|
159 |
+
result of this License or out of the use or inability to use the
|
160 |
+
Work (including but not limited to damages for loss of goodwill,
|
161 |
+
work stoppage, computer failure or malfunction, or any and all
|
162 |
+
other commercial damages or losses), even if such Contributor
|
163 |
+
has been advised of the possibility of such damages.
|
164 |
+
|
165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168 |
+
or other liability obligations and/or rights consistent with this
|
169 |
+
License. However, in accepting such obligations, You may act only
|
170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171 |
+
of any other Contributor, and only if You agree to indemnify,
|
172 |
+
defend, and hold each Contributor harmless for any liability
|
173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
174 |
+
of your accepting any such warranty or additional liability.
|
175 |
+
|
176 |
+
END OF TERMS AND CONDITIONS
|
177 |
+
|
178 |
+
APPENDIX: How to apply the Apache License to your work.
|
179 |
+
|
180 |
+
To apply the Apache License to your work, attach the following
|
181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
182 |
+
replaced with your own identifying information. (Don't include
|
183 |
+
the brackets!) The text should be enclosed in the appropriate
|
184 |
+
comment syntax for the file format. We also recommend that a
|
185 |
+
file or class name and description of purpose be included on the
|
186 |
+
same "printed page" as the copyright notice for easier
|
187 |
+
identification within third-party archives.
|
188 |
+
|
189 |
+
Copyright [yyyy] [name of copyright owner]
|
190 |
+
|
191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
192 |
+
you may not use this file except in compliance with the License.
|
193 |
+
You may obtain a copy of the License at
|
194 |
+
|
195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
196 |
+
|
197 |
+
Unless required by applicable law or agreed to in writing, software
|
198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200 |
+
See the License for the specific language governing permissions and
|
201 |
+
limitations under the License.
|
conversational-recommendation-dialogues/DuRecDial-2.0/README.md
ADDED
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# DuRecDial
|
2 |
+
|
3 |
+
In this paper, we provide a **bilingual parallel** human-to-human recommendation dialog dataset, **DuRecDial 2.0**, to enable researchers to explore the challenging task of multilingual and cross-lingual conversational recommendation. The difference between DuRecDial 2.0 and existing conversational recommendation datasets is that the data item (Profile, Goal, Knowledge, Context, Response) in DuRecDial 2.0 is annotated in two languages, both English and Chinese, while other datasets are built with the setting of a single language. We collect **8.2k** dialogues aligned across English and Chinese languages (16.5k dialogs and 255k utterances in total) that are annotated by crowdsourced workers with strict quality control procedure. DuRecDial 2.0 provides a challenging testbed for future studies of monolingual, multilingual, and cross-lingual conversational recommendation. For a detailed introduction of DuRecDial 2.0, please refer to [DuRecDial](https://github.com/liuzeming01/Research/tree/master/NLP/ACL2020-DuRecDial) on [IEEE Xplore](https://ieeexplore.ieee.org/document/9699426), [ACL Anthology](https://aclanthology.org/2020.acl-main.98/) and [arXiv](https://arxiv.org/abs/2005.03954).
|
4 |
+
|
5 |
+
Our paper on [ACL Anthology](https://aclanthology.org/2021.emnlp-main.356/) and [arXiv](https://arxiv.org/abs/2109.08877) . If the corpus is helpful to your research, please kindly cite our paper:
|
6 |
+
|
7 |
+
```bib
|
8 |
+
@inproceedings{liu-etal-2021-durecdial,
|
9 |
+
title = "{D}u{R}ec{D}ial 2.0: A Bilingual Parallel Corpus for Conversational Recommendation",
|
10 |
+
author = "Liu, Zeming and
|
11 |
+
Wang, Haifeng and
|
12 |
+
Niu, Zheng-Yu and
|
13 |
+
Wu, Hua and
|
14 |
+
Che, Wanxiang",
|
15 |
+
booktitle = "Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing",
|
16 |
+
month = nov,
|
17 |
+
year = "2021",
|
18 |
+
address = "Online and Punta Cana, Dominican Republic",
|
19 |
+
publisher = "Association for Computational Linguistics",
|
20 |
+
url = "https://aclanthology.org/2021.emnlp-main.356",
|
21 |
+
doi = "10.18653/v1/2021.emnlp-main.356",
|
22 |
+
pages = "4335--4347",
|
23 |
+
}
|
24 |
+
```
|
25 |
+
|
26 |
+
## Data
|
27 |
+
|
28 |
+
**Note:If the first goal is "Greetings/寒暄", the seeker starts the conversation, otherwise, the user starts the conversation.**
|
29 |
+
|
30 |
+
An example of the conversation in DuRecDial 2.0:
|
31 |
+
|
32 |
+

|
33 |
+
|
34 |
+
DuRecDial 2.0 is an extension of the [DuRecDial](https://baidu-nlp.bj.bcebos.com/DuRecDial.zip). Specifically, we extend the DuRecDial to English by crowdsourced workers with strict quality control procedure.
|
35 |
+
|
36 |
+
If DuRecDial is helpful to your research, please kindly cite our papers:
|
37 |
+
|
38 |
+
```bib
|
39 |
+
@inproceedings{liu-etal-2020-towards-conversational,
|
40 |
+
title = "Towards Conversational Recommendation over Multi-Type Dialogs",
|
41 |
+
author = "Liu, Zeming and
|
42 |
+
Wang, Haifeng and
|
43 |
+
Niu, Zheng-Yu and
|
44 |
+
Wu, Hua and
|
45 |
+
Che, Wanxiang and
|
46 |
+
Liu, Ting",
|
47 |
+
booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
|
48 |
+
month = jul,
|
49 |
+
year = "2020",
|
50 |
+
address = "Online",
|
51 |
+
publisher = "Association for Computational Linguistics",
|
52 |
+
url = "https://aclanthology.org/2020.acl-main.98",
|
53 |
+
doi = "10.18653/v1/2020.acl-main.98",
|
54 |
+
pages = "1036--1049",
|
55 |
+
}
|
56 |
+
```
|
57 |
+
```bib
|
58 |
+
@ARTICLE{9699426,
|
59 |
+
author={Liu, Zeming and Zhou, Ding and Liu, Hao and Wang, Haifeng and Niu, Zheng-Yu and Wu, Hua and Che, Wanxiang and Liu, Ting and Xiong, Hui},
|
60 |
+
journal={IEEE Transactions on Knowledge and Data Engineering},
|
61 |
+
title={Graph-Grounded Goal Planning for Conversational Recommendation},
|
62 |
+
year={2023},
|
63 |
+
volume={35},
|
64 |
+
number={5},
|
65 |
+
pages={4923-4939},
|
66 |
+
doi={10.1109/TKDE.2022.3147210}
|
67 |
+
}
|
68 |
+
```
|
69 |
+
|
70 |
+
|
71 |
+
## License
|
72 |
+
|
73 |
+
Apache License 2.0 and CC BY-NC-SA 4.0.
|
74 |
+
|
75 |
+
Since DuRecDial 2.0 is licensed under CC BY-NC-SA 4.0. Note the dataset may not be adopted for commercial use.
|
conversational-recommendation-dialogues/DuRecDial-2.0/converted_examples.json
ADDED
@@ -0,0 +1,998 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"DuRecDial-2.0--train--1": {
|
3 |
+
"original dialog id": "",
|
4 |
+
"dialog index": 1,
|
5 |
+
"original dialog info": {
|
6 |
+
"goal": "[1] Q&A(Cecilia Cheung)-->[2] Chat about stars(Cecilia Cheung)-->[3] Movie recommendation(Failan)-->[4] Movie recommendation(The Stool Pigeon)-->[5]Say goodbye",
|
7 |
+
"user_profile": {
|
8 |
+
"Age Range": "Under 18 years old",
|
9 |
+
"Name": "Fangyang Liu",
|
10 |
+
"Residence": "Qingdao",
|
11 |
+
"Accepted food": "Jiaozi\u00a0Stuffed\u00a0with\u00a0Mackerel\u00a0",
|
12 |
+
"Accepted movies": [
|
13 |
+
"Left Right Love Destiny",
|
14 |
+
"Hot Summer Days",
|
15 |
+
"Fly Me to Polaris",
|
16 |
+
"Help!!!",
|
17 |
+
"One Night in Mongkok",
|
18 |
+
"The Bullet Vanishes"
|
19 |
+
],
|
20 |
+
"Accepted Music": [
|
21 |
+
"Once"
|
22 |
+
],
|
23 |
+
"Rejected music": [
|
24 |
+
"It's Time"
|
25 |
+
],
|
26 |
+
"Gender": "Female",
|
27 |
+
"Accepted celebrities": [
|
28 |
+
"Cecilia Cheung",
|
29 |
+
"Kris Wu",
|
30 |
+
"Nicholas Tse"
|
31 |
+
],
|
32 |
+
"Accepted movie": [
|
33 |
+
"The Legend of Speed"
|
34 |
+
],
|
35 |
+
"Reject": [
|
36 |
+
"News"
|
37 |
+
],
|
38 |
+
"Rejected movies": [
|
39 |
+
"Everyday is Valentine",
|
40 |
+
"Unforgettable",
|
41 |
+
"King of Comedy"
|
42 |
+
],
|
43 |
+
"Occupation": "Student",
|
44 |
+
"Accepted music": "Time Boils The Rain",
|
45 |
+
"Accepted POI": [
|
46 |
+
"Minguo Seafood Dumpling House"
|
47 |
+
]
|
48 |
+
},
|
49 |
+
"conversation": [
|
50 |
+
"[1] Who is the leading actor of the movie Left Right Love Destiny?",
|
51 |
+
"It's Cecilia Cheung",
|
52 |
+
"You even know that. Excellent!",
|
53 |
+
"[2] Thank you for your praise. She's a Chinese idol. Of course I know her.",
|
54 |
+
"Yes my idol is quite unusual.",
|
55 |
+
"She is also an Asian Outstanding Artist in New York Chinese Film Festival. Excellent.",
|
56 |
+
"Yes. People like her will shine wherever they go.",
|
57 |
+
"[3] Then don't miss her movie Failan. It shows a love tragedy in which the two people are secluded in different time spaces. However, the movie doesn't just tell a sad but beautiful love story. Through the story, the audiences can see the director's profound thinking and understanding of life and human nature.",
|
58 |
+
"Although I really like her, I prefer to see Nicholas Tse's movies.",
|
59 |
+
"[4] Then you can watch Nicholas Tse's movie The Stool Pigeon. His acting is good.",
|
60 |
+
"What kind of movie is it?",
|
61 |
+
"It's an action drama, with a little bit of thriller.",
|
62 |
+
"Woah, sounds interesting.",
|
63 |
+
"I'm sure you'll like it.",
|
64 |
+
"[5] Then I'm leaving too see the movie.",
|
65 |
+
"Okay, see you next time."
|
66 |
+
],
|
67 |
+
"goal_topic_list": [
|
68 |
+
"Left Right Love Destiny",
|
69 |
+
"Left Right Love Destiny",
|
70 |
+
"Left Right Love Destiny",
|
71 |
+
"Cecilia Cheung",
|
72 |
+
"Cecilia Cheung",
|
73 |
+
"Cecilia Cheung",
|
74 |
+
"Cecilia Cheung",
|
75 |
+
"Failan",
|
76 |
+
"Failan",
|
77 |
+
"The Stool Pigeon",
|
78 |
+
"The Stool Pigeon",
|
79 |
+
"The Stool Pigeon",
|
80 |
+
"The Stool Pigeon",
|
81 |
+
"The Stool Pigeon",
|
82 |
+
"Say goodbye",
|
83 |
+
"Say goodbye"
|
84 |
+
],
|
85 |
+
"goal_type_list": [
|
86 |
+
"Q&A",
|
87 |
+
"Q&A",
|
88 |
+
"Q&A",
|
89 |
+
"Chat about stars",
|
90 |
+
"Chat about stars",
|
91 |
+
"Chat about stars",
|
92 |
+
"Chat about stars",
|
93 |
+
"Movie recommendation",
|
94 |
+
"Movie recommendation",
|
95 |
+
"Movie recommendation",
|
96 |
+
"Movie recommendation",
|
97 |
+
"Movie recommendation",
|
98 |
+
"Movie recommendation",
|
99 |
+
"Movie recommendation",
|
100 |
+
"Say goodbye",
|
101 |
+
"Say goodbye"
|
102 |
+
],
|
103 |
+
"situation": "Time: 12:00, at school",
|
104 |
+
"knowledge": [
|
105 |
+
[
|
106 |
+
"Cecilia Cheung",
|
107 |
+
"Stars",
|
108 |
+
"Left Right Love Destiny"
|
109 |
+
],
|
110 |
+
[
|
111 |
+
"Cecilia Cheung",
|
112 |
+
"Stars",
|
113 |
+
"Left Right Love Destiny"
|
114 |
+
],
|
115 |
+
[],
|
116 |
+
[
|
117 |
+
"Cecilia Cheung",
|
118 |
+
"Intro",
|
119 |
+
"Chinese dreamgirl"
|
120 |
+
],
|
121 |
+
[],
|
122 |
+
[
|
123 |
+
"Cecilia Cheung",
|
124 |
+
"Achievement",
|
125 |
+
"Outstanding Asian artists of New York China Film Festival"
|
126 |
+
],
|
127 |
+
[],
|
128 |
+
[
|
129 |
+
"Failan",
|
130 |
+
"Comments",
|
131 |
+
"Failan presents a love tragedy isolated in different time and space, but the film does not stop at telling a sad and beautiful love. Through the shell of the sad story, the audience gets the director's deeper thinking and understanding of the human nature of life.Focusing on the spiritual core of saving and being saved, the narrative unfolds, the theme is expounded, and the blindness to reality is unveiled. The audience is touched and awakened. The director fully played the magic of the movie, disrupting the narrative time and space, intersecting the past and the present, and advancing freely following the protagonists\u2019 emotions, making the story structure more tense and the theme and emotions more heartfelt. Although it describes the underworld, the director deliberately avoided the violence rendering and used extremely life-like methods to describe the underworld story routines such as gang struggle and group fight."
|
132 |
+
],
|
133 |
+
[],
|
134 |
+
[
|
135 |
+
"Nicholas Tse",
|
136 |
+
"Stars",
|
137 |
+
"The Stool Pigeon"
|
138 |
+
],
|
139 |
+
[
|
140 |
+
"The Stool Pigeon",
|
141 |
+
"Type",
|
142 |
+
"Action plot Thriller"
|
143 |
+
],
|
144 |
+
[
|
145 |
+
"The Stool Pigeon",
|
146 |
+
"Type",
|
147 |
+
"Action plot Thriller"
|
148 |
+
],
|
149 |
+
[],
|
150 |
+
[],
|
151 |
+
[],
|
152 |
+
[]
|
153 |
+
]
|
154 |
+
},
|
155 |
+
"log": [
|
156 |
+
{
|
157 |
+
"turn id": 1,
|
158 |
+
"user utterance": "Who is the leading actor of the movie Left Right Love Destiny?",
|
159 |
+
"system response": "It's Cecilia Cheung",
|
160 |
+
"dialog history": "",
|
161 |
+
"original user side information": {},
|
162 |
+
"original system side information": {}
|
163 |
+
},
|
164 |
+
{
|
165 |
+
"turn id": 2,
|
166 |
+
"user utterance": "You even know that. Excellent!",
|
167 |
+
"system response": "Thank you for your praise. She's a Chinese idol. Of course I know her.",
|
168 |
+
"dialog history": "<USER> Who is the leading actor of the movie Left Right Love Destiny? <SYSTEM> It's Cecilia Cheung",
|
169 |
+
"original user side information": {},
|
170 |
+
"original system side information": {}
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"turn id": 3,
|
174 |
+
"user utterance": "Yes my idol is quite unusual.",
|
175 |
+
"system response": "She is also an Asian Outstanding Artist in New York Chinese Film Festival. Excellent.",
|
176 |
+
"dialog history": "<USER> Who is the leading actor of the movie Left Right Love Destiny? <SYSTEM> It's Cecilia Cheung <USER> You even know that. Excellent! <SYSTEM> Thank you for your praise. She's a Chinese idol. Of course I know her.",
|
177 |
+
"original user side information": {},
|
178 |
+
"original system side information": {}
|
179 |
+
},
|
180 |
+
{
|
181 |
+
"turn id": 4,
|
182 |
+
"user utterance": "Yes. People like her will shine wherever they go.",
|
183 |
+
"system response": "Then don't miss her movie Failan. It shows a love tragedy in which the two people are secluded in different time spaces. However, the movie doesn't just tell a sad but beautiful love story. Through the story, the audiences can see the director's profound thinking and understanding of life and human nature.",
|
184 |
+
"dialog history": "<USER> Who is the leading actor of the movie Left Right Love Destiny? <SYSTEM> It's Cecilia Cheung <USER> You even know that. Excellent! <SYSTEM> Thank you for your praise. She's a Chinese idol. Of course I know her. <USER> Yes my idol is quite unusual. <SYSTEM> She is also an Asian Outstanding Artist in New York Chinese Film Festival. Excellent.",
|
185 |
+
"original user side information": {},
|
186 |
+
"original system side information": {}
|
187 |
+
},
|
188 |
+
{
|
189 |
+
"turn id": 5,
|
190 |
+
"user utterance": "Although I really like her, I prefer to see Nicholas Tse's movies.",
|
191 |
+
"system response": "Then you can watch Nicholas Tse's movie The Stool Pigeon. His acting is good.",
|
192 |
+
"dialog history": "<USER> Who is the leading actor of the movie Left Right Love Destiny? <SYSTEM> It's Cecilia Cheung <USER> You even know that. Excellent! <SYSTEM> Thank you for your praise. She's a Chinese idol. Of course I know her. <USER> Yes my idol is quite unusual. <SYSTEM> She is also an Asian Outstanding Artist in New York Chinese Film Festival. Excellent. <USER> Yes. People like her will shine wherever they go. <SYSTEM> Then don't miss her movie Failan. It shows a love tragedy in which the two people are secluded in different time spaces. However, the movie doesn't just tell a sad but beautiful love story. Through the story, the audiences can see the director's profound thinking and understanding of life and human nature.",
|
193 |
+
"original user side information": {},
|
194 |
+
"original system side information": {}
|
195 |
+
},
|
196 |
+
{
|
197 |
+
"turn id": 6,
|
198 |
+
"user utterance": "What kind of movie is it?",
|
199 |
+
"system response": "It's an action drama, with a little bit of thriller.",
|
200 |
+
"dialog history": "<USER> Who is the leading actor of the movie Left Right Love Destiny? <SYSTEM> It's Cecilia Cheung <USER> You even know that. Excellent! <SYSTEM> Thank you for your praise. She's a Chinese idol. Of course I know her. <USER> Yes my idol is quite unusual. <SYSTEM> She is also an Asian Outstanding Artist in New York Chinese Film Festival. Excellent. <USER> Yes. People like her will shine wherever they go. <SYSTEM> Then don't miss her movie Failan. It shows a love tragedy in which the two people are secluded in different time spaces. However, the movie doesn't just tell a sad but beautiful love story. Through the story, the audiences can see the director's profound thinking and understanding of life and human nature. <USER> Although I really like her, I prefer to see Nicholas Tse's movies. <SYSTEM> Then you can watch Nicholas Tse's movie The Stool Pigeon. His acting is good.",
|
201 |
+
"original user side information": {},
|
202 |
+
"original system side information": {}
|
203 |
+
},
|
204 |
+
{
|
205 |
+
"turn id": 7,
|
206 |
+
"user utterance": "Woah, sounds interesting.",
|
207 |
+
"system response": "I'm sure you'll like it.",
|
208 |
+
"dialog history": "<USER> Who is the leading actor of the movie Left Right Love Destiny? <SYSTEM> It's Cecilia Cheung <USER> You even know that. Excellent! <SYSTEM> Thank you for your praise. She's a Chinese idol. Of course I know her. <USER> Yes my idol is quite unusual. <SYSTEM> She is also an Asian Outstanding Artist in New York Chinese Film Festival. Excellent. <USER> Yes. People like her will shine wherever they go. <SYSTEM> Then don't miss her movie Failan. It shows a love tragedy in which the two people are secluded in different time spaces. However, the movie doesn't just tell a sad but beautiful love story. Through the story, the audiences can see the director's profound thinking and understanding of life and human nature. <USER> Although I really like her, I prefer to see Nicholas Tse's movies. <SYSTEM> Then you can watch Nicholas Tse's movie The Stool Pigeon. His acting is good. <USER> What kind of movie is it? <SYSTEM> It's an action drama, with a little bit of thriller.",
|
209 |
+
"original user side information": {},
|
210 |
+
"original system side information": {}
|
211 |
+
},
|
212 |
+
{
|
213 |
+
"turn id": 8,
|
214 |
+
"user utterance": "Then I'm leaving too see the movie.",
|
215 |
+
"system response": "Okay, see you next time.",
|
216 |
+
"dialog history": "<USER> Who is the leading actor of the movie Left Right Love Destiny? <SYSTEM> It's Cecilia Cheung <USER> You even know that. Excellent! <SYSTEM> Thank you for your praise. She's a Chinese idol. Of course I know her. <USER> Yes my idol is quite unusual. <SYSTEM> She is also an Asian Outstanding Artist in New York Chinese Film Festival. Excellent. <USER> Yes. People like her will shine wherever they go. <SYSTEM> Then don't miss her movie Failan. It shows a love tragedy in which the two people are secluded in different time spaces. However, the movie doesn't just tell a sad but beautiful love story. Through the story, the audiences can see the director's profound thinking and understanding of life and human nature. <USER> Although I really like her, I prefer to see Nicholas Tse's movies. <SYSTEM> Then you can watch Nicholas Tse's movie The Stool Pigeon. His acting is good. <USER> What kind of movie is it? <SYSTEM> It's an action drama, with a little bit of thriller. <USER> Woah, sounds interesting. <SYSTEM> I'm sure you'll like it.",
|
217 |
+
"original user side information": {},
|
218 |
+
"original system side information": {}
|
219 |
+
}
|
220 |
+
]
|
221 |
+
},
|
222 |
+
"DuRecDial-2.0--train--2": {
|
223 |
+
"original dialog id": "",
|
224 |
+
"dialog index": 2,
|
225 |
+
"original dialog info": {
|
226 |
+
"goal": "[1]Ask about weather-->[2] Food recommendation(Marinated Fish)-->[3] POI recommendation(Mr.Fish Roasted)-->[4]Say goodbye",
|
227 |
+
"user_profile": {
|
228 |
+
"Age Range": "Under 18 years old",
|
229 |
+
"Name": "Mingzheng Li",
|
230 |
+
"Residence": "Hengshui",
|
231 |
+
"Accepted food": "Marinated Fish",
|
232 |
+
"Accepted Music": [
|
233 |
+
"You Will Always Be My Love",
|
234 |
+
"After Leaving",
|
235 |
+
"Lingering Memory of Past Love",
|
236 |
+
"Still Think You're the Best",
|
237 |
+
"I Waited Until the Flower Withered",
|
238 |
+
"The Crescent",
|
239 |
+
"Can't Fight The Feeling"
|
240 |
+
],
|
241 |
+
"Rejected music": [
|
242 |
+
"Coffee",
|
243 |
+
"be torn with grief"
|
244 |
+
],
|
245 |
+
"Gender": "Male",
|
246 |
+
"Favorite news": [
|
247 |
+
"Jacky Cheung's news"
|
248 |
+
],
|
249 |
+
"Accepted celebrities": [
|
250 |
+
"Jacky Cheung"
|
251 |
+
],
|
252 |
+
"Reject": [
|
253 |
+
"Movie"
|
254 |
+
],
|
255 |
+
"Accepted POI": "Mr.Fish Roasted",
|
256 |
+
"Accepted music": [
|
257 |
+
"Wolf Legend"
|
258 |
+
],
|
259 |
+
"Occupation": "Student"
|
260 |
+
},
|
261 |
+
"conversation": [
|
262 |
+
"[1] Baby, can you tell me the weather today?",
|
263 |
+
"OK, today in Hengshui it is sunny, with southwest winds. The high will be 4 \u2103 and low - 7 \u2103. Be sure to keep warm.",
|
264 |
+
"Wow, you're great. You know everything. Great!",
|
265 |
+
"[2] There's nothing I don't know. I also know that today's weather is suitable to eat Marinated Fish.",
|
266 |
+
"Okay, I like it.",
|
267 |
+
"I know a restaurant where the Marinated Fish is made of grouper.",
|
268 |
+
"Woah, there's grouper! I really like it! It's a tonic! I really want to have it!",
|
269 |
+
"[3] If you like it so much, I know a restaurant which cooks groupers very well. Mr.Fish Roasted. The Marinated Fish here is very authentic!",
|
270 |
+
"Then tell me about the average meal cost per person, the address and the ratings.",
|
271 |
+
"It costs 0 yuan per person. The address is the intersection of Liushi Road, Huzhuang commercial and residential building, Yingbin North Street, Jizhou District, Jizhou. 5 points, very high.",
|
272 |
+
"Okay. I'll be there tomorrow noon with my partner, taking her to have a taste. Hehe!",
|
273 |
+
"Okay, I'll make a reservation for you. I'll say bon appetite in advance!",
|
274 |
+
"[4] Thanks. Then I'm going to bed first. See you tomorrow. Bye.",
|
275 |
+
"All right. Bye~"
|
276 |
+
],
|
277 |
+
"goal_topic_list": [
|
278 |
+
"Ask about weather",
|
279 |
+
"Ask about weather",
|
280 |
+
"Ask about weather",
|
281 |
+
"Marinated Fish",
|
282 |
+
"Marinated Fish",
|
283 |
+
"Marinated Fish",
|
284 |
+
"Marinated Fish",
|
285 |
+
"Mr.Fish Roasted",
|
286 |
+
"Mr.Fish Roasted",
|
287 |
+
"Mr.Fish Roasted",
|
288 |
+
"Mr.Fish Roasted",
|
289 |
+
"Mr.Fish Roasted",
|
290 |
+
"Say goodbye",
|
291 |
+
"Say goodbye"
|
292 |
+
],
|
293 |
+
"goal_type_list": [
|
294 |
+
"Ask about weather",
|
295 |
+
"Ask about weather",
|
296 |
+
"Ask about weather",
|
297 |
+
"Food recommendation",
|
298 |
+
"Food recommendation",
|
299 |
+
"Food recommendation",
|
300 |
+
"Food recommendation",
|
301 |
+
"POI recommendation",
|
302 |
+
"POI recommendation",
|
303 |
+
"POI recommendation",
|
304 |
+
"POI recommendation",
|
305 |
+
"POI recommendation",
|
306 |
+
"Say goodbye",
|
307 |
+
"Say goodbye"
|
308 |
+
],
|
309 |
+
"situation": "Time: 20 18 - 12 - 12 22:00, at home Wednesday",
|
310 |
+
"knowledge": [
|
311 |
+
[
|
312 |
+
"Hengshui",
|
313 |
+
"2018-12-12",
|
314 |
+
"Sunny with southwest winds. The high will be 4 \u2103, and low - 7 \u2103"
|
315 |
+
],
|
316 |
+
[
|
317 |
+
"Hengshui",
|
318 |
+
"2018-12-12",
|
319 |
+
"Sunny with southwest winds. The high will be 4 \u2103, and low - 7 \u2103"
|
320 |
+
],
|
321 |
+
[],
|
322 |
+
[
|
323 |
+
"Sunny with southwest winds. The high will be 4 \u2103, and low - 7 \u2103",
|
324 |
+
"Perfect for having",
|
325 |
+
"Marinated Fish"
|
326 |
+
],
|
327 |
+
[],
|
328 |
+
[
|
329 |
+
"Marinated Fish",
|
330 |
+
"Ingredients",
|
331 |
+
"grouper\u3001Olive oil\u3001lemon juice\u3001Garlic\u3001pepper powder\u3001salt"
|
332 |
+
],
|
333 |
+
[],
|
334 |
+
[
|
335 |
+
"Mr.Fish Roasted",
|
336 |
+
"Specials",
|
337 |
+
"Marinated Fish"
|
338 |
+
],
|
339 |
+
[
|
340 |
+
"Mr.Fish Roasted",
|
341 |
+
"Rating",
|
342 |
+
"5"
|
343 |
+
],
|
344 |
+
[
|
345 |
+
"Mr.Fish Roasted",
|
346 |
+
"Rating",
|
347 |
+
"5"
|
348 |
+
],
|
349 |
+
[],
|
350 |
+
[],
|
351 |
+
[],
|
352 |
+
[]
|
353 |
+
]
|
354 |
+
},
|
355 |
+
"log": [
|
356 |
+
{
|
357 |
+
"turn id": 1,
|
358 |
+
"user utterance": "Baby, can you tell me the weather today?",
|
359 |
+
"system response": "OK, today in Hengshui it is sunny, with southwest winds. The high will be 4 \u2103 and low - 7 \u2103. Be sure to keep warm.",
|
360 |
+
"dialog history": "",
|
361 |
+
"original user side information": {},
|
362 |
+
"original system side information": {}
|
363 |
+
},
|
364 |
+
{
|
365 |
+
"turn id": 2,
|
366 |
+
"user utterance": "Wow, you're great. You know everything. Great!",
|
367 |
+
"system response": "There's nothing I don't know. I also know that today's weather is suitable to eat Marinated Fish.",
|
368 |
+
"dialog history": "<USER> Baby, can you tell me the weather today? <SYSTEM> OK, today in Hengshui it is sunny, with southwest winds. The high will be 4 \u2103 and low - 7 \u2103. Be sure to keep warm.",
|
369 |
+
"original user side information": {},
|
370 |
+
"original system side information": {}
|
371 |
+
},
|
372 |
+
{
|
373 |
+
"turn id": 3,
|
374 |
+
"user utterance": "Okay, I like it.",
|
375 |
+
"system response": "I know a restaurant where the Marinated Fish is made of grouper.",
|
376 |
+
"dialog history": "<USER> Baby, can you tell me the weather today? <SYSTEM> OK, today in Hengshui it is sunny, with southwest winds. The high will be 4 \u2103 and low - 7 \u2103. Be sure to keep warm. <USER> Wow, you're great. You know everything. Great! <SYSTEM> There's nothing I don't know. I also know that today's weather is suitable to eat Marinated Fish.",
|
377 |
+
"original user side information": {},
|
378 |
+
"original system side information": {}
|
379 |
+
},
|
380 |
+
{
|
381 |
+
"turn id": 4,
|
382 |
+
"user utterance": "Woah, there's grouper! I really like it! It's a tonic! I really want to have it!",
|
383 |
+
"system response": "If you like it so much, I know a restaurant which cooks groupers very well. Mr.Fish Roasted. The Marinated Fish here is very authentic!",
|
384 |
+
"dialog history": "<USER> Baby, can you tell me the weather today? <SYSTEM> OK, today in Hengshui it is sunny, with southwest winds. The high will be 4 \u2103 and low - 7 \u2103. Be sure to keep warm. <USER> Wow, you're great. You know everything. Great! <SYSTEM> There's nothing I don't know. I also know that today's weather is suitable to eat Marinated Fish. <USER> Okay, I like it. <SYSTEM> I know a restaurant where the Marinated Fish is made of grouper.",
|
385 |
+
"original user side information": {},
|
386 |
+
"original system side information": {}
|
387 |
+
},
|
388 |
+
{
|
389 |
+
"turn id": 5,
|
390 |
+
"user utterance": "Then tell me about the average meal cost per person, the address and the ratings.",
|
391 |
+
"system response": "It costs 0 yuan per person. The address is the intersection of Liushi Road, Huzhuang commercial and residential building, Yingbin North Street, Jizhou District, Jizhou. 5 points, very high.",
|
392 |
+
"dialog history": "<USER> Baby, can you tell me the weather today? <SYSTEM> OK, today in Hengshui it is sunny, with southwest winds. The high will be 4 \u2103 and low - 7 \u2103. Be sure to keep warm. <USER> Wow, you're great. You know everything. Great! <SYSTEM> There's nothing I don't know. I also know that today's weather is suitable to eat Marinated Fish. <USER> Okay, I like it. <SYSTEM> I know a restaurant where the Marinated Fish is made of grouper. <USER> Woah, there's grouper! I really like it! It's a tonic! I really want to have it! <SYSTEM> If you like it so much, I know a restaurant which cooks groupers very well. Mr.Fish Roasted. The Marinated Fish here is very authentic!",
|
393 |
+
"original user side information": {},
|
394 |
+
"original system side information": {}
|
395 |
+
},
|
396 |
+
{
|
397 |
+
"turn id": 6,
|
398 |
+
"user utterance": "Okay. I'll be there tomorrow noon with my partner, taking her to have a taste. Hehe!",
|
399 |
+
"system response": "Okay, I'll make a reservation for you. I'll say bon appetite in advance!",
|
400 |
+
"dialog history": "<USER> Baby, can you tell me the weather today? <SYSTEM> OK, today in Hengshui it is sunny, with southwest winds. The high will be 4 \u2103 and low - 7 \u2103. Be sure to keep warm. <USER> Wow, you're great. You know everything. Great! <SYSTEM> There's nothing I don't know. I also know that today's weather is suitable to eat Marinated Fish. <USER> Okay, I like it. <SYSTEM> I know a restaurant where the Marinated Fish is made of grouper. <USER> Woah, there's grouper! I really like it! It's a tonic! I really want to have it! <SYSTEM> If you like it so much, I know a restaurant which cooks groupers very well. Mr.Fish Roasted. The Marinated Fish here is very authentic! <USER> Then tell me about the average meal cost per person, the address and the ratings. <SYSTEM> It costs 0 yuan per person. The address is the intersection of Liushi Road, Huzhuang commercial and residential building, Yingbin North Street, Jizhou District, Jizhou. 5 points, very high.",
|
401 |
+
"original user side information": {},
|
402 |
+
"original system side information": {}
|
403 |
+
},
|
404 |
+
{
|
405 |
+
"turn id": 7,
|
406 |
+
"user utterance": "Thanks. Then I'm going to bed first. See you tomorrow. Bye.",
|
407 |
+
"system response": "All right. Bye~",
|
408 |
+
"dialog history": "<USER> Baby, can you tell me the weather today? <SYSTEM> OK, today in Hengshui it is sunny, with southwest winds. The high will be 4 \u2103 and low - 7 \u2103. Be sure to keep warm. <USER> Wow, you're great. You know everything. Great! <SYSTEM> There's nothing I don't know. I also know that today's weather is suitable to eat Marinated Fish. <USER> Okay, I like it. <SYSTEM> I know a restaurant where the Marinated Fish is made of grouper. <USER> Woah, there's grouper! I really like it! It's a tonic! I really want to have it! <SYSTEM> If you like it so much, I know a restaurant which cooks groupers very well. Mr.Fish Roasted. The Marinated Fish here is very authentic! <USER> Then tell me about the average meal cost per person, the address and the ratings. <SYSTEM> It costs 0 yuan per person. The address is the intersection of Liushi Road, Huzhuang commercial and residential building, Yingbin North Street, Jizhou District, Jizhou. 5 points, very high. <USER> Okay. I'll be there tomorrow noon with my partner, taking her to have a taste. Hehe! <SYSTEM> Okay, I'll make a reservation for you. I'll say bon appetite in advance!",
|
409 |
+
"original user side information": {},
|
410 |
+
"original system side information": {}
|
411 |
+
}
|
412 |
+
]
|
413 |
+
},
|
414 |
+
"DuRecDial-2.0--train--3": {
|
415 |
+
"original dialog id": "",
|
416 |
+
"dialog index": 3,
|
417 |
+
"original dialog info": {
|
418 |
+
"goal": "[1] Music on demand(Hand in Hand)-->[2] Music recommendation(Change Me)-->[3] Play music(All the Things You Never Knew)-->[4]Say goodbye",
|
419 |
+
"user_profile": {
|
420 |
+
"Residence": "Yangzhou",
|
421 |
+
"Age Range": "Over 50 years old",
|
422 |
+
"Name": "Li Xu",
|
423 |
+
"Accepted food": "Marinated Fish",
|
424 |
+
"Favorite news": [
|
425 |
+
"Bingbing Fan's news",
|
426 |
+
"Leehom Wang's news"
|
427 |
+
],
|
428 |
+
"Accepted movies": [
|
429 |
+
"Tiles of Deception, Lurid Affections: The Making of 'Lust, Caution'"
|
430 |
+
],
|
431 |
+
"Accepted Music": [
|
432 |
+
"A Simple Song",
|
433 |
+
"Heroes of Earth"
|
434 |
+
],
|
435 |
+
"Rejected music": [
|
436 |
+
"KISS GOODBYE"
|
437 |
+
],
|
438 |
+
"Gender": "Male",
|
439 |
+
"Accepted celebrities": [
|
440 |
+
"Bingbing Fan",
|
441 |
+
"Leehom Wang"
|
442 |
+
],
|
443 |
+
"Accepted movie": "Flash Point",
|
444 |
+
"Reject": [
|
445 |
+
"Poi"
|
446 |
+
],
|
447 |
+
"Rejected movies": [
|
448 |
+
"Lust, Caution"
|
449 |
+
],
|
450 |
+
"Accepted music": [
|
451 |
+
"Hand in Hand"
|
452 |
+
],
|
453 |
+
"Occupation": "Employed"
|
454 |
+
},
|
455 |
+
"conversation": [
|
456 |
+
"[1] Let's listen to Hand in Hand.",
|
457 |
+
"It's playing for you. Please enjoy it!",
|
458 |
+
"The songs of Leehom Wang are still so good.",
|
459 |
+
"[2] Then I recommend that you listen to Change Me, which is also sung by Leehom Wang. It's a song with a rock&roll style. Unlike Leehom Wang's previous works which are exciting and passionate, it starts from the bottom of the heart and finds the emotion in the ordinary with a calm heart.",
|
460 |
+
"I\u2018ve heard it, and I'm not interested in this song.",
|
461 |
+
"Then you can listen to his All the Things You Never Knew, which is very catchy. Both the melody and the lyrics along the movie are very impressive.",
|
462 |
+
"I haven't listened to it before. How is it?",
|
463 |
+
"It's catchy. You can't miss it.",
|
464 |
+
"Sounds good! I wanna listen to it.",
|
465 |
+
"[3] May I play this song for you?",
|
466 |
+
"Sure.",
|
467 |
+
"It's playing for you. Please enjoy it!",
|
468 |
+
"[4] It's a good song. Okay, I need to go now. See you next time.",
|
469 |
+
"All right. Bye!"
|
470 |
+
],
|
471 |
+
"goal_topic_list": [
|
472 |
+
"Hand in Hand",
|
473 |
+
"Hand in Hand",
|
474 |
+
"Hand in Hand",
|
475 |
+
"Change Me",
|
476 |
+
"Change Me",
|
477 |
+
"All the Things You Never Knew",
|
478 |
+
"All the Things You Never Knew",
|
479 |
+
"All the Things You Never Knew",
|
480 |
+
"All the Things You Never Knew",
|
481 |
+
"All the Things You Never Knew",
|
482 |
+
"All the Things You Never Knew",
|
483 |
+
"All the Things You Never Knew",
|
484 |
+
"Say goodbye",
|
485 |
+
"Say goodbye"
|
486 |
+
],
|
487 |
+
"goal_type_list": [
|
488 |
+
"Music on demand",
|
489 |
+
"Music on demand",
|
490 |
+
"Music on demand",
|
491 |
+
"Music recommendation",
|
492 |
+
"Music recommendation",
|
493 |
+
"Music recommendation",
|
494 |
+
"Music recommendation",
|
495 |
+
"Music recommendation",
|
496 |
+
"Music recommendation",
|
497 |
+
"Play music",
|
498 |
+
"Play music",
|
499 |
+
"Play music",
|
500 |
+
"Say goodbye",
|
501 |
+
"Say goodbye"
|
502 |
+
],
|
503 |
+
"situation": "Time: 18:00,on the way home",
|
504 |
+
"knowledge": [
|
505 |
+
[],
|
506 |
+
[],
|
507 |
+
[
|
508 |
+
"Leehom Wang",
|
509 |
+
"Sings",
|
510 |
+
"Hand in Hand"
|
511 |
+
],
|
512 |
+
[
|
513 |
+
"Leehom Wang",
|
514 |
+
"Sings",
|
515 |
+
"Change Me"
|
516 |
+
],
|
517 |
+
[],
|
518 |
+
[
|
519 |
+
"Leehom Wang",
|
520 |
+
"Sings",
|
521 |
+
"All the Things You Never Knew"
|
522 |
+
],
|
523 |
+
[],
|
524 |
+
[],
|
525 |
+
[],
|
526 |
+
[],
|
527 |
+
[],
|
528 |
+
[],
|
529 |
+
[],
|
530 |
+
[]
|
531 |
+
]
|
532 |
+
},
|
533 |
+
"log": [
|
534 |
+
{
|
535 |
+
"turn id": 1,
|
536 |
+
"user utterance": "Let's listen to Hand in Hand.",
|
537 |
+
"system response": "It's playing for you. Please enjoy it!",
|
538 |
+
"dialog history": "",
|
539 |
+
"original user side information": {},
|
540 |
+
"original system side information": {}
|
541 |
+
},
|
542 |
+
{
|
543 |
+
"turn id": 2,
|
544 |
+
"user utterance": "The songs of Leehom Wang are still so good.",
|
545 |
+
"system response": "Then I recommend that you listen to Change Me, which is also sung by Leehom Wang. It's a song with a rock&roll style. Unlike Leehom Wang's previous works which are exciting and passionate, it starts from the bottom of the heart and finds the emotion in the ordinary with a calm heart.",
|
546 |
+
"dialog history": "<USER> Let's listen to Hand in Hand. <SYSTEM> It's playing for you. Please enjoy it!",
|
547 |
+
"original user side information": {},
|
548 |
+
"original system side information": {}
|
549 |
+
},
|
550 |
+
{
|
551 |
+
"turn id": 3,
|
552 |
+
"user utterance": "I\u2018ve heard it, and I'm not interested in this song.",
|
553 |
+
"system response": "Then you can listen to his All the Things You Never Knew, which is very catchy. Both the melody and the lyrics along the movie are very impressive.",
|
554 |
+
"dialog history": "<USER> Let's listen to Hand in Hand. <SYSTEM> It's playing for you. Please enjoy it! <USER> The songs of Leehom Wang are still so good. <SYSTEM> Then I recommend that you listen to Change Me, which is also sung by Leehom Wang. It's a song with a rock&roll style. Unlike Leehom Wang's previous works which are exciting and passionate, it starts from the bottom of the heart and finds the emotion in the ordinary with a calm heart.",
|
555 |
+
"original user side information": {},
|
556 |
+
"original system side information": {}
|
557 |
+
},
|
558 |
+
{
|
559 |
+
"turn id": 4,
|
560 |
+
"user utterance": "I haven't listened to it before. How is it?",
|
561 |
+
"system response": "It's catchy. You can't miss it.",
|
562 |
+
"dialog history": "<USER> Let's listen to Hand in Hand. <SYSTEM> It's playing for you. Please enjoy it! <USER> The songs of Leehom Wang are still so good. <SYSTEM> Then I recommend that you listen to Change Me, which is also sung by Leehom Wang. It's a song with a rock&roll style. Unlike Leehom Wang's previous works which are exciting and passionate, it starts from the bottom of the heart and finds the emotion in the ordinary with a calm heart. <USER> I\u2018ve heard it, and I'm not interested in this song. <SYSTEM> Then you can listen to his All the Things You Never Knew, which is very catchy. Both the melody and the lyrics along the movie are very impressive.",
|
563 |
+
"original user side information": {},
|
564 |
+
"original system side information": {}
|
565 |
+
},
|
566 |
+
{
|
567 |
+
"turn id": 5,
|
568 |
+
"user utterance": "Sounds good! I wanna listen to it.",
|
569 |
+
"system response": "May I play this song for you?",
|
570 |
+
"dialog history": "<USER> Let's listen to Hand in Hand. <SYSTEM> It's playing for you. Please enjoy it! <USER> The songs of Leehom Wang are still so good. <SYSTEM> Then I recommend that you listen to Change Me, which is also sung by Leehom Wang. It's a song with a rock&roll style. Unlike Leehom Wang's previous works which are exciting and passionate, it starts from the bottom of the heart and finds the emotion in the ordinary with a calm heart. <USER> I\u2018ve heard it, and I'm not interested in this song. <SYSTEM> Then you can listen to his All the Things You Never Knew, which is very catchy. Both the melody and the lyrics along the movie are very impressive. <USER> I haven't listened to it before. How is it? <SYSTEM> It's catchy. You can't miss it.",
|
571 |
+
"original user side information": {},
|
572 |
+
"original system side information": {}
|
573 |
+
},
|
574 |
+
{
|
575 |
+
"turn id": 6,
|
576 |
+
"user utterance": "Sure.",
|
577 |
+
"system response": "It's playing for you. Please enjoy it!",
|
578 |
+
"dialog history": "<USER> Let's listen to Hand in Hand. <SYSTEM> It's playing for you. Please enjoy it! <USER> The songs of Leehom Wang are still so good. <SYSTEM> Then I recommend that you listen to Change Me, which is also sung by Leehom Wang. It's a song with a rock&roll style. Unlike Leehom Wang's previous works which are exciting and passionate, it starts from the bottom of the heart and finds the emotion in the ordinary with a calm heart. <USER> I\u2018ve heard it, and I'm not interested in this song. <SYSTEM> Then you can listen to his All the Things You Never Knew, which is very catchy. Both the melody and the lyrics along the movie are very impressive. <USER> I haven't listened to it before. How is it? <SYSTEM> It's catchy. You can't miss it. <USER> Sounds good! I wanna listen to it. <SYSTEM> May I play this song for you?",
|
579 |
+
"original user side information": {},
|
580 |
+
"original system side information": {}
|
581 |
+
},
|
582 |
+
{
|
583 |
+
"turn id": 7,
|
584 |
+
"user utterance": "It's a good song. Okay, I need to go now. See you next time.",
|
585 |
+
"system response": "All right. Bye!",
|
586 |
+
"dialog history": "<USER> Let's listen to Hand in Hand. <SYSTEM> It's playing for you. Please enjoy it! <USER> The songs of Leehom Wang are still so good. <SYSTEM> Then I recommend that you listen to Change Me, which is also sung by Leehom Wang. It's a song with a rock&roll style. Unlike Leehom Wang's previous works which are exciting and passionate, it starts from the bottom of the heart and finds the emotion in the ordinary with a calm heart. <USER> I\u2018ve heard it, and I'm not interested in this song. <SYSTEM> Then you can listen to his All the Things You Never Knew, which is very catchy. Both the melody and the lyrics along the movie are very impressive. <USER> I haven't listened to it before. How is it? <SYSTEM> It's catchy. You can't miss it. <USER> Sounds good! I wanna listen to it. <SYSTEM> May I play this song for you? <USER> Sure. <SYSTEM> It's playing for you. Please enjoy it!",
|
587 |
+
"original user side information": {},
|
588 |
+
"original system side information": {}
|
589 |
+
}
|
590 |
+
]
|
591 |
+
},
|
592 |
+
"DuRecDial-2.0--train--4": {
|
593 |
+
"original dialog id": "",
|
594 |
+
"dialog index": 4,
|
595 |
+
"original dialog info": {
|
596 |
+
"goal": "[1]Ask about weather-->[2] Food recommendation(Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0)-->[3] POI recommendation(Laoqi Sichuan Restaurant)-->[4]Say goodbye",
|
597 |
+
"user_profile": {
|
598 |
+
"Age Range": "26-35",
|
599 |
+
"Name": "Jiaoyang Jin",
|
600 |
+
"Residence": "Xining",
|
601 |
+
"Accepted food": "Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
602 |
+
"Accepted movies": [
|
603 |
+
"Flash Point",
|
604 |
+
"Sophie's Revenge",
|
605 |
+
"I Am Not Madame Bovary",
|
606 |
+
"Call for Love",
|
607 |
+
"Hand Phone"
|
608 |
+
],
|
609 |
+
"Gender": "Female",
|
610 |
+
"Accepted celebrities": [
|
611 |
+
"Bingbing Fan"
|
612 |
+
],
|
613 |
+
"Accepted movie": [
|
614 |
+
"Battle of Wits"
|
615 |
+
],
|
616 |
+
"Reject": [
|
617 |
+
"music"
|
618 |
+
],
|
619 |
+
"Rejected movies": [
|
620 |
+
"Ever Since We Love"
|
621 |
+
],
|
622 |
+
"Occupation": "Student",
|
623 |
+
"Favorite news": [
|
624 |
+
"Bingbing Fan's news"
|
625 |
+
],
|
626 |
+
"Accepted POI": "Laoqi Sichuan Restaurant"
|
627 |
+
},
|
628 |
+
"conversation": [
|
629 |
+
"[1] Good afternoon. What's the weather like today?",
|
630 |
+
"Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm.",
|
631 |
+
"Okay, I'll be careful. Thank you.",
|
632 |
+
"[2] Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork.",
|
633 |
+
"I was thinking about what to eat and then you recommend. You can read my mind.",
|
634 |
+
"Haha. Then don't miss Saut\u00e9ed Spicy Pork.",
|
635 |
+
"I'll have it for lunch.",
|
636 |
+
"[3] I know a place which cooks Saut\u00e9ed Spicy Pork very well, and that is Laoqi Sichuan Restaurant.",
|
637 |
+
"How much does this restaurant cost per person?",
|
638 |
+
"32 yuan.",
|
639 |
+
"It's affordable. What's the address?",
|
640 |
+
"Next to Yinhe Fish, Golden Home, No.914 Qilian Road, Chengbei District. It's easy to find it.",
|
641 |
+
"Okay. I've checked it and it's not very far. What about the ratings?",
|
642 |
+
"4.7 points, very high.",
|
643 |
+
"The score is high. Okay, I'll choose this one. Three of us, at around 1 pm. Would you please make a reservation?",
|
644 |
+
"Okay, I'll do it right now.",
|
645 |
+
"[4] Thank you. I'll go first, bye.",
|
646 |
+
"Okay. Goodbye."
|
647 |
+
],
|
648 |
+
"goal_topic_list": [
|
649 |
+
"Ask about weather",
|
650 |
+
"Ask about weather",
|
651 |
+
"Ask about weather",
|
652 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
653 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
654 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
655 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
656 |
+
"Laoqi Sichuan Restaurant",
|
657 |
+
"Laoqi Sichuan Restaurant",
|
658 |
+
"Laoqi Sichuan Restaurant",
|
659 |
+
"Laoqi Sichuan Restaurant",
|
660 |
+
"Laoqi Sichuan Restaurant",
|
661 |
+
"Laoqi Sichuan Restaurant",
|
662 |
+
"Laoqi Sichuan Restaurant",
|
663 |
+
"Laoqi Sichuan Restaurant",
|
664 |
+
"Laoqi Sichuan Restaurant",
|
665 |
+
"Say goodbye",
|
666 |
+
"Say goodbye"
|
667 |
+
],
|
668 |
+
"goal_type_list": [
|
669 |
+
"Ask about weather",
|
670 |
+
"Ask about weather",
|
671 |
+
"Ask about weather",
|
672 |
+
"Food recommendation",
|
673 |
+
"Food recommendation",
|
674 |
+
"Food recommendation",
|
675 |
+
"Food recommendation",
|
676 |
+
"POI recommendation",
|
677 |
+
"POI recommendation",
|
678 |
+
"POI recommendation",
|
679 |
+
"POI recommendation",
|
680 |
+
"POI recommendation",
|
681 |
+
"POI recommendation",
|
682 |
+
"POI recommendation",
|
683 |
+
"POI recommendation",
|
684 |
+
"POI recommendation",
|
685 |
+
"Say goodbye",
|
686 |
+
"Say goodbye"
|
687 |
+
],
|
688 |
+
"situation": "Time: 20 18 - 11 - 22 12:00, at school Thursday",
|
689 |
+
"knowledge": [
|
690 |
+
[
|
691 |
+
"Xining",
|
692 |
+
"2018-11-22",
|
693 |
+
"Sunny with northwest winds. The high will be 6 \u2103, and low - 12 \u2103"
|
694 |
+
],
|
695 |
+
[
|
696 |
+
"Xining",
|
697 |
+
"2018-11-22",
|
698 |
+
"Sunny with northwest winds. The high will be 6 \u2103, and low - 12 \u2103"
|
699 |
+
],
|
700 |
+
[],
|
701 |
+
[
|
702 |
+
"Sunny with northwest winds. The high will be 6 \u2103, and low - 12 \u2103",
|
703 |
+
"Perfect for having",
|
704 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0"
|
705 |
+
],
|
706 |
+
[],
|
707 |
+
[
|
708 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
709 |
+
"Type",
|
710 |
+
"Hot Dishes"
|
711 |
+
],
|
712 |
+
[],
|
713 |
+
[
|
714 |
+
"Laoqi Sichuan Restaurant",
|
715 |
+
"Specials",
|
716 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0"
|
717 |
+
],
|
718 |
+
[
|
719 |
+
"Laoqi Sichuan Restaurant",
|
720 |
+
"Price per person",
|
721 |
+
"32"
|
722 |
+
],
|
723 |
+
[
|
724 |
+
"Laoqi Sichuan Restaurant",
|
725 |
+
"Price per person",
|
726 |
+
"32"
|
727 |
+
],
|
728 |
+
[
|
729 |
+
"Laoqi Sichuan Restaurant",
|
730 |
+
"Address",
|
731 |
+
"Next to Yinhe Yuzhuang, Jinse Jiayuan, No.914 Qilian Road, Chengbei District"
|
732 |
+
],
|
733 |
+
[
|
734 |
+
"Laoqi Sichuan Restaurant",
|
735 |
+
"Address",
|
736 |
+
"Next to Yinhe Yuzhuang, Jinse Jiayuan, No.914 Qilian Road, Chengbei District"
|
737 |
+
],
|
738 |
+
[
|
739 |
+
"Laoqi Sichuan Restaurant",
|
740 |
+
"Rating",
|
741 |
+
"4.7"
|
742 |
+
],
|
743 |
+
[
|
744 |
+
"Laoqi Sichuan Restaurant",
|
745 |
+
"Rating",
|
746 |
+
"4.7"
|
747 |
+
],
|
748 |
+
[],
|
749 |
+
[],
|
750 |
+
[],
|
751 |
+
[]
|
752 |
+
]
|
753 |
+
},
|
754 |
+
"log": [
|
755 |
+
{
|
756 |
+
"turn id": 1,
|
757 |
+
"user utterance": "Good afternoon. What's the weather like today?",
|
758 |
+
"system response": "Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm.",
|
759 |
+
"dialog history": "",
|
760 |
+
"original user side information": {},
|
761 |
+
"original system side information": {}
|
762 |
+
},
|
763 |
+
{
|
764 |
+
"turn id": 2,
|
765 |
+
"user utterance": "Okay, I'll be careful. Thank you.",
|
766 |
+
"system response": "Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork.",
|
767 |
+
"dialog history": "<USER> Good afternoon. What's the weather like today? <SYSTEM> Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm.",
|
768 |
+
"original user side information": {},
|
769 |
+
"original system side information": {}
|
770 |
+
},
|
771 |
+
{
|
772 |
+
"turn id": 3,
|
773 |
+
"user utterance": "I was thinking about what to eat and then you recommend. You can read my mind.",
|
774 |
+
"system response": "Haha. Then don't miss Saut\u00e9ed Spicy Pork.",
|
775 |
+
"dialog history": "<USER> Good afternoon. What's the weather like today? <SYSTEM> Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm. <USER> Okay, I'll be careful. Thank you. <SYSTEM> Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork.",
|
776 |
+
"original user side information": {},
|
777 |
+
"original system side information": {}
|
778 |
+
},
|
779 |
+
{
|
780 |
+
"turn id": 4,
|
781 |
+
"user utterance": "I'll have it for lunch.",
|
782 |
+
"system response": "I know a place which cooks Saut\u00e9ed Spicy Pork very well, and that is Laoqi Sichuan Restaurant.",
|
783 |
+
"dialog history": "<USER> Good afternoon. What's the weather like today? <SYSTEM> Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm. <USER> Okay, I'll be careful. Thank you. <SYSTEM> Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork. <USER> I was thinking about what to eat and then you recommend. You can read my mind. <SYSTEM> Haha. Then don't miss Saut\u00e9ed Spicy Pork.",
|
784 |
+
"original user side information": {},
|
785 |
+
"original system side information": {}
|
786 |
+
},
|
787 |
+
{
|
788 |
+
"turn id": 5,
|
789 |
+
"user utterance": "How much does this restaurant cost per person?",
|
790 |
+
"system response": "32 yuan.",
|
791 |
+
"dialog history": "<USER> Good afternoon. What's the weather like today? <SYSTEM> Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm. <USER> Okay, I'll be careful. Thank you. <SYSTEM> Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork. <USER> I was thinking about what to eat and then you recommend. You can read my mind. <SYSTEM> Haha. Then don't miss Saut\u00e9ed Spicy Pork. <USER> I'll have it for lunch. <SYSTEM> I know a place which cooks Saut\u00e9ed Spicy Pork very well, and that is Laoqi Sichuan Restaurant.",
|
792 |
+
"original user side information": {},
|
793 |
+
"original system side information": {}
|
794 |
+
},
|
795 |
+
{
|
796 |
+
"turn id": 6,
|
797 |
+
"user utterance": "It's affordable. What's the address?",
|
798 |
+
"system response": "Next to Yinhe Fish, Golden Home, No.914 Qilian Road, Chengbei District. It's easy to find it.",
|
799 |
+
"dialog history": "<USER> Good afternoon. What's the weather like today? <SYSTEM> Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm. <USER> Okay, I'll be careful. Thank you. <SYSTEM> Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork. <USER> I was thinking about what to eat and then you recommend. You can read my mind. <SYSTEM> Haha. Then don't miss Saut\u00e9ed Spicy Pork. <USER> I'll have it for lunch. <SYSTEM> I know a place which cooks Saut\u00e9ed Spicy Pork very well, and that is Laoqi Sichuan Restaurant. <USER> How much does this restaurant cost per person? <SYSTEM> 32 yuan.",
|
800 |
+
"original user side information": {},
|
801 |
+
"original system side information": {}
|
802 |
+
},
|
803 |
+
{
|
804 |
+
"turn id": 7,
|
805 |
+
"user utterance": "Okay. I've checked it and it's not very far. What about the ratings?",
|
806 |
+
"system response": "4.7 points, very high.",
|
807 |
+
"dialog history": "<USER> Good afternoon. What's the weather like today? <SYSTEM> Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm. <USER> Okay, I'll be careful. Thank you. <SYSTEM> Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork. <USER> I was thinking about what to eat and then you recommend. You can read my mind. <SYSTEM> Haha. Then don't miss Saut\u00e9ed Spicy Pork. <USER> I'll have it for lunch. <SYSTEM> I know a place which cooks Saut\u00e9ed Spicy Pork very well, and that is Laoqi Sichuan Restaurant. <USER> How much does this restaurant cost per person? <SYSTEM> 32 yuan. <USER> It's affordable. What's the address? <SYSTEM> Next to Yinhe Fish, Golden Home, No.914 Qilian Road, Chengbei District. It's easy to find it.",
|
808 |
+
"original user side information": {},
|
809 |
+
"original system side information": {}
|
810 |
+
},
|
811 |
+
{
|
812 |
+
"turn id": 8,
|
813 |
+
"user utterance": "The score is high. Okay, I'll choose this one. Three of us, at around 1 pm. Would you please make a reservation?",
|
814 |
+
"system response": "Okay, I'll do it right now.",
|
815 |
+
"dialog history": "<USER> Good afternoon. What's the weather like today? <SYSTEM> Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm. <USER> Okay, I'll be careful. Thank you. <SYSTEM> Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork. <USER> I was thinking about what to eat and then you recommend. You can read my mind. <SYSTEM> Haha. Then don't miss Saut\u00e9ed Spicy Pork. <USER> I'll have it for lunch. <SYSTEM> I know a place which cooks Saut\u00e9ed Spicy Pork very well, and that is Laoqi Sichuan Restaurant. <USER> How much does this restaurant cost per person? <SYSTEM> 32 yuan. <USER> It's affordable. What's the address? <SYSTEM> Next to Yinhe Fish, Golden Home, No.914 Qilian Road, Chengbei District. It's easy to find it. <USER> Okay. I've checked it and it's not very far. What about the ratings? <SYSTEM> 4.7 points, very high.",
|
816 |
+
"original user side information": {},
|
817 |
+
"original system side information": {}
|
818 |
+
},
|
819 |
+
{
|
820 |
+
"turn id": 9,
|
821 |
+
"user utterance": "Thank you. I'll go first, bye.",
|
822 |
+
"system response": "Okay. Goodbye.",
|
823 |
+
"dialog history": "<USER> Good afternoon. What's the weather like today? <SYSTEM> Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm. <USER> Okay, I'll be careful. Thank you. <SYSTEM> Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork. <USER> I was thinking about what to eat and then you recommend. You can read my mind. <SYSTEM> Haha. Then don't miss Saut\u00e9ed Spicy Pork. <USER> I'll have it for lunch. <SYSTEM> I know a place which cooks Saut\u00e9ed Spicy Pork very well, and that is Laoqi Sichuan Restaurant. <USER> How much does this restaurant cost per person? <SYSTEM> 32 yuan. <USER> It's affordable. What's the address? <SYSTEM> Next to Yinhe Fish, Golden Home, No.914 Qilian Road, Chengbei District. It's easy to find it. <USER> Okay. I've checked it and it's not very far. What about the ratings? <SYSTEM> 4.7 points, very high. <USER> The score is high. Okay, I'll choose this one. Three of us, at around 1 pm. Would you please make a reservation? <SYSTEM> Okay, I'll do it right now.",
|
824 |
+
"original user side information": {},
|
825 |
+
"original system side information": {}
|
826 |
+
}
|
827 |
+
]
|
828 |
+
},
|
829 |
+
"DuRecDial-2.0--train--5": {
|
830 |
+
"original dialog id": "",
|
831 |
+
"dialog index": 5,
|
832 |
+
"original dialog info": {
|
833 |
+
"goal": "[1]Greetings-->[2]Ask about user's name-->[3]Ask about user's gender-->[4]Ask about user's age-->[5]Ask about user's hobbies-->[6]Say goodbye",
|
834 |
+
"user_profile": {
|
835 |
+
"Residence": "Shijiazhuang",
|
836 |
+
"Gender": "Female",
|
837 |
+
"Age Range": "7-10",
|
838 |
+
"Name": "Xinxi Zhang",
|
839 |
+
"Occupation": "Student"
|
840 |
+
},
|
841 |
+
"conversation": [
|
842 |
+
"[1] Good evening. What are you doing?",
|
843 |
+
"Hello! I'm watching anime.",
|
844 |
+
"How are you doing lately?",
|
845 |
+
"I've stepped backwards in my schoolwork and I've been criticized by my parents today. I'm not happy.",
|
846 |
+
"[2] Then let me talk to you to make you relaxed. What's your name?",
|
847 |
+
"My name is Xinqian Zhang.",
|
848 |
+
"[3] Nice name. Are you a boy or a girl?",
|
849 |
+
"Of course a girl since my name is catchy!",
|
850 |
+
"[4] How old are you this year?",
|
851 |
+
"I'm eight years old.",
|
852 |
+
"[5] What do you like to do?",
|
853 |
+
"Yes, I like small animals, watching animations and listening to children's songs.",
|
854 |
+
"Well your life is colorful.",
|
855 |
+
"[6] I should go to bed early. So bye.",
|
856 |
+
"Okay, see you next time. Bye.",
|
857 |
+
"Bye!"
|
858 |
+
],
|
859 |
+
"goal_topic_list": [
|
860 |
+
"Greetings",
|
861 |
+
"Greetings",
|
862 |
+
"Greetings",
|
863 |
+
"Greetings",
|
864 |
+
"Ask about user's name",
|
865 |
+
"Ask about user's name",
|
866 |
+
"Ask about user's gender",
|
867 |
+
"Ask about user's gender",
|
868 |
+
"Ask about user's age",
|
869 |
+
"Ask about user's age",
|
870 |
+
"Ask about user's hobbies",
|
871 |
+
"Ask about user's hobbies",
|
872 |
+
"Ask about user's hobbies",
|
873 |
+
"Say goodbye",
|
874 |
+
"Say goodbye",
|
875 |
+
"Say goodbye"
|
876 |
+
],
|
877 |
+
"goal_type_list": [
|
878 |
+
"Greetings",
|
879 |
+
"Greetings",
|
880 |
+
"Greetings",
|
881 |
+
"Greetings",
|
882 |
+
"Ask about user's name",
|
883 |
+
"Ask about user's name",
|
884 |
+
"Ask about user's gender",
|
885 |
+
"Ask about user's gender",
|
886 |
+
"Ask about user's age",
|
887 |
+
"Ask about user's age",
|
888 |
+
"Ask about user's hobbies",
|
889 |
+
"Ask about user's hobbies",
|
890 |
+
"Ask about user's hobbies",
|
891 |
+
"Say goodbye",
|
892 |
+
"Say goodbye",
|
893 |
+
"Say goodbye"
|
894 |
+
],
|
895 |
+
"situation": "Time: 20:00, at home Topic: Academic setback",
|
896 |
+
"knowledge": [
|
897 |
+
[],
|
898 |
+
[],
|
899 |
+
[],
|
900 |
+
[],
|
901 |
+
[],
|
902 |
+
[],
|
903 |
+
[],
|
904 |
+
[],
|
905 |
+
[],
|
906 |
+
[],
|
907 |
+
[
|
908 |
+
"Xinxi Zhang",
|
909 |
+
"Prefers",
|
910 |
+
"Animal"
|
911 |
+
],
|
912 |
+
[
|
913 |
+
"Xinxi Zhang",
|
914 |
+
"Prefers",
|
915 |
+
"Animal"
|
916 |
+
],
|
917 |
+
[],
|
918 |
+
[],
|
919 |
+
[],
|
920 |
+
[]
|
921 |
+
]
|
922 |
+
},
|
923 |
+
"log": [
|
924 |
+
{
|
925 |
+
"turn id": 1,
|
926 |
+
"user utterance": "",
|
927 |
+
"system response": "Good evening. What are you doing?",
|
928 |
+
"dialog history": "",
|
929 |
+
"original user side information": {},
|
930 |
+
"original system side information": {}
|
931 |
+
},
|
932 |
+
{
|
933 |
+
"turn id": 2,
|
934 |
+
"user utterance": "Hello! I'm watching anime.",
|
935 |
+
"system response": "How are you doing lately?",
|
936 |
+
"dialog history": "<SYSTEM> Good evening. What are you doing?",
|
937 |
+
"original user side information": {},
|
938 |
+
"original system side information": {}
|
939 |
+
},
|
940 |
+
{
|
941 |
+
"turn id": 3,
|
942 |
+
"user utterance": "I've stepped backwards in my schoolwork and I've been criticized by my parents today. I'm not happy.",
|
943 |
+
"system response": "Then let me talk to you to make you relaxed. What's your name?",
|
944 |
+
"dialog history": "<SYSTEM> Good evening. What are you doing? <USER> Hello! I'm watching anime. <SYSTEM> How are you doing lately?",
|
945 |
+
"original user side information": {},
|
946 |
+
"original system side information": {}
|
947 |
+
},
|
948 |
+
{
|
949 |
+
"turn id": 4,
|
950 |
+
"user utterance": "My name is Xinqian Zhang.",
|
951 |
+
"system response": "Nice name. Are you a boy or a girl?",
|
952 |
+
"dialog history": "<SYSTEM> Good evening. What are you doing? <USER> Hello! I'm watching anime. <SYSTEM> How are you doing lately? <USER> I've stepped backwards in my schoolwork and I've been criticized by my parents today. I'm not happy. <SYSTEM> Then let me talk to you to make you relaxed. What's your name?",
|
953 |
+
"original user side information": {},
|
954 |
+
"original system side information": {}
|
955 |
+
},
|
956 |
+
{
|
957 |
+
"turn id": 5,
|
958 |
+
"user utterance": "Of course a girl since my name is catchy!",
|
959 |
+
"system response": "How old are you this year?",
|
960 |
+
"dialog history": "<SYSTEM> Good evening. What are you doing? <USER> Hello! I'm watching anime. <SYSTEM> How are you doing lately? <USER> I've stepped backwards in my schoolwork and I've been criticized by my parents today. I'm not happy. <SYSTEM> Then let me talk to you to make you relaxed. What's your name? <USER> My name is Xinqian Zhang. <SYSTEM> Nice name. Are you a boy or a girl?",
|
961 |
+
"original user side information": {},
|
962 |
+
"original system side information": {}
|
963 |
+
},
|
964 |
+
{
|
965 |
+
"turn id": 6,
|
966 |
+
"user utterance": "I'm eight years old.",
|
967 |
+
"system response": "What do you like to do?",
|
968 |
+
"dialog history": "<SYSTEM> Good evening. What are you doing? <USER> Hello! I'm watching anime. <SYSTEM> How are you doing lately? <USER> I've stepped backwards in my schoolwork and I've been criticized by my parents today. I'm not happy. <SYSTEM> Then let me talk to you to make you relaxed. What's your name? <USER> My name is Xinqian Zhang. <SYSTEM> Nice name. Are you a boy or a girl? <USER> Of course a girl since my name is catchy! <SYSTEM> How old are you this year?",
|
969 |
+
"original user side information": {},
|
970 |
+
"original system side information": {}
|
971 |
+
},
|
972 |
+
{
|
973 |
+
"turn id": 7,
|
974 |
+
"user utterance": "Yes, I like small animals, watching animations and listening to children's songs.",
|
975 |
+
"system response": "Well your life is colorful.",
|
976 |
+
"dialog history": "<SYSTEM> Good evening. What are you doing? <USER> Hello! I'm watching anime. <SYSTEM> How are you doing lately? <USER> I've stepped backwards in my schoolwork and I've been criticized by my parents today. I'm not happy. <SYSTEM> Then let me talk to you to make you relaxed. What's your name? <USER> My name is Xinqian Zhang. <SYSTEM> Nice name. Are you a boy or a girl? <USER> Of course a girl since my name is catchy! <SYSTEM> How old are you this year? <USER> I'm eight years old. <SYSTEM> What do you like to do?",
|
977 |
+
"original user side information": {},
|
978 |
+
"original system side information": {}
|
979 |
+
},
|
980 |
+
{
|
981 |
+
"turn id": 8,
|
982 |
+
"user utterance": "I should go to bed early. So bye.",
|
983 |
+
"system response": "Okay, see you next time. Bye.",
|
984 |
+
"dialog history": "<SYSTEM> Good evening. What are you doing? <USER> Hello! I'm watching anime. <SYSTEM> How are you doing lately? <USER> I've stepped backwards in my schoolwork and I've been criticized by my parents today. I'm not happy. <SYSTEM> Then let me talk to you to make you relaxed. What's your name? <USER> My name is Xinqian Zhang. <SYSTEM> Nice name. Are you a boy or a girl? <USER> Of course a girl since my name is catchy! <SYSTEM> How old are you this year? <USER> I'm eight years old. <SYSTEM> What do you like to do? <USER> Yes, I like small animals, watching animations and listening to children's songs. <SYSTEM> Well your life is colorful.",
|
985 |
+
"original user side information": {},
|
986 |
+
"original system side information": {}
|
987 |
+
},
|
988 |
+
{
|
989 |
+
"turn id": 9,
|
990 |
+
"user utterance": "Bye!",
|
991 |
+
"system response": "",
|
992 |
+
"dialog history": "<SYSTEM> Good evening. What are you doing? <USER> Hello! I'm watching anime. <SYSTEM> How are you doing lately? <USER> I've stepped backwards in my schoolwork and I've been criticized by my parents today. I'm not happy. <SYSTEM> Then let me talk to you to make you relaxed. What's your name? <USER> My name is Xinqian Zhang. <SYSTEM> Nice name. Are you a boy or a girl? <USER> Of course a girl since my name is catchy! <SYSTEM> How old are you this year? <USER> I'm eight years old. <SYSTEM> What do you like to do? <USER> Yes, I like small animals, watching animations and listening to children's songs. <SYSTEM> Well your life is colorful. <USER> I should go to bed early. So bye. <SYSTEM> Okay, see you next time. Bye.",
|
993 |
+
"original user side information": {},
|
994 |
+
"original system side information": {}
|
995 |
+
}
|
996 |
+
]
|
997 |
+
}
|
998 |
+
}
|
conversational-recommendation-dialogues/DuRecDial-2.0/original_examples.json
ADDED
@@ -0,0 +1,648 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"goal": "[1] Q&A(Cecilia Cheung)-->[2] Chat about stars(Cecilia Cheung)-->[3] Movie recommendation(Failan)-->[4] Movie recommendation(The Stool Pigeon)-->[5]Say goodbye",
|
4 |
+
"user_profile": {
|
5 |
+
"Age Range": "Under 18 years old",
|
6 |
+
"Name": "Fangyang Liu",
|
7 |
+
"Residence": "Qingdao",
|
8 |
+
"Accepted food": "Jiaozi\u00a0Stuffed\u00a0with\u00a0Mackerel\u00a0",
|
9 |
+
"Accepted movies": [
|
10 |
+
"Left Right Love Destiny",
|
11 |
+
"Hot Summer Days",
|
12 |
+
"Fly Me to Polaris",
|
13 |
+
"Help!!!",
|
14 |
+
"One Night in Mongkok",
|
15 |
+
"The Bullet Vanishes"
|
16 |
+
],
|
17 |
+
"Accepted Music": [
|
18 |
+
"Once"
|
19 |
+
],
|
20 |
+
"Rejected music": [
|
21 |
+
"It's Time"
|
22 |
+
],
|
23 |
+
"Gender": "Female",
|
24 |
+
"Accepted celebrities": [
|
25 |
+
"Cecilia Cheung",
|
26 |
+
"Kris Wu",
|
27 |
+
"Nicholas Tse"
|
28 |
+
],
|
29 |
+
"Accepted movie": [
|
30 |
+
"The Legend of Speed"
|
31 |
+
],
|
32 |
+
"Reject": [
|
33 |
+
"News"
|
34 |
+
],
|
35 |
+
"Rejected movies": [
|
36 |
+
"Everyday is Valentine",
|
37 |
+
"Unforgettable",
|
38 |
+
"King of Comedy"
|
39 |
+
],
|
40 |
+
"Occupation": "Student",
|
41 |
+
"Accepted music": "Time Boils The Rain",
|
42 |
+
"Accepted POI": [
|
43 |
+
"Minguo Seafood Dumpling House"
|
44 |
+
]
|
45 |
+
},
|
46 |
+
"conversation": [
|
47 |
+
"[1] Who is the leading actor of the movie Left Right Love Destiny?",
|
48 |
+
"It's Cecilia Cheung",
|
49 |
+
"You even know that. Excellent!",
|
50 |
+
"[2] Thank you for your praise. She's a Chinese idol. Of course I know her.",
|
51 |
+
"Yes my idol is quite unusual.",
|
52 |
+
"She is also an Asian Outstanding Artist in New York Chinese Film Festival. Excellent.",
|
53 |
+
"Yes. People like her will shine wherever they go.",
|
54 |
+
"[3] Then don't miss her movie Failan. It shows a love tragedy in which the two people are secluded in different time spaces. However, the movie doesn't just tell a sad but beautiful love story. Through the story, the audiences can see the director's profound thinking and understanding of life and human nature.",
|
55 |
+
"Although I really like her, I prefer to see Nicholas Tse's movies.",
|
56 |
+
"[4] Then you can watch Nicholas Tse's movie The Stool Pigeon. His acting is good.",
|
57 |
+
"What kind of movie is it?",
|
58 |
+
"It's an action drama, with a little bit of thriller.",
|
59 |
+
"Woah, sounds interesting.",
|
60 |
+
"I'm sure you'll like it.",
|
61 |
+
"[5] Then I'm leaving too see the movie.",
|
62 |
+
"Okay, see you next time."
|
63 |
+
],
|
64 |
+
"goal_topic_list": [
|
65 |
+
"Left Right Love Destiny",
|
66 |
+
"Left Right Love Destiny",
|
67 |
+
"Left Right Love Destiny",
|
68 |
+
"Cecilia Cheung",
|
69 |
+
"Cecilia Cheung",
|
70 |
+
"Cecilia Cheung",
|
71 |
+
"Cecilia Cheung",
|
72 |
+
"Failan",
|
73 |
+
"Failan",
|
74 |
+
"The Stool Pigeon",
|
75 |
+
"The Stool Pigeon",
|
76 |
+
"The Stool Pigeon",
|
77 |
+
"The Stool Pigeon",
|
78 |
+
"The Stool Pigeon",
|
79 |
+
"Say goodbye",
|
80 |
+
"Say goodbye"
|
81 |
+
],
|
82 |
+
"goal_type_list": [
|
83 |
+
"Q&A",
|
84 |
+
"Q&A",
|
85 |
+
"Q&A",
|
86 |
+
"Chat about stars",
|
87 |
+
"Chat about stars",
|
88 |
+
"Chat about stars",
|
89 |
+
"Chat about stars",
|
90 |
+
"Movie recommendation",
|
91 |
+
"Movie recommendation",
|
92 |
+
"Movie recommendation",
|
93 |
+
"Movie recommendation",
|
94 |
+
"Movie recommendation",
|
95 |
+
"Movie recommendation",
|
96 |
+
"Movie recommendation",
|
97 |
+
"Say goodbye",
|
98 |
+
"Say goodbye"
|
99 |
+
],
|
100 |
+
"situation": "Time: 12:00, at school",
|
101 |
+
"knowledge": [
|
102 |
+
[
|
103 |
+
"Cecilia Cheung",
|
104 |
+
"Stars",
|
105 |
+
"Left Right Love Destiny"
|
106 |
+
],
|
107 |
+
[
|
108 |
+
"Cecilia Cheung",
|
109 |
+
"Stars",
|
110 |
+
"Left Right Love Destiny"
|
111 |
+
],
|
112 |
+
[],
|
113 |
+
[
|
114 |
+
"Cecilia Cheung",
|
115 |
+
"Intro",
|
116 |
+
"Chinese dreamgirl"
|
117 |
+
],
|
118 |
+
[],
|
119 |
+
[
|
120 |
+
"Cecilia Cheung",
|
121 |
+
"Achievement",
|
122 |
+
"Outstanding Asian artists of New York China Film Festival"
|
123 |
+
],
|
124 |
+
[],
|
125 |
+
[
|
126 |
+
"Failan",
|
127 |
+
"Comments",
|
128 |
+
"Failan presents a love tragedy isolated in different time and space, but the film does not stop at telling a sad and beautiful love. Through the shell of the sad story, the audience gets the director's deeper thinking and understanding of the human nature of life.Focusing on the spiritual core of saving and being saved, the narrative unfolds, the theme is expounded, and the blindness to reality is unveiled. The audience is touched and awakened. The director fully played the magic of the movie, disrupting the narrative time and space, intersecting the past and the present, and advancing freely following the protagonists\u2019 emotions, making the story structure more tense and the theme and emotions more heartfelt. Although it describes the underworld, the director deliberately avoided the violence rendering and used extremely life-like methods to describe the underworld story routines such as gang struggle and group fight."
|
129 |
+
],
|
130 |
+
[],
|
131 |
+
[
|
132 |
+
"Nicholas Tse",
|
133 |
+
"Stars",
|
134 |
+
"The Stool Pigeon"
|
135 |
+
],
|
136 |
+
[
|
137 |
+
"The Stool Pigeon",
|
138 |
+
"Type",
|
139 |
+
"Action plot Thriller"
|
140 |
+
],
|
141 |
+
[
|
142 |
+
"The Stool Pigeon",
|
143 |
+
"Type",
|
144 |
+
"Action plot Thriller"
|
145 |
+
],
|
146 |
+
[],
|
147 |
+
[],
|
148 |
+
[],
|
149 |
+
[]
|
150 |
+
]
|
151 |
+
},
|
152 |
+
{
|
153 |
+
"goal": "[1]Ask about weather-->[2] Food recommendation(Marinated Fish)-->[3] POI recommendation(Mr.Fish Roasted)-->[4]Say goodbye",
|
154 |
+
"user_profile": {
|
155 |
+
"Age Range": "Under 18 years old",
|
156 |
+
"Name": "Mingzheng Li",
|
157 |
+
"Residence": "Hengshui",
|
158 |
+
"Accepted food": "Marinated Fish",
|
159 |
+
"Accepted Music": [
|
160 |
+
"You Will Always Be My Love",
|
161 |
+
"After Leaving",
|
162 |
+
"Lingering Memory of Past Love",
|
163 |
+
"Still Think You're the Best",
|
164 |
+
"I Waited Until the Flower Withered",
|
165 |
+
"The Crescent",
|
166 |
+
"Can't Fight The Feeling"
|
167 |
+
],
|
168 |
+
"Rejected music": [
|
169 |
+
"Coffee",
|
170 |
+
"be torn with grief"
|
171 |
+
],
|
172 |
+
"Gender": "Male",
|
173 |
+
"Favorite news": [
|
174 |
+
"Jacky Cheung's news"
|
175 |
+
],
|
176 |
+
"Accepted celebrities": [
|
177 |
+
"Jacky Cheung"
|
178 |
+
],
|
179 |
+
"Reject": [
|
180 |
+
"Movie"
|
181 |
+
],
|
182 |
+
"Accepted POI": "Mr.Fish Roasted",
|
183 |
+
"Accepted music": [
|
184 |
+
"Wolf Legend"
|
185 |
+
],
|
186 |
+
"Occupation": "Student"
|
187 |
+
},
|
188 |
+
"conversation": [
|
189 |
+
"[1] Baby, can you tell me the weather today?",
|
190 |
+
"OK, today in Hengshui it is sunny, with southwest winds. The high will be 4 \u2103 and low - 7 \u2103. Be sure to keep warm.",
|
191 |
+
"Wow, you're great. You know everything. Great!",
|
192 |
+
"[2] There's nothing I don't know. I also know that today's weather is suitable to eat Marinated Fish.",
|
193 |
+
"Okay, I like it.",
|
194 |
+
"I know a restaurant where the Marinated Fish is made of grouper.",
|
195 |
+
"Woah, there's grouper! I really like it! It's a tonic! I really want to have it!",
|
196 |
+
"[3] If you like it so much, I know a restaurant which cooks groupers very well. Mr.Fish Roasted. The Marinated Fish here is very authentic!",
|
197 |
+
"Then tell me about the average meal cost per person, the address and the ratings.",
|
198 |
+
"It costs 0 yuan per person. The address is the intersection of Liushi Road, Huzhuang commercial and residential building, Yingbin North Street, Jizhou District, Jizhou. 5 points, very high.",
|
199 |
+
"Okay. I'll be there tomorrow noon with my partner, taking her to have a taste. Hehe!",
|
200 |
+
"Okay, I'll make a reservation for you. I'll say bon appetite in advance!",
|
201 |
+
"[4] Thanks. Then I'm going to bed first. See you tomorrow. Bye.",
|
202 |
+
"All right. Bye~"
|
203 |
+
],
|
204 |
+
"goal_topic_list": [
|
205 |
+
"Ask about weather",
|
206 |
+
"Ask about weather",
|
207 |
+
"Ask about weather",
|
208 |
+
"Marinated Fish",
|
209 |
+
"Marinated Fish",
|
210 |
+
"Marinated Fish",
|
211 |
+
"Marinated Fish",
|
212 |
+
"Mr.Fish Roasted",
|
213 |
+
"Mr.Fish Roasted",
|
214 |
+
"Mr.Fish Roasted",
|
215 |
+
"Mr.Fish Roasted",
|
216 |
+
"Mr.Fish Roasted",
|
217 |
+
"Say goodbye",
|
218 |
+
"Say goodbye"
|
219 |
+
],
|
220 |
+
"goal_type_list": [
|
221 |
+
"Ask about weather",
|
222 |
+
"Ask about weather",
|
223 |
+
"Ask about weather",
|
224 |
+
"Food recommendation",
|
225 |
+
"Food recommendation",
|
226 |
+
"Food recommendation",
|
227 |
+
"Food recommendation",
|
228 |
+
"POI recommendation",
|
229 |
+
"POI recommendation",
|
230 |
+
"POI recommendation",
|
231 |
+
"POI recommendation",
|
232 |
+
"POI recommendation",
|
233 |
+
"Say goodbye",
|
234 |
+
"Say goodbye"
|
235 |
+
],
|
236 |
+
"situation": "Time: 20 18 - 12 - 12 22:00, at home Wednesday",
|
237 |
+
"knowledge": [
|
238 |
+
[
|
239 |
+
"Hengshui",
|
240 |
+
"2018-12-12",
|
241 |
+
"Sunny with southwest winds. The high will be 4 \u2103, and low - 7 \u2103"
|
242 |
+
],
|
243 |
+
[
|
244 |
+
"Hengshui",
|
245 |
+
"2018-12-12",
|
246 |
+
"Sunny with southwest winds. The high will be 4 \u2103, and low - 7 \u2103"
|
247 |
+
],
|
248 |
+
[],
|
249 |
+
[
|
250 |
+
"Sunny with southwest winds. The high will be 4 \u2103, and low - 7 \u2103",
|
251 |
+
"Perfect for having",
|
252 |
+
"Marinated Fish"
|
253 |
+
],
|
254 |
+
[],
|
255 |
+
[
|
256 |
+
"Marinated Fish",
|
257 |
+
"Ingredients",
|
258 |
+
"grouper\u3001Olive oil\u3001lemon juice\u3001Garlic\u3001pepper powder\u3001salt"
|
259 |
+
],
|
260 |
+
[],
|
261 |
+
[
|
262 |
+
"Mr.Fish Roasted",
|
263 |
+
"Specials",
|
264 |
+
"Marinated Fish"
|
265 |
+
],
|
266 |
+
[
|
267 |
+
"Mr.Fish Roasted",
|
268 |
+
"Rating",
|
269 |
+
"5"
|
270 |
+
],
|
271 |
+
[
|
272 |
+
"Mr.Fish Roasted",
|
273 |
+
"Rating",
|
274 |
+
"5"
|
275 |
+
],
|
276 |
+
[],
|
277 |
+
[],
|
278 |
+
[],
|
279 |
+
[]
|
280 |
+
]
|
281 |
+
},
|
282 |
+
{
|
283 |
+
"goal": "[1] Music on demand(Hand in Hand)-->[2] Music recommendation(Change Me)-->[3] Play music(All the Things You Never Knew)-->[4]Say goodbye",
|
284 |
+
"user_profile": {
|
285 |
+
"Residence": "Yangzhou",
|
286 |
+
"Age Range": "Over 50 years old",
|
287 |
+
"Name": "Li Xu",
|
288 |
+
"Accepted food": "Marinated Fish",
|
289 |
+
"Favorite news": [
|
290 |
+
"Bingbing Fan's news",
|
291 |
+
"Leehom Wang's news"
|
292 |
+
],
|
293 |
+
"Accepted movies": [
|
294 |
+
"Tiles of Deception, Lurid Affections: The Making of 'Lust, Caution'"
|
295 |
+
],
|
296 |
+
"Accepted Music": [
|
297 |
+
"A Simple Song",
|
298 |
+
"Heroes of Earth"
|
299 |
+
],
|
300 |
+
"Rejected music": [
|
301 |
+
"KISS GOODBYE"
|
302 |
+
],
|
303 |
+
"Gender": "Male",
|
304 |
+
"Accepted celebrities": [
|
305 |
+
"Bingbing Fan",
|
306 |
+
"Leehom Wang"
|
307 |
+
],
|
308 |
+
"Accepted movie": "Flash Point",
|
309 |
+
"Reject": [
|
310 |
+
"Poi"
|
311 |
+
],
|
312 |
+
"Rejected movies": [
|
313 |
+
"Lust, Caution"
|
314 |
+
],
|
315 |
+
"Accepted music": [
|
316 |
+
"Hand in Hand"
|
317 |
+
],
|
318 |
+
"Occupation": "Employed"
|
319 |
+
},
|
320 |
+
"conversation": [
|
321 |
+
"[1] Let's listen to Hand in Hand.",
|
322 |
+
"It's playing for you. Please enjoy it!",
|
323 |
+
"The songs of Leehom Wang are still so good.",
|
324 |
+
"[2] Then I recommend that you listen to Change Me, which is also sung by Leehom Wang. It's a song with a rock&roll style. Unlike Leehom Wang's previous works which are exciting and passionate, it starts from the bottom of the heart and finds the emotion in the ordinary with a calm heart.",
|
325 |
+
"I\u2018ve heard it, and I'm not interested in this song.",
|
326 |
+
"Then you can listen to his All the Things You Never Knew, which is very catchy. Both the melody and the lyrics along the movie are very impressive.",
|
327 |
+
"I haven't listened to it before. How is it?",
|
328 |
+
"It's catchy. You can't miss it.",
|
329 |
+
"Sounds good! I wanna listen to it.",
|
330 |
+
"[3] May I play this song for you?",
|
331 |
+
"Sure.",
|
332 |
+
"It's playing for you. Please enjoy it!",
|
333 |
+
"[4] It's a good song. Okay, I need to go now. See you next time.",
|
334 |
+
"All right. Bye!"
|
335 |
+
],
|
336 |
+
"goal_topic_list": [
|
337 |
+
"Hand in Hand",
|
338 |
+
"Hand in Hand",
|
339 |
+
"Hand in Hand",
|
340 |
+
"Change Me",
|
341 |
+
"Change Me",
|
342 |
+
"All the Things You Never Knew",
|
343 |
+
"All the Things You Never Knew",
|
344 |
+
"All the Things You Never Knew",
|
345 |
+
"All the Things You Never Knew",
|
346 |
+
"All the Things You Never Knew",
|
347 |
+
"All the Things You Never Knew",
|
348 |
+
"All the Things You Never Knew",
|
349 |
+
"Say goodbye",
|
350 |
+
"Say goodbye"
|
351 |
+
],
|
352 |
+
"goal_type_list": [
|
353 |
+
"Music on demand",
|
354 |
+
"Music on demand",
|
355 |
+
"Music on demand",
|
356 |
+
"Music recommendation",
|
357 |
+
"Music recommendation",
|
358 |
+
"Music recommendation",
|
359 |
+
"Music recommendation",
|
360 |
+
"Music recommendation",
|
361 |
+
"Music recommendation",
|
362 |
+
"Play music",
|
363 |
+
"Play music",
|
364 |
+
"Play music",
|
365 |
+
"Say goodbye",
|
366 |
+
"Say goodbye"
|
367 |
+
],
|
368 |
+
"situation": "Time: 18:00,on the way home",
|
369 |
+
"knowledge": [
|
370 |
+
[],
|
371 |
+
[],
|
372 |
+
[
|
373 |
+
"Leehom Wang",
|
374 |
+
"Sings",
|
375 |
+
"Hand in Hand"
|
376 |
+
],
|
377 |
+
[
|
378 |
+
"Leehom Wang",
|
379 |
+
"Sings",
|
380 |
+
"Change Me"
|
381 |
+
],
|
382 |
+
[],
|
383 |
+
[
|
384 |
+
"Leehom Wang",
|
385 |
+
"Sings",
|
386 |
+
"All the Things You Never Knew"
|
387 |
+
],
|
388 |
+
[],
|
389 |
+
[],
|
390 |
+
[],
|
391 |
+
[],
|
392 |
+
[],
|
393 |
+
[],
|
394 |
+
[],
|
395 |
+
[]
|
396 |
+
]
|
397 |
+
},
|
398 |
+
{
|
399 |
+
"goal": "[1]Ask about weather-->[2] Food recommendation(Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0)-->[3] POI recommendation(Laoqi Sichuan Restaurant)-->[4]Say goodbye",
|
400 |
+
"user_profile": {
|
401 |
+
"Age Range": "26-35",
|
402 |
+
"Name": "Jiaoyang Jin",
|
403 |
+
"Residence": "Xining",
|
404 |
+
"Accepted food": "Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
405 |
+
"Accepted movies": [
|
406 |
+
"Flash Point",
|
407 |
+
"Sophie's Revenge",
|
408 |
+
"I Am Not Madame Bovary",
|
409 |
+
"Call for Love",
|
410 |
+
"Hand Phone"
|
411 |
+
],
|
412 |
+
"Gender": "Female",
|
413 |
+
"Accepted celebrities": [
|
414 |
+
"Bingbing Fan"
|
415 |
+
],
|
416 |
+
"Accepted movie": [
|
417 |
+
"Battle of Wits"
|
418 |
+
],
|
419 |
+
"Reject": [
|
420 |
+
"music"
|
421 |
+
],
|
422 |
+
"Rejected movies": [
|
423 |
+
"Ever Since We Love"
|
424 |
+
],
|
425 |
+
"Occupation": "Student",
|
426 |
+
"Favorite news": [
|
427 |
+
"Bingbing Fan's news"
|
428 |
+
],
|
429 |
+
"Accepted POI": "Laoqi Sichuan Restaurant"
|
430 |
+
},
|
431 |
+
"conversation": [
|
432 |
+
"[1] Good afternoon. What's the weather like today?",
|
433 |
+
"Today in Xining it is sunny, with northwest winds. The high will be 6 \u2103 and low - 12 \u2103. The temperature is low. Keep warm.",
|
434 |
+
"Okay, I'll be careful. Thank you.",
|
435 |
+
"[2] Hehe. This weather is suitable to eat Saut\u00e9ed Spicy Pork.",
|
436 |
+
"I was thinking about what to eat and then you recommend. You can read my mind.",
|
437 |
+
"Haha. Then don't miss Saut\u00e9ed Spicy Pork.",
|
438 |
+
"I'll have it for lunch.",
|
439 |
+
"[3] I know a place which cooks Saut\u00e9ed Spicy Pork very well, and that is Laoqi Sichuan Restaurant.",
|
440 |
+
"How much does this restaurant cost per person?",
|
441 |
+
"32 yuan.",
|
442 |
+
"It's affordable. What's the address?",
|
443 |
+
"Next to Yinhe Fish, Golden Home, No.914 Qilian Road, Chengbei District. It's easy to find it.",
|
444 |
+
"Okay. I've checked it and it's not very far. What about the ratings?",
|
445 |
+
"4.7 points, very high.",
|
446 |
+
"The score is high. Okay, I'll choose this one. Three of us, at around 1 pm. Would you please make a reservation?",
|
447 |
+
"Okay, I'll do it right now.",
|
448 |
+
"[4] Thank you. I'll go first, bye.",
|
449 |
+
"Okay. Goodbye."
|
450 |
+
],
|
451 |
+
"goal_topic_list": [
|
452 |
+
"Ask about weather",
|
453 |
+
"Ask about weather",
|
454 |
+
"Ask about weather",
|
455 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
456 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
457 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
458 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
459 |
+
"Laoqi Sichuan Restaurant",
|
460 |
+
"Laoqi Sichuan Restaurant",
|
461 |
+
"Laoqi Sichuan Restaurant",
|
462 |
+
"Laoqi Sichuan Restaurant",
|
463 |
+
"Laoqi Sichuan Restaurant",
|
464 |
+
"Laoqi Sichuan Restaurant",
|
465 |
+
"Laoqi Sichuan Restaurant",
|
466 |
+
"Laoqi Sichuan Restaurant",
|
467 |
+
"Laoqi Sichuan Restaurant",
|
468 |
+
"Say goodbye",
|
469 |
+
"Say goodbye"
|
470 |
+
],
|
471 |
+
"goal_type_list": [
|
472 |
+
"Ask about weather",
|
473 |
+
"Ask about weather",
|
474 |
+
"Ask about weather",
|
475 |
+
"Food recommendation",
|
476 |
+
"Food recommendation",
|
477 |
+
"Food recommendation",
|
478 |
+
"Food recommendation",
|
479 |
+
"POI recommendation",
|
480 |
+
"POI recommendation",
|
481 |
+
"POI recommendation",
|
482 |
+
"POI recommendation",
|
483 |
+
"POI recommendation",
|
484 |
+
"POI recommendation",
|
485 |
+
"POI recommendation",
|
486 |
+
"POI recommendation",
|
487 |
+
"POI recommendation",
|
488 |
+
"Say goodbye",
|
489 |
+
"Say goodbye"
|
490 |
+
],
|
491 |
+
"situation": "Time: 20 18 - 11 - 22 12:00, at school Thursday",
|
492 |
+
"knowledge": [
|
493 |
+
[
|
494 |
+
"Xining",
|
495 |
+
"2018-11-22",
|
496 |
+
"Sunny with northwest winds. The high will be 6 \u2103, and low - 12 \u2103"
|
497 |
+
],
|
498 |
+
[
|
499 |
+
"Xining",
|
500 |
+
"2018-11-22",
|
501 |
+
"Sunny with northwest winds. The high will be 6 \u2103, and low - 12 \u2103"
|
502 |
+
],
|
503 |
+
[],
|
504 |
+
[
|
505 |
+
"Sunny with northwest winds. The high will be 6 \u2103, and low - 12 \u2103",
|
506 |
+
"Perfect for having",
|
507 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0"
|
508 |
+
],
|
509 |
+
[],
|
510 |
+
[
|
511 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0",
|
512 |
+
"Type",
|
513 |
+
"Hot Dishes"
|
514 |
+
],
|
515 |
+
[],
|
516 |
+
[
|
517 |
+
"Laoqi Sichuan Restaurant",
|
518 |
+
"Specials",
|
519 |
+
"Saut\u00e9ed\u00a0Spicy\u00a0Pork\u00a0"
|
520 |
+
],
|
521 |
+
[
|
522 |
+
"Laoqi Sichuan Restaurant",
|
523 |
+
"Price per person",
|
524 |
+
"32"
|
525 |
+
],
|
526 |
+
[
|
527 |
+
"Laoqi Sichuan Restaurant",
|
528 |
+
"Price per person",
|
529 |
+
"32"
|
530 |
+
],
|
531 |
+
[
|
532 |
+
"Laoqi Sichuan Restaurant",
|
533 |
+
"Address",
|
534 |
+
"Next to Yinhe Yuzhuang, Jinse Jiayuan, No.914 Qilian Road, Chengbei District"
|
535 |
+
],
|
536 |
+
[
|
537 |
+
"Laoqi Sichuan Restaurant",
|
538 |
+
"Address",
|
539 |
+
"Next to Yinhe Yuzhuang, Jinse Jiayuan, No.914 Qilian Road, Chengbei District"
|
540 |
+
],
|
541 |
+
[
|
542 |
+
"Laoqi Sichuan Restaurant",
|
543 |
+
"Rating",
|
544 |
+
"4.7"
|
545 |
+
],
|
546 |
+
[
|
547 |
+
"Laoqi Sichuan Restaurant",
|
548 |
+
"Rating",
|
549 |
+
"4.7"
|
550 |
+
],
|
551 |
+
[],
|
552 |
+
[],
|
553 |
+
[],
|
554 |
+
[]
|
555 |
+
]
|
556 |
+
},
|
557 |
+
{
|
558 |
+
"goal": "[1]Greetings-->[2]Ask about user's name-->[3]Ask about user's gender-->[4]Ask about user's age-->[5]Ask about user's hobbies-->[6]Say goodbye",
|
559 |
+
"user_profile": {
|
560 |
+
"Residence": "Shijiazhuang",
|
561 |
+
"Gender": "Female",
|
562 |
+
"Age Range": "7-10",
|
563 |
+
"Name": "Xinxi Zhang",
|
564 |
+
"Occupation": "Student"
|
565 |
+
},
|
566 |
+
"conversation": [
|
567 |
+
"[1] Good evening. What are you doing?",
|
568 |
+
"Hello! I'm watching anime.",
|
569 |
+
"How are you doing lately?",
|
570 |
+
"I've stepped backwards in my schoolwork and I've been criticized by my parents today. I'm not happy.",
|
571 |
+
"[2] Then let me talk to you to make you relaxed. What's your name?",
|
572 |
+
"My name is Xinqian Zhang.",
|
573 |
+
"[3] Nice name. Are you a boy or a girl?",
|
574 |
+
"Of course a girl since my name is catchy!",
|
575 |
+
"[4] How old are you this year?",
|
576 |
+
"I'm eight years old.",
|
577 |
+
"[5] What do you like to do?",
|
578 |
+
"Yes, I like small animals, watching animations and listening to children's songs.",
|
579 |
+
"Well your life is colorful.",
|
580 |
+
"[6] I should go to bed early. So bye.",
|
581 |
+
"Okay, see you next time. Bye.",
|
582 |
+
"Bye!"
|
583 |
+
],
|
584 |
+
"goal_topic_list": [
|
585 |
+
"Greetings",
|
586 |
+
"Greetings",
|
587 |
+
"Greetings",
|
588 |
+
"Greetings",
|
589 |
+
"Ask about user's name",
|
590 |
+
"Ask about user's name",
|
591 |
+
"Ask about user's gender",
|
592 |
+
"Ask about user's gender",
|
593 |
+
"Ask about user's age",
|
594 |
+
"Ask about user's age",
|
595 |
+
"Ask about user's hobbies",
|
596 |
+
"Ask about user's hobbies",
|
597 |
+
"Ask about user's hobbies",
|
598 |
+
"Say goodbye",
|
599 |
+
"Say goodbye",
|
600 |
+
"Say goodbye"
|
601 |
+
],
|
602 |
+
"goal_type_list": [
|
603 |
+
"Greetings",
|
604 |
+
"Greetings",
|
605 |
+
"Greetings",
|
606 |
+
"Greetings",
|
607 |
+
"Ask about user's name",
|
608 |
+
"Ask about user's name",
|
609 |
+
"Ask about user's gender",
|
610 |
+
"Ask about user's gender",
|
611 |
+
"Ask about user's age",
|
612 |
+
"Ask about user's age",
|
613 |
+
"Ask about user's hobbies",
|
614 |
+
"Ask about user's hobbies",
|
615 |
+
"Ask about user's hobbies",
|
616 |
+
"Say goodbye",
|
617 |
+
"Say goodbye",
|
618 |
+
"Say goodbye"
|
619 |
+
],
|
620 |
+
"situation": "Time: 20:00, at home Topic: Academic setback",
|
621 |
+
"knowledge": [
|
622 |
+
[],
|
623 |
+
[],
|
624 |
+
[],
|
625 |
+
[],
|
626 |
+
[],
|
627 |
+
[],
|
628 |
+
[],
|
629 |
+
[],
|
630 |
+
[],
|
631 |
+
[],
|
632 |
+
[
|
633 |
+
"Xinxi Zhang",
|
634 |
+
"Prefers",
|
635 |
+
"Animal"
|
636 |
+
],
|
637 |
+
[
|
638 |
+
"Xinxi Zhang",
|
639 |
+
"Prefers",
|
640 |
+
"Animal"
|
641 |
+
],
|
642 |
+
[],
|
643 |
+
[],
|
644 |
+
[],
|
645 |
+
[]
|
646 |
+
]
|
647 |
+
}
|
648 |
+
]
|
conversational-recommendation-dialogues/OpenDialKG/README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# OpenDialKG
|
2 |
+
|
3 |
+
OpenDialKG is a dataset of conversations between two crowdsourcing agents engaging in a dialog about a given topic. Each dialog turn is paired with its corresponding “KG paths” that weave together the KG entities and relations that are mentioned in the dialog. More details can be found in the following paper:
|
4 |
+
|
5 |
+
Seungwhan Moon, Pararth Shah, Anuj Kumar, Rajen Subba. ["OpenDialKG: Explainable Conversational Reasoning with Attention-based Walks over Knowledge Graphs"](https://www.aclweb.org/anthology/P19-1081.pdf), ACL (2019).
|
6 |
+
|
7 |
+
## Data Format
|
8 |
+
|
9 |
+
The dataset release includes two parts: (1) the Dialog-KG Path Parallel Corpus where each dialog turn is paired with KG paths that connect its previous turn (annotated by chat participants themselves), and (2) the base knowledge graph used in both the dialog collection and in the experiments, which is a subset of the [Freebase Easy data](http://freebase-easy.cs.uni-freiburg.de/dump/). The data are made available in the following files:
|
10 |
+
```
|
11 |
+
[Dialog-KG Parallel Corpus]
|
12 |
+
- ./data/opendialkg.csv
|
13 |
+
|
14 |
+
[KG]
|
15 |
+
- ./data/opendialkg_entities.txt
|
16 |
+
- ./data/opendialkg_relations.txt
|
17 |
+
- ./data/opendialkg_triples.txt
|
18 |
+
```
|
19 |
+
|
20 |
+
The Dialog-KG Parallel Corpus (`./data/opendialkg.csv`) is formatted as a csv file, where columns are: `Messages, User Rating, Assistant Rating`. Each row refers to a dialog session, which is a JSON-formatted `<list>` of each action formatted as follows::
|
21 |
+
```
|
22 |
+
{
|
23 |
+
"type": // <str> indicating whether it's a message ("chat") or a KG walk selection action ("action")
|
24 |
+
"sender": // <str> indicating indicating whether it is sent by "user" or "assistant"
|
25 |
+
"message" (Optional): // <str> raw utterance (for "type": "chat"),
|
26 |
+
"metadata" (Optional): {
|
27 |
+
"path": [
|
28 |
+
<float> // path score,
|
29 |
+
<list> // of KG triples (subject, relation, object) that make up the path,
|
30 |
+
<str> // rendering of the path
|
31 |
+
]
|
32 |
+
} // end of KG path JSON (if available)
|
33 |
+
}. ... // end of each action JSON
|
34 |
+
```
|
35 |
+
|
36 |
+
Note that the path annotation refers to the connection of two adjacent turns on the conceptual level. Given `utterance_1`, `utterance_2`, and their annotated entity path `A -> B -> C` that connect `utterance_1` and `utterance_2`, Entity `A` is assumed to be mentioned in `utterance_1`, and `C` to be mentioned in `utterance_2`. Entity `B` doesn't necessarily have to be mentioned since it is an intermediate step in the path. Note also that it is a paraphrased dataset, thus each mention is not enforced to have an exact surface match with its corresponding entity in the knowledge graph. After pre-processing and quality reviews we release the 13,802 dialog sessions (91,209 turns) across two tasks (Chit-chat and Recommendations) and four domains (movie, book, sports, and music).
|
37 |
+
|
38 |
+
All bi-directional KG triples used in the dataset collection and in the experiments (100,813 entities, 1358 relations, 1,190,658 triples) are included in `./data/opendialkg_triples.txt`, formatted as line-separated triples with tab-separated entities and relations:
|
39 |
+
```
|
40 |
+
subject \t relation \t object \n
|
41 |
+
...
|
42 |
+
```
|
43 |
+
|
44 |
+
All entities and relations are also listed in `./data/opendialkg_entities.txt` and `./data/opendialkg_relations.txt`, respectively. The prefix `~` in `opendialkg_relations.txt` refers to reverse relations.
|
45 |
+
|
46 |
+
## Reference
|
47 |
+
|
48 |
+
To cite this work please use:
|
49 |
+
```
|
50 |
+
@InProceedings{Moon2019opendialkg,
|
51 |
+
author = {Seungwhan Moon and Pararth Shah and Anuj Kumar and Rajen Subba},
|
52 |
+
title = {OpenDialKG: Explainable Conversational Reasoning with Attention-based Walks over Knowledge Graphs},
|
53 |
+
booktitle = {Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics},
|
54 |
+
month = {July},
|
55 |
+
year = {2019},
|
56 |
+
}
|
57 |
+
```
|
58 |
+
|
59 |
+
## License
|
60 |
+
OpenDialKG is released under [CC-BY-NC-4.0](https://creativecommons.org/licenses/by-nc/4.0/legalcode), see [LICENSE](LICENSE) for details.
|
conversational-recommendation-dialogues/OpenDialKG/converted_examples.json
ADDED
@@ -0,0 +1,450 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"OpenDialKG--train--1": {
|
3 |
+
"original dialog id": "",
|
4 |
+
"dialog index": 1,
|
5 |
+
"original dialog info": {
|
6 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
7 |
+
"Assistant Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}"
|
8 |
+
},
|
9 |
+
"log": [
|
10 |
+
{
|
11 |
+
"turn id": 1,
|
12 |
+
"user utterance": "Do you like Iron Man",
|
13 |
+
"system response": "Sure do! Robert Downey Jr. is a favorite.",
|
14 |
+
"dialog history": "",
|
15 |
+
"original user side information": {
|
16 |
+
"type": "chat"
|
17 |
+
},
|
18 |
+
"original system side information": {
|
19 |
+
"type": "chat",
|
20 |
+
"metadata": {
|
21 |
+
"metadata": {
|
22 |
+
"path": [
|
23 |
+
0.0,
|
24 |
+
[
|
25 |
+
[
|
26 |
+
"Iron Man",
|
27 |
+
"starred_actors",
|
28 |
+
"Robert Downey Jr."
|
29 |
+
]
|
30 |
+
],
|
31 |
+
"Iron Man is starring Robert Downey Jr."
|
32 |
+
]
|
33 |
+
},
|
34 |
+
"type": "action",
|
35 |
+
"sender": "assistant",
|
36 |
+
"action_id": "kgwalk/choose_path"
|
37 |
+
}
|
38 |
+
}
|
39 |
+
},
|
40 |
+
{
|
41 |
+
"turn id": 2,
|
42 |
+
"user utterance": "Yes i like him too did you know he also was in Zodiac a crime fiction film.",
|
43 |
+
"system response": "I like crime fiction! Didn't know RDJ was in there. Jake Gyllenhaal starred as well.",
|
44 |
+
"dialog history": "<USER> Do you like Iron Man <SYSTEM> Sure do! Robert Downey Jr. is a favorite.",
|
45 |
+
"original user side information": {
|
46 |
+
"type": "chat"
|
47 |
+
},
|
48 |
+
"original system side information": {
|
49 |
+
"type": "chat",
|
50 |
+
"metadata": {
|
51 |
+
"metadata": {
|
52 |
+
"path": [
|
53 |
+
0.0,
|
54 |
+
[
|
55 |
+
[
|
56 |
+
"Zodiac (Crime Fiction Film)",
|
57 |
+
"starred_actors",
|
58 |
+
"Jake Gyllenhaal"
|
59 |
+
]
|
60 |
+
],
|
61 |
+
"Zodiac (Crime Fiction Film) is starring Jake Gyllenhaal"
|
62 |
+
]
|
63 |
+
},
|
64 |
+
"type": "action",
|
65 |
+
"sender": "assistant",
|
66 |
+
"action_id": "kgwalk/choose_path"
|
67 |
+
}
|
68 |
+
}
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"turn id": 3,
|
72 |
+
"user utterance": "So he did he also starred in End of Watch have you ever seen that movie?",
|
73 |
+
"system response": "Yes I have! I like films directed by David Ayer. How about you?",
|
74 |
+
"dialog history": "<USER> Do you like Iron Man <SYSTEM> Sure do! Robert Downey Jr. is a favorite. <USER> Yes i like him too did you know he also was in Zodiac a crime fiction film. <SYSTEM> I like crime fiction! Didn't know RDJ was in there. Jake Gyllenhaal starred as well.",
|
75 |
+
"original user side information": {
|
76 |
+
"type": "chat"
|
77 |
+
},
|
78 |
+
"original system side information": {
|
79 |
+
"type": "chat",
|
80 |
+
"metadata": {
|
81 |
+
"metadata": {
|
82 |
+
"path": [
|
83 |
+
3.0,
|
84 |
+
[
|
85 |
+
[
|
86 |
+
"End of Watch",
|
87 |
+
"has_genre",
|
88 |
+
"Thriller"
|
89 |
+
]
|
90 |
+
],
|
91 |
+
"End of Watch has genre Thriller"
|
92 |
+
]
|
93 |
+
},
|
94 |
+
"type": "action",
|
95 |
+
"sender": "assistant",
|
96 |
+
"action_id": "kgwalk/choose_path"
|
97 |
+
}
|
98 |
+
}
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"turn id": 4,
|
102 |
+
"user utterance": "I have not what genre is End of Watch",
|
103 |
+
"system response": "It's a thriller and crime fiction as well.",
|
104 |
+
"dialog history": "<USER> Do you like Iron Man <SYSTEM> Sure do! Robert Downey Jr. is a favorite. <USER> Yes i like him too did you know he also was in Zodiac a crime fiction film. <SYSTEM> I like crime fiction! Didn't know RDJ was in there. Jake Gyllenhaal starred as well. <USER> So he did he also starred in End of Watch have you ever seen that movie? <SYSTEM> Yes I have! I like films directed by David Ayer. How about you?",
|
105 |
+
"original user side information": {
|
106 |
+
"type": "chat"
|
107 |
+
},
|
108 |
+
"original system side information": {
|
109 |
+
"type": "chat"
|
110 |
+
}
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"turn id": 5,
|
114 |
+
"user utterance": "I will make sure to check it out I like thrillers thank you",
|
115 |
+
"system response": "Welcome!",
|
116 |
+
"dialog history": "<USER> Do you like Iron Man <SYSTEM> Sure do! Robert Downey Jr. is a favorite. <USER> Yes i like him too did you know he also was in Zodiac a crime fiction film. <SYSTEM> I like crime fiction! Didn't know RDJ was in there. Jake Gyllenhaal starred as well. <USER> So he did he also starred in End of Watch have you ever seen that movie? <SYSTEM> Yes I have! I like films directed by David Ayer. How about you? <USER> I have not what genre is End of Watch <SYSTEM> It's a thriller and crime fiction as well.",
|
117 |
+
"original user side information": {
|
118 |
+
"type": "chat"
|
119 |
+
},
|
120 |
+
"original system side information": {
|
121 |
+
"type": "chat"
|
122 |
+
}
|
123 |
+
}
|
124 |
+
]
|
125 |
+
},
|
126 |
+
"OpenDialKG--train--2": {
|
127 |
+
"original dialog id": "",
|
128 |
+
"dialog index": 2,
|
129 |
+
"original dialog info": {
|
130 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
131 |
+
"Assistant Rating": "{\"dialog_rating\": \"3\", \"other_agent_rating\": \"3\"}"
|
132 |
+
},
|
133 |
+
"log": [
|
134 |
+
{
|
135 |
+
"turn id": 1,
|
136 |
+
"user utterance": "Could you recommend any books like The Secret Life of Bees?",
|
137 |
+
"system response": "Yes, its a great teen book, have you heard about A walk to remember ? It is also a great teen drama",
|
138 |
+
"dialog history": "",
|
139 |
+
"original user side information": {
|
140 |
+
"type": "chat"
|
141 |
+
},
|
142 |
+
"original system side information": {
|
143 |
+
"type": "chat",
|
144 |
+
"metadata": {
|
145 |
+
"metadata": {
|
146 |
+
"path": [
|
147 |
+
-1.5,
|
148 |
+
[
|
149 |
+
[
|
150 |
+
"The Secret Life of Bees",
|
151 |
+
"has_genre",
|
152 |
+
"Teen drama"
|
153 |
+
],
|
154 |
+
[
|
155 |
+
"Teen drama",
|
156 |
+
"~has_genre",
|
157 |
+
"A Walk to Remember"
|
158 |
+
]
|
159 |
+
],
|
160 |
+
"The Secret Life of Bees has genre Teen drama. Teen drama has examples: A Walk to Remember"
|
161 |
+
]
|
162 |
+
},
|
163 |
+
"type": "action",
|
164 |
+
"sender": "assistant",
|
165 |
+
"action_id": "kgwalk/choose_path"
|
166 |
+
}
|
167 |
+
}
|
168 |
+
},
|
169 |
+
{
|
170 |
+
"turn id": 2,
|
171 |
+
"user utterance": "I think I have.. is that one with Hunt Lowry?",
|
172 |
+
"system response": "yes and he also produced White Oleander and it was released in 1999",
|
173 |
+
"dialog history": "<USER> Could you recommend any books like The Secret Life of Bees? <SYSTEM> Yes, its a great teen book, have you heard about A walk to remember ? It is also a great teen drama",
|
174 |
+
"original user side information": {
|
175 |
+
"type": "chat"
|
176 |
+
},
|
177 |
+
"original system side information": {
|
178 |
+
"type": "chat",
|
179 |
+
"metadata": {
|
180 |
+
"metadata": {
|
181 |
+
"path": [
|
182 |
+
-2,
|
183 |
+
[
|
184 |
+
[
|
185 |
+
"Hunt Lowry",
|
186 |
+
"~Produced by",
|
187 |
+
"A Walk to Remember"
|
188 |
+
],
|
189 |
+
[
|
190 |
+
"A Walk to Remember",
|
191 |
+
"is-a",
|
192 |
+
"Film"
|
193 |
+
]
|
194 |
+
],
|
195 |
+
"Hunt Lowry produced A Walk to Remember. A Walk to Remember is a/an Film"
|
196 |
+
]
|
197 |
+
},
|
198 |
+
"type": "action",
|
199 |
+
"sender": "assistant",
|
200 |
+
"action_id": "kgwalk/choose_path"
|
201 |
+
}
|
202 |
+
}
|
203 |
+
},
|
204 |
+
{
|
205 |
+
"turn id": 3,
|
206 |
+
"user utterance": "Oh, awesome. What genre is that film?",
|
207 |
+
"system response": "It is film adaption with a melodrama. Do you like Drama movies?",
|
208 |
+
"dialog history": "<USER> Could you recommend any books like The Secret Life of Bees? <SYSTEM> Yes, its a great teen book, have you heard about A walk to remember ? It is also a great teen drama <USER> I think I have.. is that one with Hunt Lowry? <SYSTEM> yes and he also produced White Oleander and it was released in 1999",
|
209 |
+
"original user side information": {
|
210 |
+
"type": "chat"
|
211 |
+
},
|
212 |
+
"original system side information": {
|
213 |
+
"type": "chat"
|
214 |
+
}
|
215 |
+
},
|
216 |
+
{
|
217 |
+
"turn id": 4,
|
218 |
+
"user utterance": "Great! I love drama movies. I'll check this one out then. Thanks so much!",
|
219 |
+
"system response": "Cool, hope you enjoy. any m ore recommendations you want ?",
|
220 |
+
"dialog history": "<USER> Could you recommend any books like The Secret Life of Bees? <SYSTEM> Yes, its a great teen book, have you heard about A walk to remember ? It is also a great teen drama <USER> I think I have.. is that one with Hunt Lowry? <SYSTEM> yes and he also produced White Oleander and it was released in 1999 <USER> Oh, awesome. What genre is that film? <SYSTEM> It is film adaption with a melodrama. Do you like Drama movies?",
|
221 |
+
"original user side information": {
|
222 |
+
"type": "chat"
|
223 |
+
},
|
224 |
+
"original system side information": {
|
225 |
+
"type": "chat"
|
226 |
+
}
|
227 |
+
},
|
228 |
+
{
|
229 |
+
"turn id": 5,
|
230 |
+
"user utterance": "Whoops, I meant books. I love Drama books! And no, I think that's good. Thanks for your help.",
|
231 |
+
"system response": "You are welcome",
|
232 |
+
"dialog history": "<USER> Could you recommend any books like The Secret Life of Bees? <SYSTEM> Yes, its a great teen book, have you heard about A walk to remember ? It is also a great teen drama <USER> I think I have.. is that one with Hunt Lowry? <SYSTEM> yes and he also produced White Oleander and it was released in 1999 <USER> Oh, awesome. What genre is that film? <SYSTEM> It is film adaption with a melodrama. Do you like Drama movies? <USER> Great! I love drama movies. I'll check this one out then. Thanks so much! <SYSTEM> Cool, hope you enjoy. any m ore recommendations you want ?",
|
233 |
+
"original user side information": {
|
234 |
+
"type": "chat"
|
235 |
+
},
|
236 |
+
"original system side information": {
|
237 |
+
"type": "chat",
|
238 |
+
"metadata": {
|
239 |
+
"metadata": {
|
240 |
+
"text": "only you can end this dialouge"
|
241 |
+
},
|
242 |
+
"type": "action",
|
243 |
+
"sender": "assistant",
|
244 |
+
"action_id": "meta_thread/send_meta_message"
|
245 |
+
}
|
246 |
+
}
|
247 |
+
}
|
248 |
+
]
|
249 |
+
},
|
250 |
+
"OpenDialKG--train--3": {
|
251 |
+
"original dialog id": "",
|
252 |
+
"dialog index": 3,
|
253 |
+
"original dialog info": {
|
254 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
255 |
+
"Assistant Rating": "{\"dialog_rating\": \"4\", \"other_agent_rating\": \"5\"}"
|
256 |
+
},
|
257 |
+
"log": [
|
258 |
+
{
|
259 |
+
"turn id": 1,
|
260 |
+
"user utterance": "Could you recommend any books by Ken Kesey?",
|
261 |
+
"system response": "Yes, he wrote One Flew Over the Cuckoo's Nest",
|
262 |
+
"dialog history": "",
|
263 |
+
"original user side information": {
|
264 |
+
"type": "chat"
|
265 |
+
},
|
266 |
+
"original system side information": {
|
267 |
+
"type": "chat"
|
268 |
+
}
|
269 |
+
},
|
270 |
+
{
|
271 |
+
"turn id": 2,
|
272 |
+
"user utterance": "Isn't that a movie too?",
|
273 |
+
"system response": "Yes it sure was it was released in 1975",
|
274 |
+
"dialog history": "<USER> Could you recommend any books by Ken Kesey? <SYSTEM> Yes, he wrote One Flew Over the Cuckoo's Nest",
|
275 |
+
"original user side information": {
|
276 |
+
"type": "chat"
|
277 |
+
},
|
278 |
+
"original system side information": {
|
279 |
+
"type": "chat"
|
280 |
+
}
|
281 |
+
},
|
282 |
+
{
|
283 |
+
"turn id": 3,
|
284 |
+
"user utterance": "Who was in that?",
|
285 |
+
"system response": "In the movie there was Jack Nicholson ,Louise Fletcher",
|
286 |
+
"dialog history": "<USER> Could you recommend any books by Ken Kesey? <SYSTEM> Yes, he wrote One Flew Over the Cuckoo's Nest <USER> Isn't that a movie too? <SYSTEM> Yes it sure was it was released in 1975",
|
287 |
+
"original user side information": {
|
288 |
+
"type": "chat"
|
289 |
+
},
|
290 |
+
"original system side information": {
|
291 |
+
"type": "chat"
|
292 |
+
}
|
293 |
+
}
|
294 |
+
]
|
295 |
+
},
|
296 |
+
"OpenDialKG--train--4": {
|
297 |
+
"original dialog id": "",
|
298 |
+
"dialog index": 4,
|
299 |
+
"original dialog info": {
|
300 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
301 |
+
"Assistant Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}"
|
302 |
+
},
|
303 |
+
"log": [
|
304 |
+
{
|
305 |
+
"turn id": 1,
|
306 |
+
"user utterance": "Do you like Michael Jackson?",
|
307 |
+
"system response": "I do he was very talented and an all around performer. He wrote Dancing on the Dream which is one of my favorites.",
|
308 |
+
"dialog history": "",
|
309 |
+
"original user side information": {
|
310 |
+
"type": "chat"
|
311 |
+
},
|
312 |
+
"original system side information": {
|
313 |
+
"type": "chat",
|
314 |
+
"metadata": {
|
315 |
+
"metadata": {
|
316 |
+
"path": [
|
317 |
+
-0.5,
|
318 |
+
[
|
319 |
+
[
|
320 |
+
"Michael Jackson",
|
321 |
+
"~written_by",
|
322 |
+
"Dancing the Dream"
|
323 |
+
]
|
324 |
+
],
|
325 |
+
"Michael Jackson wrote Dancing the Dream"
|
326 |
+
]
|
327 |
+
},
|
328 |
+
"type": "action",
|
329 |
+
"sender": "assistant",
|
330 |
+
"action_id": "kgwalk/choose_path"
|
331 |
+
}
|
332 |
+
}
|
333 |
+
},
|
334 |
+
{
|
335 |
+
"turn id": 2,
|
336 |
+
"user utterance": "Yes, he was very talented indeed. He also won Grammy of the Year, possibly more than once",
|
337 |
+
"system response": "Yes, Healing the World is one of my favorite songs and the music video was very touching.",
|
338 |
+
"dialog history": "<USER> Do you like Michael Jackson? <SYSTEM> I do he was very talented and an all around performer. He wrote Dancing on the Dream which is one of my favorites.",
|
339 |
+
"original user side information": {
|
340 |
+
"type": "chat"
|
341 |
+
},
|
342 |
+
"original system side information": {
|
343 |
+
"type": "chat",
|
344 |
+
"metadata": {
|
345 |
+
"metadata": {
|
346 |
+
"path": [
|
347 |
+
-1,
|
348 |
+
[
|
349 |
+
[
|
350 |
+
"Michael Jackson",
|
351 |
+
"~Lyricist",
|
352 |
+
"Heal the World"
|
353 |
+
]
|
354 |
+
],
|
355 |
+
"Michael Jackson : `~Lyricist`: Heal the World"
|
356 |
+
]
|
357 |
+
},
|
358 |
+
"type": "action",
|
359 |
+
"sender": "assistant",
|
360 |
+
"action_id": "kgwalk/choose_path"
|
361 |
+
}
|
362 |
+
}
|
363 |
+
},
|
364 |
+
{
|
365 |
+
"turn id": 3,
|
366 |
+
"user utterance": "Have you ever seen footage of him from a young age. He was such a gifted child",
|
367 |
+
"system response": "Yes, when he was in Jackson 5. He was on Motown Records",
|
368 |
+
"dialog history": "<USER> Do you like Michael Jackson? <SYSTEM> I do he was very talented and an all around performer. He wrote Dancing on the Dream which is one of my favorites. <USER> Yes, he was very talented indeed. He also won Grammy of the Year, possibly more than once <SYSTEM> Yes, Healing the World is one of my favorite songs and the music video was very touching.",
|
369 |
+
"original user side information": {
|
370 |
+
"type": "chat"
|
371 |
+
},
|
372 |
+
"original system side information": {
|
373 |
+
"type": "chat"
|
374 |
+
}
|
375 |
+
}
|
376 |
+
]
|
377 |
+
},
|
378 |
+
"OpenDialKG--train--5": {
|
379 |
+
"original dialog id": "",
|
380 |
+
"dialog index": 5,
|
381 |
+
"original dialog info": {
|
382 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
383 |
+
"Assistant Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}"
|
384 |
+
},
|
385 |
+
"log": [
|
386 |
+
{
|
387 |
+
"turn id": 1,
|
388 |
+
"user utterance": "Could you recommend books similar to Dead to the World?",
|
389 |
+
"system response": "Do you like this book because of it's author Charlaine Harris?",
|
390 |
+
"dialog history": "",
|
391 |
+
"original user side information": {
|
392 |
+
"type": "chat",
|
393 |
+
"metadata": {
|
394 |
+
"metadata": {
|
395 |
+
"text": "sure"
|
396 |
+
},
|
397 |
+
"type": "action",
|
398 |
+
"sender": "user",
|
399 |
+
"action_id": "meta_thread/send_meta_message"
|
400 |
+
}
|
401 |
+
},
|
402 |
+
"original system side information": {
|
403 |
+
"type": "chat"
|
404 |
+
}
|
405 |
+
},
|
406 |
+
{
|
407 |
+
"turn id": 2,
|
408 |
+
"user utterance": "Yes. What other books did she write?",
|
409 |
+
"system response": "A popular book of her's is the Southern Vampire Mysteries",
|
410 |
+
"dialog history": "<USER> Could you recommend books similar to Dead to the World? <SYSTEM> Do you like this book because of it's author Charlaine Harris?",
|
411 |
+
"original user side information": {
|
412 |
+
"type": "chat"
|
413 |
+
},
|
414 |
+
"original system side information": {
|
415 |
+
"type": "chat",
|
416 |
+
"metadata": {
|
417 |
+
"metadata": {
|
418 |
+
"path": [
|
419 |
+
0.0,
|
420 |
+
[
|
421 |
+
[
|
422 |
+
"The Southern Vampire Mysteries",
|
423 |
+
"written_by",
|
424 |
+
"Charlaine Harris"
|
425 |
+
]
|
426 |
+
],
|
427 |
+
"The Southern Vampire Mysteries is written by Charlaine Harris"
|
428 |
+
]
|
429 |
+
},
|
430 |
+
"type": "action",
|
431 |
+
"sender": "assistant",
|
432 |
+
"action_id": "kgwalk/choose_path"
|
433 |
+
}
|
434 |
+
}
|
435 |
+
},
|
436 |
+
{
|
437 |
+
"turn id": 3,
|
438 |
+
"user utterance": "Thanks for that. I will check out Southern Vampire Mysteries!",
|
439 |
+
"system response": "Sure thing, hope you enjoy",
|
440 |
+
"dialog history": "<USER> Could you recommend books similar to Dead to the World? <SYSTEM> Do you like this book because of it's author Charlaine Harris? <USER> Yes. What other books did she write? <SYSTEM> A popular book of her's is the Southern Vampire Mysteries",
|
441 |
+
"original user side information": {
|
442 |
+
"type": "chat"
|
443 |
+
},
|
444 |
+
"original system side information": {
|
445 |
+
"type": "chat"
|
446 |
+
}
|
447 |
+
}
|
448 |
+
]
|
449 |
+
}
|
450 |
+
}
|
conversational-recommendation-dialogues/OpenDialKG/original_examples.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"Messages": "[{\"message\": \"Do you like Iron Man\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"path\": [0.0, [[\"Iron Man\", \"starred_actors\", \"Robert Downey Jr.\"]], \"Iron Man is starring Robert Downey Jr.\"]}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"Sure do! Robert Downey Jr. is a favorite.\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"metadata\": {\"path\": [-0.5, [[\"Robert Downey Jr.\", \"~starred_actors\", \"Zodiac (Crime Fiction Film)\"]], \"Robert Downey Jr. starred in Zodiac (Crime Fiction Film)\"]}, \"type\": \"action\", \"sender\": \"user\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"Yes i like him too did you know he also was in Zodiac a crime fiction film.\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"path\": [0.0, [[\"Zodiac (Crime Fiction Film)\", \"starred_actors\", \"Jake Gyllenhaal\"]], \"Zodiac (Crime Fiction Film) is starring Jake Gyllenhaal\"]}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"I like crime fiction! Didn't know RDJ was in there. Jake Gyllenhaal starred as well.\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"metadata\": {\"path\": [0.0, [[\"Jake Gyllenhaal\", \"~starred_actors\", \"End of Watch\"], [\"End of Watch\", \"written_by\", \"David Ayer\"]], \"Jake Gyllenhaal starred in End of Watch. End of Watch is written by David Ayer\"]}, \"type\": \"action\", \"sender\": \"user\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"So he did he also starred in End of Watch have you ever seen that movie?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"path\": [3.0, [[\"End of Watch\", \"has_genre\", \"Thriller\"]], \"End of Watch has genre Thriller\"]}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"Yes I have! I like films directed by David Ayer. How about you?\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"I have not what genre is End of Watch\", \"type\": \"chat\", \"sender\": \"user\"}, {\"message\": \"It's a thriller and crime fiction as well.\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"I will make sure to check it out I like thrillers thank you\", \"type\": \"chat\", \"sender\": \"user\"}, {\"message\": \"Welcome!\", \"type\": \"chat\", \"sender\": \"assistant\"}]",
|
4 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
5 |
+
"Assistant Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}"
|
6 |
+
},
|
7 |
+
{
|
8 |
+
"Messages": "[{\"message\": \"Could you recommend any books like The Secret Life of Bees?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"path\": [-1.5, [[\"The Secret Life of Bees\", \"has_genre\", \"Teen drama\"], [\"Teen drama\", \"~has_genre\", \"A Walk to Remember\"]], \"The Secret Life of Bees has genre Teen drama. Teen drama has examples: A Walk to Remember\"]}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"Yes, its a great teen book, have you heard about A walk to remember ? It is also a great teen drama\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"metadata\": {\"path\": [1.0, [[\"A Walk to Remember\", \"Produced by\", \"Hunt Lowry\"]], \"A Walk to Remember is produced by Hunt Lowry\"]}, \"type\": \"action\", \"sender\": \"user\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"I think I have.. is that one with Hunt Lowry?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"path\": [-2, [[\"Hunt Lowry\", \"~Produced by\", \"A Walk to Remember\"], [\"A Walk to Remember\", \"is-a\", \"Film\"]], \"Hunt Lowry produced A Walk to Remember. A Walk to Remember is a/an Film\"]}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"yes and he also produced White Oleander and it was released in 1999\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"Oh, awesome. What genre is that film?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"message\": \"It is film adaption with a melodrama. Do you like Drama movies?\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"Great! I love drama movies. I'll check this one out then. Thanks so much!\", \"type\": \"chat\", \"sender\": \"user\"}, {\"message\": \"Cool, hope you enjoy. any m ore recommendations you want ?\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"Whoops, I meant books. I love Drama books! And no, I think that's good. Thanks for your help.\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"text\": \"only you can end this dialouge\"}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"meta_thread/send_meta_message\"}, {\"message\": \"You are welcome\", \"type\": \"chat\", \"sender\": \"assistant\"}]",
|
9 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
10 |
+
"Assistant Rating": "{\"dialog_rating\": \"3\", \"other_agent_rating\": \"3\"}"
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"Messages": "[{\"message\": \"Could you recommend any books by Ken Kesey?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"message\": \"Yes, he wrote One Flew Over the Cuckoo's Nest\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"Isn't that a movie too?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"message\": \"Yes it sure was it was released in 1975\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"Who was in that?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"message\": \"In the movie there was Jack Nicholson ,Louise Fletcher \", \"type\": \"chat\", \"sender\": \"assistant\"}]",
|
14 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
15 |
+
"Assistant Rating": "{\"dialog_rating\": \"4\", \"other_agent_rating\": \"5\"}"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"Messages": "[{\"message\": \"Do you like Michael Jackson?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"path\": [-0.5, [[\"Michael Jackson\", \"~written_by\", \"Dancing the Dream\"]], \"Michael Jackson wrote Dancing the Dream\"]}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"I do he was very talented and an all around performer. He wrote Dancing on the Dream which is one of my favorites. \", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"metadata\": {\"path\": [-2, [[\"Dancing the Dream\", \"written_by\", \"Michael Jackson\"], [\"Michael Jackson\", \"Award Won\", \"Grammy Award for Album of the Year\"]], \"Dancing the Dream is written by Michael Jackson. Michael Jackson : `Award Won`: Grammy Award for Album of the Year\"]}, \"type\": \"action\", \"sender\": \"user\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"Yes, he was very talented indeed. He also won Grammy of the Year, possibly more than once\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"path\": [-1, [[\"Michael Jackson\", \"~Lyricist\", \"Heal the World\"]], \"Michael Jackson : `~Lyricist`: Heal the World\"]}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"Yes, Healing the World is one of my favorite songs and the music video was very touching.\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"Have you ever seen footage of him from a young age. He was such a gifted child\", \"type\": \"chat\", \"sender\": \"user\"}, {\"message\": \"Yes, when he was in Jackson 5. He was on Motown Records \", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"Yes, I love those classic hits! Like I want you back.\", \"type\": \"chat\", \"sender\": \"user\"}]",
|
19 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
20 |
+
"Assistant Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"Messages": "[{\"message\": \"Could you recommend books similar to Dead to the World?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"path\": [0.0, [[\"Dead to the World\", \"written_by\", \"Charlaine Harris\"]], \"Dead to the World is written by Charlaine Harris\"]}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"kgwalk/choose_path\"}, {\"metadata\": {\"text\": \"I need a little more time please\"}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"meta_thread/send_meta_message\"}, {\"metadata\": {\"text\": \"sure\"}, \"type\": \"action\", \"sender\": \"user\", \"action_id\": \"meta_thread/send_meta_message\"}, {\"message\": \"Do you like this book because of it's author Charlaine Harris?\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"metadata\": {\"path\": [-0.5, [[\"Charlaine Harris\", \"~written_by\", \"The Southern Vampire Mysteries\"]], \"Charlaine Harris wrote The Southern Vampire Mysteries\"]}, \"type\": \"action\", \"sender\": \"user\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"Yes. What other books did she write?\", \"type\": \"chat\", \"sender\": \"user\"}, {\"metadata\": {\"path\": [0.0, [[\"The Southern Vampire Mysteries\", \"written_by\", \"Charlaine Harris\"]], \"The Southern Vampire Mysteries is written by Charlaine Harris\"]}, \"type\": \"action\", \"sender\": \"assistant\", \"action_id\": \"kgwalk/choose_path\"}, {\"message\": \"A popular book of her's is the Southern Vampire Mysteries\", \"type\": \"chat\", \"sender\": \"assistant\"}, {\"message\": \"Thanks for that. I will check out Southern Vampire Mysteries!\", \"type\": \"chat\", \"sender\": \"user\"}, {\"message\": \"Sure thing, hope you enjoy\", \"type\": \"chat\", \"sender\": \"assistant\"}]",
|
24 |
+
"User Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}",
|
25 |
+
"Assistant Rating": "{\"dialog_rating\": \"5\", \"other_agent_rating\": \"5\"}"
|
26 |
+
}
|
27 |
+
]
|
conversational-recommendation-dialogues/README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
### Conversational Recommendation Dialogues
|
2 |
+
|
3 |
+
Conversational Recommendation Dialogues follow same format as task oriented dialogues. Below is the copy of ReadME from task oriented dialogues:
|
4 |
+
|
5 |
+
Below is a general format for task oriented dialogues:
|
6 |
+
|
7 |
+
```js
|
8 |
+
{
|
9 |
+
"dataset_name--train/val/test--dialog_id": {
|
10 |
+
"original dialog id": str,
|
11 |
+
"dialog index": int,
|
12 |
+
"original dialog info": dict,
|
13 |
+
"log": [
|
14 |
+
{
|
15 |
+
"turn id": int,
|
16 |
+
"user utterance": str,
|
17 |
+
"system response": str,
|
18 |
+
"dialog history": str,
|
19 |
+
"original user side information": dict,
|
20 |
+
"original system side information": dict,
|
21 |
+
"dst": str,
|
22 |
+
"dst accumulated": str
|
23 |
+
},
|
24 |
+
...
|
25 |
+
],
|
26 |
+
"external knowledge non-flat": {
|
27 |
+
"metadata": dict,
|
28 |
+
"slots and values": dict
|
29 |
+
"intents": dict,
|
30 |
+
...
|
31 |
+
},
|
32 |
+
"external knowledge": str,
|
33 |
+
"intent knowledge": str,
|
34 |
+
"prompt": [
|
35 |
+
"This is a bot helping users to get navigation. Given the dialog context and external database, please generate a relevant system response for the user.",
|
36 |
+
...
|
37 |
+
]
|
38 |
+
},
|
39 |
+
...
|
40 |
+
}
|
41 |
+
```
|
42 |
+
|
43 |
+
In general, datasets have the "external knowledge non-flat" and "external knowledge" in the whole dialogue level. There are also some datasets where every turn in "log" has own "external knowledge non-flat" and "external knowledge".
|
44 |
+
|
45 |
+
Here are datasets with turn-level "external knowledge":
|
46 |
+
```
|
47 |
+
'SimJointGEN', 'BiTOD', 'OpenDialKG', 'SimJointMovie', 'MS-DC', 'STAR', 'SimJointRestaurant', 'Taskmaster1', 'Taskmaster2', 'Taskmaster3'
|
48 |
+
```
|
49 |
+
And below is a general format for such datasets:
|
50 |
+
```js
|
51 |
+
{
|
52 |
+
"dataset_name--train/val/test--dialog_id": {
|
53 |
+
"original dialog id": str,
|
54 |
+
"dialog index": int,
|
55 |
+
"original dialog info": dict,
|
56 |
+
"log": [
|
57 |
+
{
|
58 |
+
"turn id": int,
|
59 |
+
"user utterance": str,
|
60 |
+
"system response": str,
|
61 |
+
"dialog history": str,
|
62 |
+
"original user side information": dict,
|
63 |
+
"original system side information": dict,
|
64 |
+
"dst": str,
|
65 |
+
"dst accumulated": str
|
66 |
+
"external knowledge non-flat": list,
|
67 |
+
"external knowledge": str,
|
68 |
+
},
|
69 |
+
...
|
70 |
+
]
|
71 |
+
"prompt": [
|
72 |
+
"This is a bot helping users to get navigation. Given the dialog context and external database, please generate a relevant system response for the user.",
|
73 |
+
...
|
74 |
+
]
|
75 |
+
},
|
76 |
+
...
|
77 |
+
}
|
78 |
+
```
|
79 |
+
Please refer to each dataset folder for more details.
|
conversational-recommendation-dialogues/Redial/converted_examples.json
ADDED
@@ -0,0 +1,954 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"Redial--train--1": {
|
3 |
+
"original dialog id": "391",
|
4 |
+
"dialog index": 1,
|
5 |
+
"original dialog info": {
|
6 |
+
"movieMentions": {
|
7 |
+
"203371": "Final Fantasy: The Spirits Within (2001)",
|
8 |
+
"84779": "The Triplets of Belleville (2003)",
|
9 |
+
"122159": "Mary and Max (2009)",
|
10 |
+
"151313": "A Scanner Darkly (2006)",
|
11 |
+
"191602": "Waking Life (2001)",
|
12 |
+
"165710": "The Boss Baby (2017)"
|
13 |
+
},
|
14 |
+
"respondentQuestions": {
|
15 |
+
"203371": {
|
16 |
+
"suggested": 1,
|
17 |
+
"seen": 0,
|
18 |
+
"liked": 1
|
19 |
+
},
|
20 |
+
"84779": {
|
21 |
+
"suggested": 0,
|
22 |
+
"seen": 1,
|
23 |
+
"liked": 1
|
24 |
+
},
|
25 |
+
"122159": {
|
26 |
+
"suggested": 0,
|
27 |
+
"seen": 1,
|
28 |
+
"liked": 1
|
29 |
+
},
|
30 |
+
"151313": {
|
31 |
+
"suggested": 0,
|
32 |
+
"seen": 1,
|
33 |
+
"liked": 1
|
34 |
+
},
|
35 |
+
"191602": {
|
36 |
+
"suggested": 0,
|
37 |
+
"seen": 1,
|
38 |
+
"liked": 1
|
39 |
+
},
|
40 |
+
"165710": {
|
41 |
+
"suggested": 1,
|
42 |
+
"seen": 0,
|
43 |
+
"liked": 1
|
44 |
+
}
|
45 |
+
},
|
46 |
+
"conversationId": "391",
|
47 |
+
"respondentWorkerId": 1,
|
48 |
+
"initiatorWorkerId": 0,
|
49 |
+
"initiatorQuestions": {
|
50 |
+
"203371": {
|
51 |
+
"suggested": 1,
|
52 |
+
"seen": 0,
|
53 |
+
"liked": 1
|
54 |
+
},
|
55 |
+
"84779": {
|
56 |
+
"suggested": 0,
|
57 |
+
"seen": 1,
|
58 |
+
"liked": 1
|
59 |
+
},
|
60 |
+
"122159": {
|
61 |
+
"suggested": 0,
|
62 |
+
"seen": 1,
|
63 |
+
"liked": 1
|
64 |
+
},
|
65 |
+
"151313": {
|
66 |
+
"suggested": 0,
|
67 |
+
"seen": 1,
|
68 |
+
"liked": 1
|
69 |
+
},
|
70 |
+
"191602": {
|
71 |
+
"suggested": 0,
|
72 |
+
"seen": 1,
|
73 |
+
"liked": 1
|
74 |
+
},
|
75 |
+
"165710": {
|
76 |
+
"suggested": 1,
|
77 |
+
"seen": 0,
|
78 |
+
"liked": 1
|
79 |
+
}
|
80 |
+
}
|
81 |
+
},
|
82 |
+
"log": [
|
83 |
+
{
|
84 |
+
"turn id": 1,
|
85 |
+
"user utterance": "Hi there, how are you? I'm looking for movie recommendations.",
|
86 |
+
"system response": "I am doing okay. What kind of movies do you like?",
|
87 |
+
"dialog history": "",
|
88 |
+
"original user side information": {
|
89 |
+
"user_utterance_raw": "Hi there, how are you? I'm looking for movie recommendations.",
|
90 |
+
"dialog_history_raw": "",
|
91 |
+
"messageId": 1021,
|
92 |
+
"timeOffset": 0,
|
93 |
+
"senderWorkerId": 0
|
94 |
+
},
|
95 |
+
"original system side information": {
|
96 |
+
"sys_utterance_raw": "I am doing okay. What kind of movies do you like?",
|
97 |
+
"messageId": 1022,
|
98 |
+
"timeOffset": 15,
|
99 |
+
"senderWorkerId": 1
|
100 |
+
}
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"turn id": 2,
|
104 |
+
"user utterance": "I like animations like The Triplets of Belleville (2003) and Waking Life (2001). I also enjoy Mary and Max (2009). Anything artistic.",
|
105 |
+
"system response": "You might like The Boss Baby (2017) that was a good movie.",
|
106 |
+
"dialog history": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like?",
|
107 |
+
"original user side information": {
|
108 |
+
"user_utterance_raw": "I like animations like @84779 and @191602. I also enjoy @122159. Anything artistic.",
|
109 |
+
"dialog_history_raw": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like?",
|
110 |
+
"messageId": 1025,
|
111 |
+
"timeOffset": 95,
|
112 |
+
"senderWorkerId": 0
|
113 |
+
},
|
114 |
+
"original system side information": {
|
115 |
+
"sys_utterance_raw": "You might like @165710 that was a good movie.",
|
116 |
+
"messageId": 1026,
|
117 |
+
"timeOffset": 135,
|
118 |
+
"senderWorkerId": 1
|
119 |
+
}
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"turn id": 3,
|
123 |
+
"user utterance": "What's it about?",
|
124 |
+
"system response": "It has Alec Baldwin it is about a baby that works for a company and gets adopted it is very funny.",
|
125 |
+
"dialog history": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like? <USER> I like animations like The Triplets of Belleville (2003) and Waking Life (2001). I also enjoy Mary and Max (2009). Anything artistic. <SYSTEM> You might like The Boss Baby (2017) that was a good movie.",
|
126 |
+
"original user side information": {
|
127 |
+
"user_utterance_raw": "What's it about?",
|
128 |
+
"dialog_history_raw": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like? <USER> I like animations like @84779 and @191602. I also enjoy @122159. Anything artistic. <SYSTEM> You might like @165710 that was a good movie.",
|
129 |
+
"messageId": 1027,
|
130 |
+
"timeOffset": 151,
|
131 |
+
"senderWorkerId": 0
|
132 |
+
},
|
133 |
+
"original system side information": {
|
134 |
+
"sys_utterance_raw": "It has Alec Baldwin it is about a baby that works for a company and gets adopted it is very funny.",
|
135 |
+
"messageId": 1028,
|
136 |
+
"timeOffset": 207,
|
137 |
+
"senderWorkerId": 1
|
138 |
+
}
|
139 |
+
},
|
140 |
+
{
|
141 |
+
"turn id": 4,
|
142 |
+
"user utterance": "That seems like a nice comedy. Do you have any animated recommendations that are a bit more dramatic? Like A Scanner Darkly (2006) for example. I like comedies but I prefer films with a little more depth.",
|
143 |
+
"system response": "That is a tough one but I will remember something. Final Fantasy: The Spirits Within (2001) was a good one.",
|
144 |
+
"dialog history": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like? <USER> I like animations like The Triplets of Belleville (2003) and Waking Life (2001). I also enjoy Mary and Max (2009). Anything artistic. <SYSTEM> You might like The Boss Baby (2017) that was a good movie. <USER> What's it about? <SYSTEM> It has Alec Baldwin it is about a baby that works for a company and gets adopted it is very funny.",
|
145 |
+
"original user side information": {
|
146 |
+
"user_utterance_raw": "That seems like a nice comedy. Do you have any animated recommendations that are a bit more dramatic? Like @151313 for example. I like comedies but I prefer films with a little more depth.",
|
147 |
+
"dialog_history_raw": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like? <USER> I like animations like @84779 and @191602. I also enjoy @122159. Anything artistic. <SYSTEM> You might like @165710 that was a good movie. <USER> What's it about? <SYSTEM> It has Alec Baldwin it is about a baby that works for a company and gets adopted it is very funny.",
|
148 |
+
"messageId": 1031,
|
149 |
+
"timeOffset": 327,
|
150 |
+
"senderWorkerId": 0
|
151 |
+
},
|
152 |
+
"original system side information": {
|
153 |
+
"sys_utterance_raw": "That is a tough one but I will remember something. @203371 was a good one.",
|
154 |
+
"messageId": 1033,
|
155 |
+
"timeOffset": 509,
|
156 |
+
"senderWorkerId": 1
|
157 |
+
}
|
158 |
+
},
|
159 |
+
{
|
160 |
+
"turn id": 5,
|
161 |
+
"user utterance": "Ooh that seems cool! Thanks for the input. I'm ready to submit if you are.",
|
162 |
+
"system response": "It is animated, sci fi, and has action. Glad I could help.",
|
163 |
+
"dialog history": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like? <USER> I like animations like The Triplets of Belleville (2003) and Waking Life (2001). I also enjoy Mary and Max (2009). Anything artistic. <SYSTEM> You might like The Boss Baby (2017) that was a good movie. <USER> What's it about? <SYSTEM> It has Alec Baldwin it is about a baby that works for a company and gets adopted it is very funny. <USER> That seems like a nice comedy. Do you have any animated recommendations that are a bit more dramatic? Like A Scanner Darkly (2006) for example. I like comedies but I prefer films with a little more depth. <SYSTEM> That is a tough one but I will remember something. Final Fantasy: The Spirits Within (2001) was a good one.",
|
164 |
+
"original user side information": {
|
165 |
+
"user_utterance_raw": "Ooh that seems cool! Thanks for the input. I'm ready to submit if you are.",
|
166 |
+
"dialog_history_raw": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like? <USER> I like animations like @84779 and @191602. I also enjoy @122159. Anything artistic. <SYSTEM> You might like @165710 that was a good movie. <USER> What's it about? <SYSTEM> It has Alec Baldwin it is about a baby that works for a company and gets adopted it is very funny. <USER> That seems like a nice comedy. Do you have any animated recommendations that are a bit more dramatic? Like @151313 for example. I like comedies but I prefer films with a little more depth. <SYSTEM> That is a tough one but I will remember something. @203371 was a good one.",
|
167 |
+
"messageId": 1034,
|
168 |
+
"timeOffset": 564,
|
169 |
+
"senderWorkerId": 0
|
170 |
+
},
|
171 |
+
"original system side information": {
|
172 |
+
"sys_utterance_raw": "It is animated, sci fi, and has action. Glad I could help.",
|
173 |
+
"messageId": 1036,
|
174 |
+
"timeOffset": 579,
|
175 |
+
"senderWorkerId": 1
|
176 |
+
}
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"turn id": 6,
|
180 |
+
"user utterance": "Nice. Take care, cheers!",
|
181 |
+
"system response": "bye.",
|
182 |
+
"dialog history": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like? <USER> I like animations like The Triplets of Belleville (2003) and Waking Life (2001). I also enjoy Mary and Max (2009). Anything artistic. <SYSTEM> You might like The Boss Baby (2017) that was a good movie. <USER> What's it about? <SYSTEM> It has Alec Baldwin it is about a baby that works for a company and gets adopted it is very funny. <USER> That seems like a nice comedy. Do you have any animated recommendations that are a bit more dramatic? Like A Scanner Darkly (2006) for example. I like comedies but I prefer films with a little more depth. <SYSTEM> That is a tough one but I will remember something. Final Fantasy: The Spirits Within (2001) was a good one. <USER> Ooh that seems cool! Thanks for the input. I'm ready to submit if you are. <SYSTEM> It is animated, sci fi, and has action. Glad I could help.",
|
183 |
+
"original user side information": {
|
184 |
+
"user_utterance_raw": "Nice. Take care, cheers!",
|
185 |
+
"dialog_history_raw": "<USER> Hi there, how are you? I'm looking for movie recommendations. <SYSTEM> I am doing okay. What kind of movies do you like? <USER> I like animations like @84779 and @191602. I also enjoy @122159. Anything artistic. <SYSTEM> You might like @165710 that was a good movie. <USER> What's it about? <SYSTEM> It has Alec Baldwin it is about a baby that works for a company and gets adopted it is very funny. <USER> That seems like a nice comedy. Do you have any animated recommendations that are a bit more dramatic? Like @151313 for example. I like comedies but I prefer films with a little more depth. <SYSTEM> That is a tough one but I will remember something. @203371 was a good one. <USER> Ooh that seems cool! Thanks for the input. I'm ready to submit if you are. <SYSTEM> It is animated, sci fi, and has action. Glad I could help.",
|
186 |
+
"messageId": 1038,
|
187 |
+
"timeOffset": 591,
|
188 |
+
"senderWorkerId": 0
|
189 |
+
},
|
190 |
+
"original system side information": {
|
191 |
+
"sys_utterance_raw": "bye.",
|
192 |
+
"messageId": 1039,
|
193 |
+
"timeOffset": 608,
|
194 |
+
"senderWorkerId": 1
|
195 |
+
}
|
196 |
+
}
|
197 |
+
]
|
198 |
+
},
|
199 |
+
"Redial--train--2": {
|
200 |
+
"original dialog id": "395",
|
201 |
+
"dialog index": 2,
|
202 |
+
"original dialog info": {
|
203 |
+
"movieMentions": {
|
204 |
+
"196336": "Scarface (1983)",
|
205 |
+
"204322": "South Park",
|
206 |
+
"145455": "Twilight Zone: The Movie (1983)",
|
207 |
+
"114851": "The Godfather ",
|
208 |
+
"128905": "From Dusk till Dawn (1996)",
|
209 |
+
"143189": "Star Wars: Episode II \u2013 Attack of the Clones (2002)",
|
210 |
+
"152242": "Enemy of the State (1998)",
|
211 |
+
"204292": "Star Wars"
|
212 |
+
},
|
213 |
+
"respondentQuestions": {
|
214 |
+
"196336": {
|
215 |
+
"suggested": 0,
|
216 |
+
"seen": 1,
|
217 |
+
"liked": 1
|
218 |
+
},
|
219 |
+
"204322": {
|
220 |
+
"suggested": 0,
|
221 |
+
"seen": 1,
|
222 |
+
"liked": 1
|
223 |
+
},
|
224 |
+
"145455": {
|
225 |
+
"suggested": 1,
|
226 |
+
"seen": 1,
|
227 |
+
"liked": 0
|
228 |
+
},
|
229 |
+
"114851": {
|
230 |
+
"suggested": 0,
|
231 |
+
"seen": 1,
|
232 |
+
"liked": 1
|
233 |
+
},
|
234 |
+
"128905": {
|
235 |
+
"suggested": 1,
|
236 |
+
"seen": 1,
|
237 |
+
"liked": 1
|
238 |
+
},
|
239 |
+
"143189": {
|
240 |
+
"suggested": 1,
|
241 |
+
"seen": 1,
|
242 |
+
"liked": 1
|
243 |
+
},
|
244 |
+
"152242": {
|
245 |
+
"suggested": 1,
|
246 |
+
"seen": 1,
|
247 |
+
"liked": 1
|
248 |
+
},
|
249 |
+
"204292": {
|
250 |
+
"suggested": 0,
|
251 |
+
"seen": 1,
|
252 |
+
"liked": 1
|
253 |
+
}
|
254 |
+
},
|
255 |
+
"conversationId": "395",
|
256 |
+
"respondentWorkerId": 1,
|
257 |
+
"initiatorWorkerId": 2,
|
258 |
+
"initiatorQuestions": []
|
259 |
+
},
|
260 |
+
"log": [
|
261 |
+
{
|
262 |
+
"turn id": 1,
|
263 |
+
"user utterance": "Hi, did you see Scarface (1983) ?",
|
264 |
+
"system response": "Yes it was a pretty good movie.",
|
265 |
+
"dialog history": "",
|
266 |
+
"original user side information": {
|
267 |
+
"user_utterance_raw": "Hi, did you see @196336 ?",
|
268 |
+
"dialog_history_raw": "",
|
269 |
+
"messageId": 1040,
|
270 |
+
"timeOffset": 0,
|
271 |
+
"senderWorkerId": 2
|
272 |
+
},
|
273 |
+
"original system side information": {
|
274 |
+
"sys_utterance_raw": "Yes it was a pretty good movie.",
|
275 |
+
"messageId": 1041,
|
276 |
+
"timeOffset": 19,
|
277 |
+
"senderWorkerId": 1
|
278 |
+
}
|
279 |
+
},
|
280 |
+
{
|
281 |
+
"turn id": 2,
|
282 |
+
"user utterance": "Then you would like The Godfather if you haven't seen it. You like Sci Fi stuff like Star Wars ?",
|
283 |
+
"system response": "I am more of a Star Wars: Episode II \u2013 Attack of the Clones (2002) kind of person.",
|
284 |
+
"dialog history": "<USER> Hi, did you see Scarface (1983) ? <SYSTEM> Yes it was a pretty good movie.",
|
285 |
+
"original user side information": {
|
286 |
+
"user_utterance_raw": "Then you would like @114851 if you haven't seen it. You like Sci Fi stuff like @204292 ?",
|
287 |
+
"dialog_history_raw": "<USER> Hi, did you see @196336 ? <SYSTEM> Yes it was a pretty good movie.",
|
288 |
+
"messageId": 1043,
|
289 |
+
"timeOffset": 102,
|
290 |
+
"senderWorkerId": 2
|
291 |
+
},
|
292 |
+
"original system side information": {
|
293 |
+
"sys_utterance_raw": "I am more of a @143189 kind of person.",
|
294 |
+
"messageId": 1044,
|
295 |
+
"timeOffset": 113,
|
296 |
+
"senderWorkerId": 1
|
297 |
+
}
|
298 |
+
},
|
299 |
+
{
|
300 |
+
"turn id": 3,
|
301 |
+
"user utterance": "Did you see any of the Star Wars parody movies? Star Wars: Episode II \u2013 Attack of the Clones (2002) was pretty funny?",
|
302 |
+
"system response": "I do not think I have seen that one. Who is in it?",
|
303 |
+
"dialog history": "<USER> Hi, did you see Scarface (1983) ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like The Godfather if you haven't seen it. You like Sci Fi stuff like Star Wars ? <SYSTEM> I am more of a Star Wars: Episode II \u2013 Attack of the Clones (2002) kind of person.",
|
304 |
+
"original user side information": {
|
305 |
+
"user_utterance_raw": "Did you see any of the Star Wars parody movies? @143189 was pretty funny?",
|
306 |
+
"dialog_history_raw": "<USER> Hi, did you see @196336 ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like @114851 if you haven't seen it. You like Sci Fi stuff like @204292 ? <SYSTEM> I am more of a @143189 kind of person.",
|
307 |
+
"messageId": 1045,
|
308 |
+
"timeOffset": 193,
|
309 |
+
"senderWorkerId": 2
|
310 |
+
},
|
311 |
+
"original system side information": {
|
312 |
+
"sys_utterance_raw": "I do not think I have seen that one. Who is in it?",
|
313 |
+
"messageId": 1046,
|
314 |
+
"timeOffset": 231,
|
315 |
+
"senderWorkerId": 1
|
316 |
+
}
|
317 |
+
},
|
318 |
+
{
|
319 |
+
"turn id": 4,
|
320 |
+
"user utterance": "Have you seen any cartoon movies like South Park ?",
|
321 |
+
"system response": "Yes those are really funny. I think I will watch Star Wars: Episode II \u2013 Attack of the Clones (2002). Thanks for the recommendation.",
|
322 |
+
"dialog history": "<USER> Hi, did you see Scarface (1983) ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like The Godfather if you haven't seen it. You like Sci Fi stuff like Star Wars ? <SYSTEM> I am more of a Star Wars: Episode II \u2013 Attack of the Clones (2002) kind of person. <USER> Did you see any of the Star Wars parody movies? Star Wars: Episode II \u2013 Attack of the Clones (2002) was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it?",
|
323 |
+
"original user side information": {
|
324 |
+
"user_utterance_raw": "Have you seen any cartoon movies like @204322 ?",
|
325 |
+
"dialog_history_raw": "<USER> Hi, did you see @196336 ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like @114851 if you haven't seen it. You like Sci Fi stuff like @204292 ? <SYSTEM> I am more of a @143189 kind of person. <USER> Did you see any of the Star Wars parody movies? @143189 was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it?",
|
326 |
+
"messageId": 1047,
|
327 |
+
"timeOffset": 243,
|
328 |
+
"senderWorkerId": 2
|
329 |
+
},
|
330 |
+
"original system side information": {
|
331 |
+
"sys_utterance_raw": "Yes those are really funny. I think I will watch @143189. Thanks for the recommendation.",
|
332 |
+
"messageId": 1049,
|
333 |
+
"timeOffset": 290,
|
334 |
+
"senderWorkerId": 1
|
335 |
+
}
|
336 |
+
},
|
337 |
+
{
|
338 |
+
"turn id": 5,
|
339 |
+
"user utterance": "Star Wars: Episode II \u2013 Attack of the Clones (2002) r Wars Clones is a claymation movie.",
|
340 |
+
"system response": "That sounds great.",
|
341 |
+
"dialog history": "<USER> Hi, did you see Scarface (1983) ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like The Godfather if you haven't seen it. You like Sci Fi stuff like Star Wars ? <SYSTEM> I am more of a Star Wars: Episode II \u2013 Attack of the Clones (2002) kind of person. <USER> Did you see any of the Star Wars parody movies? Star Wars: Episode II \u2013 Attack of the Clones (2002) was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like South Park ? <SYSTEM> Yes those are really funny. I think I will watch Star Wars: Episode II \u2013 Attack of the Clones (2002). Thanks for the recommendation.",
|
342 |
+
"original user side information": {
|
343 |
+
"user_utterance_raw": "@143189 r Wars Clones is a claymation movie.",
|
344 |
+
"dialog_history_raw": "<USER> Hi, did you see @196336 ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like @114851 if you haven't seen it. You like Sci Fi stuff like @204292 ? <SYSTEM> I am more of a @143189 kind of person. <USER> Did you see any of the Star Wars parody movies? @143189 was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like @204322 ? <SYSTEM> Yes those are really funny. I think I will watch @143189. Thanks for the recommendation.",
|
345 |
+
"messageId": 1050,
|
346 |
+
"timeOffset": 307,
|
347 |
+
"senderWorkerId": 2
|
348 |
+
},
|
349 |
+
"original system side information": {
|
350 |
+
"sys_utterance_raw": "That sounds great.",
|
351 |
+
"messageId": 1051,
|
352 |
+
"timeOffset": 326,
|
353 |
+
"senderWorkerId": 1
|
354 |
+
}
|
355 |
+
},
|
356 |
+
{
|
357 |
+
"turn id": 6,
|
358 |
+
"user utterance": "It is. You like blood and gore movies? If so, you might like From Dusk till Dawn (1996) .",
|
359 |
+
"system response": "No I do not like that genre of movie. The star wars movie is perfect for me.",
|
360 |
+
"dialog history": "<USER> Hi, did you see Scarface (1983) ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like The Godfather if you haven't seen it. You like Sci Fi stuff like Star Wars ? <SYSTEM> I am more of a Star Wars: Episode II \u2013 Attack of the Clones (2002) kind of person. <USER> Did you see any of the Star Wars parody movies? Star Wars: Episode II \u2013 Attack of the Clones (2002) was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like South Park ? <SYSTEM> Yes those are really funny. I think I will watch Star Wars: Episode II \u2013 Attack of the Clones (2002). Thanks for the recommendation. <USER> Star Wars: Episode II \u2013 Attack of the Clones (2002) r Wars Clones is a claymation movie. <SYSTEM> That sounds great.",
|
361 |
+
"original user side information": {
|
362 |
+
"user_utterance_raw": "It is. You like blood and gore movies? If so, you might like @128905 .",
|
363 |
+
"dialog_history_raw": "<USER> Hi, did you see @196336 ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like @114851 if you haven't seen it. You like Sci Fi stuff like @204292 ? <SYSTEM> I am more of a @143189 kind of person. <USER> Did you see any of the Star Wars parody movies? @143189 was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like @204322 ? <SYSTEM> Yes those are really funny. I think I will watch @143189. Thanks for the recommendation. <USER> @143189 r Wars Clones is a claymation movie. <SYSTEM> That sounds great.",
|
364 |
+
"messageId": 1052,
|
365 |
+
"timeOffset": 379,
|
366 |
+
"senderWorkerId": 2
|
367 |
+
},
|
368 |
+
"original system side information": {
|
369 |
+
"sys_utterance_raw": "No I do not like that genre of movie. The star wars movie is perfect for me.",
|
370 |
+
"messageId": 1053,
|
371 |
+
"timeOffset": 418,
|
372 |
+
"senderWorkerId": 1
|
373 |
+
}
|
374 |
+
},
|
375 |
+
{
|
376 |
+
"turn id": 7,
|
377 |
+
"user utterance": "You not a Twilight Zone: The Movie (1983) fan are you? Those films creep me out.",
|
378 |
+
"system response": "I found the movie I would like to watch. Thanks for all the help.",
|
379 |
+
"dialog history": "<USER> Hi, did you see Scarface (1983) ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like The Godfather if you haven't seen it. You like Sci Fi stuff like Star Wars ? <SYSTEM> I am more of a Star Wars: Episode II \u2013 Attack of the Clones (2002) kind of person. <USER> Did you see any of the Star Wars parody movies? Star Wars: Episode II \u2013 Attack of the Clones (2002) was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like South Park ? <SYSTEM> Yes those are really funny. I think I will watch Star Wars: Episode II \u2013 Attack of the Clones (2002). Thanks for the recommendation. <USER> Star Wars: Episode II \u2013 Attack of the Clones (2002) r Wars Clones is a claymation movie. <SYSTEM> That sounds great. <USER> It is. You like blood and gore movies? If so, you might like From Dusk till Dawn (1996) . <SYSTEM> No I do not like that genre of movie. The star wars movie is perfect for me.",
|
380 |
+
"original user side information": {
|
381 |
+
"user_utterance_raw": "You not a @145455 fan are you? Those films creep me out.",
|
382 |
+
"dialog_history_raw": "<USER> Hi, did you see @196336 ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like @114851 if you haven't seen it. You like Sci Fi stuff like @204292 ? <SYSTEM> I am more of a @143189 kind of person. <USER> Did you see any of the Star Wars parody movies? @143189 was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like @204322 ? <SYSTEM> Yes those are really funny. I think I will watch @143189. Thanks for the recommendation. <USER> @143189 r Wars Clones is a claymation movie. <SYSTEM> That sounds great. <USER> It is. You like blood and gore movies? If so, you might like @128905 . <SYSTEM> No I do not like that genre of movie. The star wars movie is perfect for me.",
|
383 |
+
"messageId": 1054,
|
384 |
+
"timeOffset": 462,
|
385 |
+
"senderWorkerId": 2
|
386 |
+
},
|
387 |
+
"original system side information": {
|
388 |
+
"sys_utterance_raw": "I found the movie I would like to watch. Thanks for all the help.",
|
389 |
+
"messageId": 1055,
|
390 |
+
"timeOffset": 521,
|
391 |
+
"senderWorkerId": 1
|
392 |
+
}
|
393 |
+
},
|
394 |
+
{
|
395 |
+
"turn id": 8,
|
396 |
+
"user utterance": "Oh okay. Enemy of the State (1998) was a good tech film if you're into that genre. How do we submit?",
|
397 |
+
"system response": "click the hide/show movie forms and fill the movie questions rows then it will let you submit. I hope you have a great night. bye.",
|
398 |
+
"dialog history": "<USER> Hi, did you see Scarface (1983) ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like The Godfather if you haven't seen it. You like Sci Fi stuff like Star Wars ? <SYSTEM> I am more of a Star Wars: Episode II \u2013 Attack of the Clones (2002) kind of person. <USER> Did you see any of the Star Wars parody movies? Star Wars: Episode II \u2013 Attack of the Clones (2002) was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like South Park ? <SYSTEM> Yes those are really funny. I think I will watch Star Wars: Episode II \u2013 Attack of the Clones (2002). Thanks for the recommendation. <USER> Star Wars: Episode II \u2013 Attack of the Clones (2002) r Wars Clones is a claymation movie. <SYSTEM> That sounds great. <USER> It is. You like blood and gore movies? If so, you might like From Dusk till Dawn (1996) . <SYSTEM> No I do not like that genre of movie. The star wars movie is perfect for me. <USER> You not a Twilight Zone: The Movie (1983) fan are you? Those films creep me out. <SYSTEM> I found the movie I would like to watch. Thanks for all the help.",
|
399 |
+
"original user side information": {
|
400 |
+
"user_utterance_raw": "Oh okay. @152242 was a good tech film if you're into that genre. How do we submit?",
|
401 |
+
"dialog_history_raw": "<USER> Hi, did you see @196336 ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like @114851 if you haven't seen it. You like Sci Fi stuff like @204292 ? <SYSTEM> I am more of a @143189 kind of person. <USER> Did you see any of the Star Wars parody movies? @143189 was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like @204322 ? <SYSTEM> Yes those are really funny. I think I will watch @143189. Thanks for the recommendation. <USER> @143189 r Wars Clones is a claymation movie. <SYSTEM> That sounds great. <USER> It is. You like blood and gore movies? If so, you might like @128905 . <SYSTEM> No I do not like that genre of movie. The star wars movie is perfect for me. <USER> You not a @145455 fan are you? Those films creep me out. <SYSTEM> I found the movie I would like to watch. Thanks for all the help.",
|
402 |
+
"messageId": 1057,
|
403 |
+
"timeOffset": 570,
|
404 |
+
"senderWorkerId": 2
|
405 |
+
},
|
406 |
+
"original system side information": {
|
407 |
+
"sys_utterance_raw": "click the hide/show movie forms and fill the movie questions rows then it will let you submit. I hope you have a great night. bye.",
|
408 |
+
"messageId": 1059,
|
409 |
+
"timeOffset": 623,
|
410 |
+
"senderWorkerId": 1
|
411 |
+
}
|
412 |
+
},
|
413 |
+
{
|
414 |
+
"turn id": 9,
|
415 |
+
"user utterance": "Thanks.",
|
416 |
+
"system response": "",
|
417 |
+
"dialog history": "<USER> Hi, did you see Scarface (1983) ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like The Godfather if you haven't seen it. You like Sci Fi stuff like Star Wars ? <SYSTEM> I am more of a Star Wars: Episode II \u2013 Attack of the Clones (2002) kind of person. <USER> Did you see any of the Star Wars parody movies? Star Wars: Episode II \u2013 Attack of the Clones (2002) was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like South Park ? <SYSTEM> Yes those are really funny. I think I will watch Star Wars: Episode II \u2013 Attack of the Clones (2002). Thanks for the recommendation. <USER> Star Wars: Episode II \u2013 Attack of the Clones (2002) r Wars Clones is a claymation movie. <SYSTEM> That sounds great. <USER> It is. You like blood and gore movies? If so, you might like From Dusk till Dawn (1996) . <SYSTEM> No I do not like that genre of movie. The star wars movie is perfect for me. <USER> You not a Twilight Zone: The Movie (1983) fan are you? Those films creep me out. <SYSTEM> I found the movie I would like to watch. Thanks for all the help. <USER> Oh okay. Enemy of the State (1998) was a good tech film if you're into that genre. How do we submit? <SYSTEM> click the hide/show movie forms and fill the movie questions rows then it will let you submit. I hope you have a great night. bye.",
|
418 |
+
"original user side information": {
|
419 |
+
"user_utterance_raw": "Thanks.",
|
420 |
+
"dialog_history_raw": "<USER> Hi, did you see @196336 ? <SYSTEM> Yes it was a pretty good movie. <USER> Then you would like @114851 if you haven't seen it. You like Sci Fi stuff like @204292 ? <SYSTEM> I am more of a @143189 kind of person. <USER> Did you see any of the Star Wars parody movies? @143189 was pretty funny? <SYSTEM> I do not think I have seen that one. Who is in it? <USER> Have you seen any cartoon movies like @204322 ? <SYSTEM> Yes those are really funny. I think I will watch @143189. Thanks for the recommendation. <USER> @143189 r Wars Clones is a claymation movie. <SYSTEM> That sounds great. <USER> It is. You like blood and gore movies? If so, you might like @128905 . <SYSTEM> No I do not like that genre of movie. The star wars movie is perfect for me. <USER> You not a @145455 fan are you? Those films creep me out. <SYSTEM> I found the movie I would like to watch. Thanks for all the help. <USER> Oh okay. @152242 was a good tech film if you're into that genre. How do we submit? <SYSTEM> click the hide/show movie forms and fill the movie questions rows then it will let you submit. I hope you have a great night. bye.",
|
421 |
+
"messageId": 1060,
|
422 |
+
"timeOffset": 628,
|
423 |
+
"senderWorkerId": 2
|
424 |
+
},
|
425 |
+
"original system side information": {
|
426 |
+
"sys_utterance_raw": "",
|
427 |
+
"messageId": 1059,
|
428 |
+
"timeOffset": 623,
|
429 |
+
"senderWorkerId": 1
|
430 |
+
}
|
431 |
+
}
|
432 |
+
]
|
433 |
+
},
|
434 |
+
"Redial--train--3": {
|
435 |
+
"original dialog id": "397",
|
436 |
+
"dialog index": 3,
|
437 |
+
"original dialog info": {
|
438 |
+
"movieMentions": {
|
439 |
+
"79320": "Contact (2009)",
|
440 |
+
"84001": "Donnie Darko (2001)",
|
441 |
+
"155969": "The Martian (2015)",
|
442 |
+
"90950": "Avatar (2009)",
|
443 |
+
"163606": "Avatar ",
|
444 |
+
"147598": "Indiana Jones and the Kingdom of the Crystal Skull (2008)",
|
445 |
+
"204292": "Star Wars"
|
446 |
+
},
|
447 |
+
"respondentQuestions": {
|
448 |
+
"79320": {
|
449 |
+
"suggested": 0,
|
450 |
+
"seen": 1,
|
451 |
+
"liked": 1
|
452 |
+
},
|
453 |
+
"84001": {
|
454 |
+
"suggested": 1,
|
455 |
+
"seen": 1,
|
456 |
+
"liked": 1
|
457 |
+
},
|
458 |
+
"155969": {
|
459 |
+
"suggested": 1,
|
460 |
+
"seen": 1,
|
461 |
+
"liked": 1
|
462 |
+
},
|
463 |
+
"90950": {
|
464 |
+
"suggested": 0,
|
465 |
+
"seen": 1,
|
466 |
+
"liked": 1
|
467 |
+
},
|
468 |
+
"163606": {
|
469 |
+
"suggested": 0,
|
470 |
+
"seen": 1,
|
471 |
+
"liked": 1
|
472 |
+
},
|
473 |
+
"147598": {
|
474 |
+
"suggested": 0,
|
475 |
+
"seen": 0,
|
476 |
+
"liked": 1
|
477 |
+
},
|
478 |
+
"204292": {
|
479 |
+
"suggested": 0,
|
480 |
+
"seen": 1,
|
481 |
+
"liked": 1
|
482 |
+
}
|
483 |
+
},
|
484 |
+
"conversationId": "397",
|
485 |
+
"respondentWorkerId": 1,
|
486 |
+
"initiatorWorkerId": 3,
|
487 |
+
"initiatorQuestions": {
|
488 |
+
"79320": {
|
489 |
+
"suggested": 0,
|
490 |
+
"seen": 0,
|
491 |
+
"liked": 1
|
492 |
+
},
|
493 |
+
"84001": {
|
494 |
+
"suggested": 0,
|
495 |
+
"seen": 0,
|
496 |
+
"liked": 1
|
497 |
+
},
|
498 |
+
"155969": {
|
499 |
+
"suggested": 0,
|
500 |
+
"seen": 0,
|
501 |
+
"liked": 1
|
502 |
+
},
|
503 |
+
"90950": {
|
504 |
+
"suggested": 0,
|
505 |
+
"seen": 0,
|
506 |
+
"liked": 1
|
507 |
+
},
|
508 |
+
"163606": {
|
509 |
+
"suggested": 0,
|
510 |
+
"seen": 0,
|
511 |
+
"liked": 0
|
512 |
+
},
|
513 |
+
"147598": {
|
514 |
+
"suggested": 1,
|
515 |
+
"seen": 1,
|
516 |
+
"liked": 1
|
517 |
+
},
|
518 |
+
"204292": {
|
519 |
+
"suggested": 1,
|
520 |
+
"seen": 1,
|
521 |
+
"liked": 1
|
522 |
+
}
|
523 |
+
}
|
524 |
+
},
|
525 |
+
"log": [
|
526 |
+
{
|
527 |
+
"turn id": 1,
|
528 |
+
"user utterance": "Avatar It is a nice movie. What say? Avatar (2009) Was a marvelous 3D experience personally for me.",
|
529 |
+
"system response": "I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan?",
|
530 |
+
"dialog history": "",
|
531 |
+
"original user side information": {
|
532 |
+
"user_utterance_raw": "@163606 It is a nice movie. What say? @90950 Was a marvelous 3D experience personally for me.",
|
533 |
+
"dialog_history_raw": "",
|
534 |
+
"messageId": 1062,
|
535 |
+
"timeOffset": 31,
|
536 |
+
"senderWorkerId": 3
|
537 |
+
},
|
538 |
+
"original system side information": {
|
539 |
+
"sys_utterance_raw": "I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan?",
|
540 |
+
"messageId": 1063,
|
541 |
+
"timeOffset": 56,
|
542 |
+
"senderWorkerId": 1
|
543 |
+
}
|
544 |
+
},
|
545 |
+
{
|
546 |
+
"turn id": 2,
|
547 |
+
"user utterance": "No. I am not. I like sci-fi movies. Have you watched The Martian (2015). My another favorite sci-fi movies are Contact (2009) and Donnie Darko (2001).",
|
548 |
+
"system response": "No I have not seen that one but have seen all the Star Wars movies. Do you like those.",
|
549 |
+
"dialog history": "<USER> Avatar It is a nice movie. What say? Avatar (2009) Was a marvelous 3D experience personally for me. <SYSTEM> I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan?",
|
550 |
+
"original user side information": {
|
551 |
+
"user_utterance_raw": "No. I am not. I like sci-fi movies. Have you watched @155969. My another favorite sci-fi movies are @79320 and @84001.",
|
552 |
+
"dialog_history_raw": "<USER> @163606 It is a nice movie. What say? @90950 Was a marvelous 3D experience personally for me. <SYSTEM> I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan?",
|
553 |
+
"messageId": 1065,
|
554 |
+
"timeOffset": 146,
|
555 |
+
"senderWorkerId": 3
|
556 |
+
},
|
557 |
+
"original system side information": {
|
558 |
+
"sys_utterance_raw": "No I have not seen that one but have seen all the @204292 movies. Do you like those.",
|
559 |
+
"messageId": 1066,
|
560 |
+
"timeOffset": 159,
|
561 |
+
"senderWorkerId": 1
|
562 |
+
}
|
563 |
+
},
|
564 |
+
{
|
565 |
+
"turn id": 3,
|
566 |
+
"user utterance": "Yes, I love Star Wars series. In fact I am excited about the upcoming Star Wars. What are you favorite movies?",
|
567 |
+
"system response": "I am too I think you will like Indiana Jones and the Kingdom of the Crystal Skull (2008).",
|
568 |
+
"dialog history": "<USER> Avatar It is a nice movie. What say? Avatar (2009) Was a marvelous 3D experience personally for me. <SYSTEM> I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan? <USER> No. I am not. I like sci-fi movies. Have you watched The Martian (2015). My another favorite sci-fi movies are Contact (2009) and Donnie Darko (2001). <SYSTEM> No I have not seen that one but have seen all the Star Wars movies. Do you like those.",
|
569 |
+
"original user side information": {
|
570 |
+
"user_utterance_raw": "Yes, I love @204292 series. In fact I am excited about the upcoming @204292. What are you favorite movies?",
|
571 |
+
"dialog_history_raw": "<USER> @163606 It is a nice movie. What say? @90950 Was a marvelous 3D experience personally for me. <SYSTEM> I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan? <USER> No. I am not. I like sci-fi movies. Have you watched @155969. My another favorite sci-fi movies are @79320 and @84001. <SYSTEM> No I have not seen that one but have seen all the @204292 movies. Do you like those.",
|
572 |
+
"messageId": 1069,
|
573 |
+
"timeOffset": 231,
|
574 |
+
"senderWorkerId": 3
|
575 |
+
},
|
576 |
+
"original system side information": {
|
577 |
+
"sys_utterance_raw": "I am too I think you will like @147598.",
|
578 |
+
"messageId": 1070,
|
579 |
+
"timeOffset": 249,
|
580 |
+
"senderWorkerId": 1
|
581 |
+
}
|
582 |
+
},
|
583 |
+
{
|
584 |
+
"turn id": 4,
|
585 |
+
"user utterance": "I have not seen Indiana Jones and the Kingdom of the Crystal Skull (2008). I will watch it soon.",
|
586 |
+
"system response": "It is a good movie if you like Star wars you should like it.",
|
587 |
+
"dialog history": "<USER> Avatar It is a nice movie. What say? Avatar (2009) Was a marvelous 3D experience personally for me. <SYSTEM> I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan? <USER> No. I am not. I like sci-fi movies. Have you watched The Martian (2015). My another favorite sci-fi movies are Contact (2009) and Donnie Darko (2001). <SYSTEM> No I have not seen that one but have seen all the Star Wars movies. Do you like those. <USER> Yes, I love Star Wars series. In fact I am excited about the upcoming Star Wars. What are you favorite movies? <SYSTEM> I am too I think you will like Indiana Jones and the Kingdom of the Crystal Skull (2008).",
|
588 |
+
"original user side information": {
|
589 |
+
"user_utterance_raw": "I have not seen @147598. I will watch it soon.",
|
590 |
+
"dialog_history_raw": "<USER> @163606 It is a nice movie. What say? @90950 Was a marvelous 3D experience personally for me. <SYSTEM> I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan? <USER> No. I am not. I like sci-fi movies. Have you watched @155969. My another favorite sci-fi movies are @79320 and @84001. <SYSTEM> No I have not seen that one but have seen all the @204292 movies. Do you like those. <USER> Yes, I love @204292 series. In fact I am excited about the upcoming @204292. What are you favorite movies? <SYSTEM> I am too I think you will like @147598.",
|
591 |
+
"messageId": 1072,
|
592 |
+
"timeOffset": 283,
|
593 |
+
"senderWorkerId": 3
|
594 |
+
},
|
595 |
+
"original system side information": {
|
596 |
+
"sys_utterance_raw": "It is a good movie if you like Star wars you should like it.",
|
597 |
+
"messageId": 1073,
|
598 |
+
"timeOffset": 312,
|
599 |
+
"senderWorkerId": 1
|
600 |
+
}
|
601 |
+
},
|
602 |
+
{
|
603 |
+
"turn id": 5,
|
604 |
+
"user utterance": "Great. I will watch those. Now, let us submit this. Nice talking to you, have a nice day!",
|
605 |
+
"system response": "Thanks it was nice talking to you too bye.",
|
606 |
+
"dialog history": "<USER> Avatar It is a nice movie. What say? Avatar (2009) Was a marvelous 3D experience personally for me. <SYSTEM> I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan? <USER> No. I am not. I like sci-fi movies. Have you watched The Martian (2015). My another favorite sci-fi movies are Contact (2009) and Donnie Darko (2001). <SYSTEM> No I have not seen that one but have seen all the Star Wars movies. Do you like those. <USER> Yes, I love Star Wars series. In fact I am excited about the upcoming Star Wars. What are you favorite movies? <SYSTEM> I am too I think you will like Indiana Jones and the Kingdom of the Crystal Skull (2008). <USER> I have not seen Indiana Jones and the Kingdom of the Crystal Skull (2008). I will watch it soon. <SYSTEM> It is a good movie if you like Star wars you should like it.",
|
607 |
+
"original user side information": {
|
608 |
+
"user_utterance_raw": "Great. I will watch those. Now, let us submit this. Nice talking to you, have a nice day!",
|
609 |
+
"dialog_history_raw": "<USER> @163606 It is a nice movie. What say? @90950 Was a marvelous 3D experience personally for me. <SYSTEM> I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan? <USER> No. I am not. I like sci-fi movies. Have you watched @155969. My another favorite sci-fi movies are @79320 and @84001. <SYSTEM> No I have not seen that one but have seen all the @204292 movies. Do you like those. <USER> Yes, I love @204292 series. In fact I am excited about the upcoming @204292. What are you favorite movies? <SYSTEM> I am too I think you will like @147598. <USER> I have not seen @147598. I will watch it soon. <SYSTEM> It is a good movie if you like Star wars you should like it.",
|
610 |
+
"messageId": 1074,
|
611 |
+
"timeOffset": 344,
|
612 |
+
"senderWorkerId": 3
|
613 |
+
},
|
614 |
+
"original system side information": {
|
615 |
+
"sys_utterance_raw": "Thanks it was nice talking to you too bye.",
|
616 |
+
"messageId": 1075,
|
617 |
+
"timeOffset": 361,
|
618 |
+
"senderWorkerId": 1
|
619 |
+
}
|
620 |
+
}
|
621 |
+
]
|
622 |
+
},
|
623 |
+
"Redial--train--4": {
|
624 |
+
"original dialog id": "405",
|
625 |
+
"dialog index": 4,
|
626 |
+
"original dialog info": {
|
627 |
+
"movieMentions": {
|
628 |
+
"188302": "Ever After (1998)",
|
629 |
+
"195904": "Charlie's Angels ",
|
630 |
+
"91313": "Blended (2014)",
|
631 |
+
"157394": "The Wedding Singer (1998)",
|
632 |
+
"115908": "50 First Dates (2004)"
|
633 |
+
},
|
634 |
+
"respondentQuestions": [],
|
635 |
+
"conversationId": "405",
|
636 |
+
"respondentWorkerId": 5,
|
637 |
+
"initiatorWorkerId": 4,
|
638 |
+
"initiatorQuestions": []
|
639 |
+
},
|
640 |
+
"log": [
|
641 |
+
{
|
642 |
+
"turn id": 1,
|
643 |
+
"user utterance": "I'm in the mood to watch a romantic comedy. What do you suggest?",
|
644 |
+
"system response": "50 First Dates (2004). Have you seen that one?",
|
645 |
+
"dialog history": "",
|
646 |
+
"original user side information": {
|
647 |
+
"user_utterance_raw": "I'm in the mood to watch a romantic comedy. What do you suggest?",
|
648 |
+
"dialog_history_raw": "",
|
649 |
+
"messageId": 1076,
|
650 |
+
"timeOffset": 0,
|
651 |
+
"senderWorkerId": 4
|
652 |
+
},
|
653 |
+
"original system side information": {
|
654 |
+
"sys_utterance_raw": "@115908. Have you seen that one?",
|
655 |
+
"messageId": 1078,
|
656 |
+
"timeOffset": 36,
|
657 |
+
"senderWorkerId": 5
|
658 |
+
}
|
659 |
+
},
|
660 |
+
{
|
661 |
+
"turn id": 2,
|
662 |
+
"user utterance": "Oh, I've seen that one. I really like Drew Barrymore.",
|
663 |
+
"system response": "Yes she is good, I am looking for a super hero movie myself. Do you like The Wedding Singer (1998).",
|
664 |
+
"dialog history": "<USER> I'm in the mood to watch a romantic comedy. What do you suggest? <SYSTEM> 50 First Dates (2004). Have you seen that one?",
|
665 |
+
"original user side information": {
|
666 |
+
"user_utterance_raw": "Oh, I've seen that one. I really like Drew Barrymore.",
|
667 |
+
"dialog_history_raw": "<USER> I'm in the mood to watch a romantic comedy. What do you suggest? <SYSTEM> @115908. Have you seen that one?",
|
668 |
+
"messageId": 1079,
|
669 |
+
"timeOffset": 91,
|
670 |
+
"senderWorkerId": 4
|
671 |
+
},
|
672 |
+
"original system side information": {
|
673 |
+
"sys_utterance_raw": "Yes she is good, I am looking for a super hero movie myself. Do you like @157394.",
|
674 |
+
"messageId": 1081,
|
675 |
+
"timeOffset": 169,
|
676 |
+
"senderWorkerId": 5
|
677 |
+
}
|
678 |
+
},
|
679 |
+
{
|
680 |
+
"turn id": 3,
|
681 |
+
"user utterance": "Drew Barrymore was in Charlie's Angels . Do you think that counts as a superhero movie?",
|
682 |
+
"system response": "Yeah, definitely. I liked that one.",
|
683 |
+
"dialog history": "<USER> I'm in the mood to watch a romantic comedy. What do you suggest? <SYSTEM> 50 First Dates (2004). Have you seen that one? <USER> Oh, I've seen that one. I really like Drew Barrymore. <SYSTEM> Yes she is good, I am looking for a super hero movie myself. Do you like The Wedding Singer (1998).",
|
684 |
+
"original user side information": {
|
685 |
+
"user_utterance_raw": "Drew Barrymore was in @195904. Do you think that counts as a superhero movie?",
|
686 |
+
"dialog_history_raw": "<USER> I'm in the mood to watch a romantic comedy. What do you suggest? <SYSTEM> @115908. Have you seen that one? <USER> Oh, I've seen that one. I really like Drew Barrymore. <SYSTEM> Yes she is good, I am looking for a super hero movie myself. Do you like @157394.",
|
687 |
+
"messageId": 1082,
|
688 |
+
"timeOffset": 188,
|
689 |
+
"senderWorkerId": 4
|
690 |
+
},
|
691 |
+
"original system side information": {
|
692 |
+
"sys_utterance_raw": "Yeah, definitely. I liked that one.",
|
693 |
+
"messageId": 1083,
|
694 |
+
"timeOffset": 199,
|
695 |
+
"senderWorkerId": 5
|
696 |
+
}
|
697 |
+
},
|
698 |
+
{
|
699 |
+
"turn id": 4,
|
700 |
+
"user utterance": "Oh, The Wedding Singer (1998) is a good one. Sandler and Barrymore are great together. I'm very excited to finally see Blended (2014).",
|
701 |
+
"system response": "Oh I have heard good things about that film.",
|
702 |
+
"dialog history": "<USER> I'm in the mood to watch a romantic comedy. What do you suggest? <SYSTEM> 50 First Dates (2004). Have you seen that one? <USER> Oh, I've seen that one. I really like Drew Barrymore. <SYSTEM> Yes she is good, I am looking for a super hero movie myself. Do you like The Wedding Singer (1998). <USER> Drew Barrymore was in Charlie's Angels . Do you think that counts as a superhero movie? <SYSTEM> Yeah, definitely. I liked that one.",
|
703 |
+
"original user side information": {
|
704 |
+
"user_utterance_raw": "Oh, @157394 is a good one. Sandler and Barrymore are great together. I'm very excited to finally see @91313.",
|
705 |
+
"dialog_history_raw": "<USER> I'm in the mood to watch a romantic comedy. What do you suggest? <SYSTEM> @115908. Have you seen that one? <USER> Oh, I've seen that one. I really like Drew Barrymore. <SYSTEM> Yes she is good, I am looking for a super hero movie myself. Do you like @157394. <USER> Drew Barrymore was in @195904. Do you think that counts as a superhero movie? <SYSTEM> Yeah, definitely. I liked that one.",
|
706 |
+
"messageId": 1084,
|
707 |
+
"timeOffset": 300,
|
708 |
+
"senderWorkerId": 4
|
709 |
+
},
|
710 |
+
"original system side information": {
|
711 |
+
"sys_utterance_raw": "Oh I have heard good things about that film.",
|
712 |
+
"messageId": 1085,
|
713 |
+
"timeOffset": 320,
|
714 |
+
"senderWorkerId": 5
|
715 |
+
}
|
716 |
+
},
|
717 |
+
{
|
718 |
+
"turn id": 5,
|
719 |
+
"user utterance": "I also liked Barrymore in Ever After (1998).",
|
720 |
+
"system response": "That is one film I should definitely check out.",
|
721 |
+
"dialog history": "<USER> I'm in the mood to watch a romantic comedy. What do you suggest? <SYSTEM> 50 First Dates (2004). Have you seen that one? <USER> Oh, I've seen that one. I really like Drew Barrymore. <SYSTEM> Yes she is good, I am looking for a super hero movie myself. Do you like The Wedding Singer (1998). <USER> Drew Barrymore was in Charlie's Angels . Do you think that counts as a superhero movie? <SYSTEM> Yeah, definitely. I liked that one. <USER> Oh, The Wedding Singer (1998) is a good one. Sandler and Barrymore are great together. I'm very excited to finally see Blended (2014). <SYSTEM> Oh I have heard good things about that film.",
|
722 |
+
"original user side information": {
|
723 |
+
"user_utterance_raw": "I also liked Barrymore in @188302.",
|
724 |
+
"dialog_history_raw": "<USER> I'm in the mood to watch a romantic comedy. What do you suggest? <SYSTEM> @115908. Have you seen that one? <USER> Oh, I've seen that one. I really like Drew Barrymore. <SYSTEM> Yes she is good, I am looking for a super hero movie myself. Do you like @157394. <USER> Drew Barrymore was in @195904. Do you think that counts as a superhero movie? <SYSTEM> Yeah, definitely. I liked that one. <USER> Oh, @157394 is a good one. Sandler and Barrymore are great together. I'm very excited to finally see @91313. <SYSTEM> Oh I have heard good things about that film.",
|
725 |
+
"messageId": 1086,
|
726 |
+
"timeOffset": 358,
|
727 |
+
"senderWorkerId": 4
|
728 |
+
},
|
729 |
+
"original system side information": {
|
730 |
+
"sys_utterance_raw": "That is one film I should definitely check out.",
|
731 |
+
"messageId": 1090,
|
732 |
+
"timeOffset": 458,
|
733 |
+
"senderWorkerId": 5
|
734 |
+
}
|
735 |
+
}
|
736 |
+
]
|
737 |
+
},
|
738 |
+
"Redial--train--5": {
|
739 |
+
"original dialog id": "407",
|
740 |
+
"dialog index": 5,
|
741 |
+
"original dialog info": {
|
742 |
+
"movieMentions": {
|
743 |
+
"119144": "Wonder Woman (2017)",
|
744 |
+
"125431": "Annabelle (2014)",
|
745 |
+
"141788": "Fast & Furious (2009)",
|
746 |
+
"204331": "Girls Trip (2017)",
|
747 |
+
"184418": "Get Out (2017)",
|
748 |
+
"136632": "Spider-Man: Homecoming (2017)"
|
749 |
+
},
|
750 |
+
"respondentQuestions": {
|
751 |
+
"119144": {
|
752 |
+
"suggested": 0,
|
753 |
+
"seen": 1,
|
754 |
+
"liked": 1
|
755 |
+
},
|
756 |
+
"125431": {
|
757 |
+
"suggested": 0,
|
758 |
+
"seen": 1,
|
759 |
+
"liked": 1
|
760 |
+
},
|
761 |
+
"141788": {
|
762 |
+
"suggested": 1,
|
763 |
+
"seen": 1,
|
764 |
+
"liked": 1
|
765 |
+
},
|
766 |
+
"204331": {
|
767 |
+
"suggested": 0,
|
768 |
+
"seen": 1,
|
769 |
+
"liked": 1
|
770 |
+
},
|
771 |
+
"184418": {
|
772 |
+
"suggested": 1,
|
773 |
+
"seen": 1,
|
774 |
+
"liked": 1
|
775 |
+
},
|
776 |
+
"136632": {
|
777 |
+
"suggested": 0,
|
778 |
+
"seen": 0,
|
779 |
+
"liked": 1
|
780 |
+
}
|
781 |
+
},
|
782 |
+
"conversationId": "407",
|
783 |
+
"respondentWorkerId": 6,
|
784 |
+
"initiatorWorkerId": 7,
|
785 |
+
"initiatorQuestions": {
|
786 |
+
"119144": {
|
787 |
+
"suggested": 0,
|
788 |
+
"seen": 1,
|
789 |
+
"liked": 1
|
790 |
+
},
|
791 |
+
"125431": {
|
792 |
+
"suggested": 1,
|
793 |
+
"seen": 1,
|
794 |
+
"liked": 1
|
795 |
+
},
|
796 |
+
"141788": {
|
797 |
+
"suggested": 0,
|
798 |
+
"seen": 1,
|
799 |
+
"liked": 1
|
800 |
+
},
|
801 |
+
"204331": {
|
802 |
+
"suggested": 1,
|
803 |
+
"seen": 1,
|
804 |
+
"liked": 1
|
805 |
+
},
|
806 |
+
"184418": {
|
807 |
+
"suggested": 0,
|
808 |
+
"seen": 1,
|
809 |
+
"liked": 1
|
810 |
+
},
|
811 |
+
"136632": {
|
812 |
+
"suggested": 0,
|
813 |
+
"seen": 1,
|
814 |
+
"liked": 1
|
815 |
+
}
|
816 |
+
}
|
817 |
+
},
|
818 |
+
"log": [
|
819 |
+
{
|
820 |
+
"turn id": 1,
|
821 |
+
"user utterance": "",
|
822 |
+
"system response": "Hello.",
|
823 |
+
"dialog history": "",
|
824 |
+
"original user side information": {
|
825 |
+
"user_utterance_raw": "",
|
826 |
+
"dialog_history_raw": "",
|
827 |
+
"messageId": 1086,
|
828 |
+
"timeOffset": 358,
|
829 |
+
"senderWorkerId": 4
|
830 |
+
},
|
831 |
+
"original system side information": {
|
832 |
+
"sys_utterance_raw": "Hello.",
|
833 |
+
"messageId": 1087,
|
834 |
+
"timeOffset": 0,
|
835 |
+
"senderWorkerId": 6
|
836 |
+
}
|
837 |
+
},
|
838 |
+
{
|
839 |
+
"turn id": 2,
|
840 |
+
"user utterance": "Hello. What movie would you suggest to watch.",
|
841 |
+
"system response": "Get Out (2017). Have you seen that movie before?",
|
842 |
+
"dialog history": "<SYSTEM> Hello.",
|
843 |
+
"original user side information": {
|
844 |
+
"user_utterance_raw": "Hello. What movie would you suggest to watch.",
|
845 |
+
"dialog_history_raw": "<SYSTEM> Hello.",
|
846 |
+
"messageId": 1089,
|
847 |
+
"timeOffset": 51,
|
848 |
+
"senderWorkerId": 7
|
849 |
+
},
|
850 |
+
"original system side information": {
|
851 |
+
"sys_utterance_raw": "@184418. Have you seen that movie before?",
|
852 |
+
"messageId": 1092,
|
853 |
+
"timeOffset": 171,
|
854 |
+
"senderWorkerId": 6
|
855 |
+
}
|
856 |
+
},
|
857 |
+
{
|
858 |
+
"turn id": 3,
|
859 |
+
"user utterance": "I love that scary movies. I love Annabelle (2014).",
|
860 |
+
"system response": "Yes I love Annabelle as well. That is a good movie.",
|
861 |
+
"dialog history": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> Get Out (2017). Have you seen that movie before?",
|
862 |
+
"original user side information": {
|
863 |
+
"user_utterance_raw": "I love that scary movies. I love @125431.",
|
864 |
+
"dialog_history_raw": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> @184418. Have you seen that movie before?",
|
865 |
+
"messageId": 1093,
|
866 |
+
"timeOffset": 171,
|
867 |
+
"senderWorkerId": 7
|
868 |
+
},
|
869 |
+
"original system side information": {
|
870 |
+
"sys_utterance_raw": "Yes I love Annabelle as well. That is a good movie.",
|
871 |
+
"messageId": 1095,
|
872 |
+
"timeOffset": 197,
|
873 |
+
"senderWorkerId": 6
|
874 |
+
}
|
875 |
+
},
|
876 |
+
{
|
877 |
+
"turn id": 4,
|
878 |
+
"user utterance": "I never knew a doll could be so scary.",
|
879 |
+
"system response": "Me either. But I love scary movies. What other movies do you like to watch?",
|
880 |
+
"dialog history": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> Get Out (2017). Have you seen that movie before? <USER> I love that scary movies. I love Annabelle (2014). <SYSTEM> Yes I love Annabelle as well. That is a good movie.",
|
881 |
+
"original user side information": {
|
882 |
+
"user_utterance_raw": "I never knew a doll could be so scary.",
|
883 |
+
"dialog_history_raw": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> @184418. Have you seen that movie before? <USER> I love that scary movies. I love @125431. <SYSTEM> Yes I love Annabelle as well. That is a good movie.",
|
884 |
+
"messageId": 1096,
|
885 |
+
"timeOffset": 206,
|
886 |
+
"senderWorkerId": 7
|
887 |
+
},
|
888 |
+
"original system side information": {
|
889 |
+
"sys_utterance_raw": "Me either. But I love scary movies. What other movies do you like to watch?",
|
890 |
+
"messageId": 1098,
|
891 |
+
"timeOffset": 237,
|
892 |
+
"senderWorkerId": 6
|
893 |
+
}
|
894 |
+
},
|
895 |
+
{
|
896 |
+
"turn id": 5,
|
897 |
+
"user utterance": "Funny movies! LIke Girls Trip (2017). What about you.",
|
898 |
+
"system response": "Yes I love that movie. I never get tired of watching it. I like certain action movies li-03i25. I like certain action movies like Fast & Furious (2009).",
|
899 |
+
"dialog history": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> Get Out (2017). Have you seen that movie before? <USER> I love that scary movies. I love Annabelle (2014). <SYSTEM> Yes I love Annabelle as well. That is a good movie. <USER> I never knew a doll could be so scary. <SYSTEM> Me either. But I love scary movies. What other movies do you like to watch?",
|
900 |
+
"original user side information": {
|
901 |
+
"user_utterance_raw": "Funny movies! LIke @204331. What about you.",
|
902 |
+
"dialog_history_raw": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> @184418. Have you seen that movie before? <USER> I love that scary movies. I love @125431. <SYSTEM> Yes I love Annabelle as well. That is a good movie. <USER> I never knew a doll could be so scary. <SYSTEM> Me either. But I love scary movies. What other movies do you like to watch?",
|
903 |
+
"messageId": 1100,
|
904 |
+
"timeOffset": 319,
|
905 |
+
"senderWorkerId": 7
|
906 |
+
},
|
907 |
+
"original system side information": {
|
908 |
+
"sys_utterance_raw": "Yes I love that movie. I never get tired of watching it. I like certain action movies li-03i25. I like certain action movies like @141788.",
|
909 |
+
"messageId": 1103,
|
910 |
+
"timeOffset": 379,
|
911 |
+
"senderWorkerId": 6
|
912 |
+
}
|
913 |
+
},
|
914 |
+
{
|
915 |
+
"turn id": 6,
|
916 |
+
"user utterance": "Me too! I love all those movies. I also like Wonder Woman (2017).",
|
917 |
+
"system response": "Yes Wonder Woman (2017) is a good movie too.",
|
918 |
+
"dialog history": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> Get Out (2017). Have you seen that movie before? <USER> I love that scary movies. I love Annabelle (2014). <SYSTEM> Yes I love Annabelle as well. That is a good movie. <USER> I never knew a doll could be so scary. <SYSTEM> Me either. But I love scary movies. What other movies do you like to watch? <USER> Funny movies! LIke Girls Trip (2017). What about you. <SYSTEM> Yes I love that movie. I never get tired of watching it. I like certain action movies li-03i25. I like certain action movies like Fast & Furious (2009).",
|
919 |
+
"original user side information": {
|
920 |
+
"user_utterance_raw": "Me too! I love all those movies. I also like @119144.",
|
921 |
+
"dialog_history_raw": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> @184418. Have you seen that movie before? <USER> I love that scary movies. I love @125431. <SYSTEM> Yes I love Annabelle as well. That is a good movie. <USER> I never knew a doll could be so scary. <SYSTEM> Me either. But I love scary movies. What other movies do you like to watch? <USER> Funny movies! LIke @204331. What about you. <SYSTEM> Yes I love that movie. I never get tired of watching it. I like certain action movies li-03i25. I like certain action movies like @141788.",
|
922 |
+
"messageId": 1104,
|
923 |
+
"timeOffset": 419,
|
924 |
+
"senderWorkerId": 7
|
925 |
+
},
|
926 |
+
"original system side information": {
|
927 |
+
"sys_utterance_raw": "Yes @119144 is a good movie too.",
|
928 |
+
"messageId": 1105,
|
929 |
+
"timeOffset": 447,
|
930 |
+
"senderWorkerId": 6
|
931 |
+
}
|
932 |
+
},
|
933 |
+
{
|
934 |
+
"turn id": 7,
|
935 |
+
"user utterance": "And also Spider-Man: Homecoming (2017).",
|
936 |
+
"system response": "I haven't seen that movie yet.",
|
937 |
+
"dialog history": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> Get Out (2017). Have you seen that movie before? <USER> I love that scary movies. I love Annabelle (2014). <SYSTEM> Yes I love Annabelle as well. That is a good movie. <USER> I never knew a doll could be so scary. <SYSTEM> Me either. But I love scary movies. What other movies do you like to watch? <USER> Funny movies! LIke Girls Trip (2017). What about you. <SYSTEM> Yes I love that movie. I never get tired of watching it. I like certain action movies li-03i25. I like certain action movies like Fast & Furious (2009). <USER> Me too! I love all those movies. I also like Wonder Woman (2017). <SYSTEM> Yes Wonder Woman (2017) is a good movie too.",
|
938 |
+
"original user side information": {
|
939 |
+
"user_utterance_raw": "And also @136632.",
|
940 |
+
"dialog_history_raw": "<SYSTEM> Hello. <USER> Hello. What movie would you suggest to watch. <SYSTEM> @184418. Have you seen that movie before? <USER> I love that scary movies. I love @125431. <SYSTEM> Yes I love Annabelle as well. That is a good movie. <USER> I never knew a doll could be so scary. <SYSTEM> Me either. But I love scary movies. What other movies do you like to watch? <USER> Funny movies! LIke @204331. What about you. <SYSTEM> Yes I love that movie. I never get tired of watching it. I like certain action movies li-03i25. I like certain action movies like @141788. <USER> Me too! I love all those movies. I also like @119144. <SYSTEM> Yes @119144 is a good movie too.",
|
941 |
+
"messageId": 1106,
|
942 |
+
"timeOffset": 486,
|
943 |
+
"senderWorkerId": 7
|
944 |
+
},
|
945 |
+
"original system side information": {
|
946 |
+
"sys_utterance_raw": "I haven't seen that movie yet.",
|
947 |
+
"messageId": 1107,
|
948 |
+
"timeOffset": 498,
|
949 |
+
"senderWorkerId": 6
|
950 |
+
}
|
951 |
+
}
|
952 |
+
]
|
953 |
+
}
|
954 |
+
}
|
conversational-recommendation-dialogues/Redial/original_examples.json
ADDED
@@ -0,0 +1,848 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"movieMentions": {
|
4 |
+
"203371": "Final Fantasy: The Spirits Within (2001)",
|
5 |
+
"84779": "The Triplets of Belleville (2003)",
|
6 |
+
"122159": "Mary and Max (2009)",
|
7 |
+
"151313": "A Scanner Darkly (2006)",
|
8 |
+
"191602": "Waking Life (2001)",
|
9 |
+
"165710": "The Boss Baby (2017)"
|
10 |
+
},
|
11 |
+
"respondentQuestions": {
|
12 |
+
"203371": {
|
13 |
+
"suggested": 1,
|
14 |
+
"seen": 0,
|
15 |
+
"liked": 1
|
16 |
+
},
|
17 |
+
"84779": {
|
18 |
+
"suggested": 0,
|
19 |
+
"seen": 1,
|
20 |
+
"liked": 1
|
21 |
+
},
|
22 |
+
"122159": {
|
23 |
+
"suggested": 0,
|
24 |
+
"seen": 1,
|
25 |
+
"liked": 1
|
26 |
+
},
|
27 |
+
"151313": {
|
28 |
+
"suggested": 0,
|
29 |
+
"seen": 1,
|
30 |
+
"liked": 1
|
31 |
+
},
|
32 |
+
"191602": {
|
33 |
+
"suggested": 0,
|
34 |
+
"seen": 1,
|
35 |
+
"liked": 1
|
36 |
+
},
|
37 |
+
"165710": {
|
38 |
+
"suggested": 1,
|
39 |
+
"seen": 0,
|
40 |
+
"liked": 1
|
41 |
+
}
|
42 |
+
},
|
43 |
+
"messages": [
|
44 |
+
{
|
45 |
+
"timeOffset": 0,
|
46 |
+
"text": "Hi there, how are you? I'm looking for movie recommendations.",
|
47 |
+
"senderWorkerId": 0,
|
48 |
+
"messageId": 1021
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"timeOffset": 15,
|
52 |
+
"text": "I am doing okay. What kind of movies do you like?",
|
53 |
+
"senderWorkerId": 1,
|
54 |
+
"messageId": 1022
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"timeOffset": 66,
|
58 |
+
"text": "I like animations like @84779 and @191602.",
|
59 |
+
"senderWorkerId": 0,
|
60 |
+
"messageId": 1023
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"timeOffset": 86,
|
64 |
+
"text": "I also enjoy @122159.",
|
65 |
+
"senderWorkerId": 0,
|
66 |
+
"messageId": 1024
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"timeOffset": 95,
|
70 |
+
"text": "Anything artistic.",
|
71 |
+
"senderWorkerId": 0,
|
72 |
+
"messageId": 1025
|
73 |
+
},
|
74 |
+
{
|
75 |
+
"timeOffset": 135,
|
76 |
+
"text": "You might like @165710 that was a good movie.",
|
77 |
+
"senderWorkerId": 1,
|
78 |
+
"messageId": 1026
|
79 |
+
},
|
80 |
+
{
|
81 |
+
"timeOffset": 151,
|
82 |
+
"text": "What's it about?",
|
83 |
+
"senderWorkerId": 0,
|
84 |
+
"messageId": 1027
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"timeOffset": 207,
|
88 |
+
"text": "It has Alec Baldwin it is about a baby that works for a company and gets adopted it is very funny.",
|
89 |
+
"senderWorkerId": 1,
|
90 |
+
"messageId": 1028
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"timeOffset": 238,
|
94 |
+
"text": "That seems like a nice comedy.",
|
95 |
+
"senderWorkerId": 0,
|
96 |
+
"messageId": 1029
|
97 |
+
},
|
98 |
+
{
|
99 |
+
"timeOffset": 272,
|
100 |
+
"text": "Do you have any animated recommendations that are a bit more dramatic? Like @151313 for example.",
|
101 |
+
"senderWorkerId": 0,
|
102 |
+
"messageId": 1030
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"timeOffset": 327,
|
106 |
+
"text": "I like comedies but I prefer films with a little more depth.",
|
107 |
+
"senderWorkerId": 0,
|
108 |
+
"messageId": 1031
|
109 |
+
},
|
110 |
+
{
|
111 |
+
"timeOffset": 467,
|
112 |
+
"text": "That is a tough one but I will remember something.",
|
113 |
+
"senderWorkerId": 1,
|
114 |
+
"messageId": 1032
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"timeOffset": 509,
|
118 |
+
"text": "@203371 was a good one.",
|
119 |
+
"senderWorkerId": 1,
|
120 |
+
"messageId": 1033
|
121 |
+
},
|
122 |
+
{
|
123 |
+
"timeOffset": 564,
|
124 |
+
"text": "Ooh that seems cool! Thanks for the input. I'm ready to submit if you are.",
|
125 |
+
"senderWorkerId": 0,
|
126 |
+
"messageId": 1034
|
127 |
+
},
|
128 |
+
{
|
129 |
+
"timeOffset": 571,
|
130 |
+
"text": "It is animated, sci fi, and has action.",
|
131 |
+
"senderWorkerId": 1,
|
132 |
+
"messageId": 1035
|
133 |
+
},
|
134 |
+
{
|
135 |
+
"timeOffset": 579,
|
136 |
+
"text": "Glad I could help.",
|
137 |
+
"senderWorkerId": 1,
|
138 |
+
"messageId": 1036
|
139 |
+
},
|
140 |
+
{
|
141 |
+
"timeOffset": 581,
|
142 |
+
"text": "Nice.",
|
143 |
+
"senderWorkerId": 0,
|
144 |
+
"messageId": 1037
|
145 |
+
},
|
146 |
+
{
|
147 |
+
"timeOffset": 591,
|
148 |
+
"text": "Take care, cheers!",
|
149 |
+
"senderWorkerId": 0,
|
150 |
+
"messageId": 1038
|
151 |
+
},
|
152 |
+
{
|
153 |
+
"timeOffset": 608,
|
154 |
+
"text": "bye.",
|
155 |
+
"senderWorkerId": 1,
|
156 |
+
"messageId": 1039
|
157 |
+
}
|
158 |
+
],
|
159 |
+
"conversationId": "391",
|
160 |
+
"respondentWorkerId": 1,
|
161 |
+
"initiatorWorkerId": 0,
|
162 |
+
"initiatorQuestions": {
|
163 |
+
"203371": {
|
164 |
+
"suggested": 1,
|
165 |
+
"seen": 0,
|
166 |
+
"liked": 1
|
167 |
+
},
|
168 |
+
"84779": {
|
169 |
+
"suggested": 0,
|
170 |
+
"seen": 1,
|
171 |
+
"liked": 1
|
172 |
+
},
|
173 |
+
"122159": {
|
174 |
+
"suggested": 0,
|
175 |
+
"seen": 1,
|
176 |
+
"liked": 1
|
177 |
+
},
|
178 |
+
"151313": {
|
179 |
+
"suggested": 0,
|
180 |
+
"seen": 1,
|
181 |
+
"liked": 1
|
182 |
+
},
|
183 |
+
"191602": {
|
184 |
+
"suggested": 0,
|
185 |
+
"seen": 1,
|
186 |
+
"liked": 1
|
187 |
+
},
|
188 |
+
"165710": {
|
189 |
+
"suggested": 1,
|
190 |
+
"seen": 0,
|
191 |
+
"liked": 1
|
192 |
+
}
|
193 |
+
}
|
194 |
+
},
|
195 |
+
{
|
196 |
+
"movieMentions": {
|
197 |
+
"196336": "Scarface (1983)",
|
198 |
+
"204322": "South Park",
|
199 |
+
"145455": "Twilight Zone: The Movie (1983)",
|
200 |
+
"114851": "The Godfather ",
|
201 |
+
"128905": "From Dusk till Dawn (1996)",
|
202 |
+
"143189": "Star Wars: Episode II \u2013 Attack of the Clones (2002)",
|
203 |
+
"152242": "Enemy of the State (1998)",
|
204 |
+
"204292": "Star Wars"
|
205 |
+
},
|
206 |
+
"respondentQuestions": {
|
207 |
+
"196336": {
|
208 |
+
"suggested": 0,
|
209 |
+
"seen": 1,
|
210 |
+
"liked": 1
|
211 |
+
},
|
212 |
+
"204322": {
|
213 |
+
"suggested": 0,
|
214 |
+
"seen": 1,
|
215 |
+
"liked": 1
|
216 |
+
},
|
217 |
+
"145455": {
|
218 |
+
"suggested": 1,
|
219 |
+
"seen": 1,
|
220 |
+
"liked": 0
|
221 |
+
},
|
222 |
+
"114851": {
|
223 |
+
"suggested": 0,
|
224 |
+
"seen": 1,
|
225 |
+
"liked": 1
|
226 |
+
},
|
227 |
+
"128905": {
|
228 |
+
"suggested": 1,
|
229 |
+
"seen": 1,
|
230 |
+
"liked": 1
|
231 |
+
},
|
232 |
+
"143189": {
|
233 |
+
"suggested": 1,
|
234 |
+
"seen": 1,
|
235 |
+
"liked": 1
|
236 |
+
},
|
237 |
+
"152242": {
|
238 |
+
"suggested": 1,
|
239 |
+
"seen": 1,
|
240 |
+
"liked": 1
|
241 |
+
},
|
242 |
+
"204292": {
|
243 |
+
"suggested": 0,
|
244 |
+
"seen": 1,
|
245 |
+
"liked": 1
|
246 |
+
}
|
247 |
+
},
|
248 |
+
"messages": [
|
249 |
+
{
|
250 |
+
"timeOffset": 0,
|
251 |
+
"text": "Hi, did you see @196336 ?",
|
252 |
+
"senderWorkerId": 2,
|
253 |
+
"messageId": 1040
|
254 |
+
},
|
255 |
+
{
|
256 |
+
"timeOffset": 19,
|
257 |
+
"text": "Yes it was a pretty good movie.",
|
258 |
+
"senderWorkerId": 1,
|
259 |
+
"messageId": 1041
|
260 |
+
},
|
261 |
+
{
|
262 |
+
"timeOffset": 69,
|
263 |
+
"text": "Then you would like @114851 if you haven't seen it.",
|
264 |
+
"senderWorkerId": 2,
|
265 |
+
"messageId": 1042
|
266 |
+
},
|
267 |
+
{
|
268 |
+
"timeOffset": 102,
|
269 |
+
"text": "You like Sci Fi stuff like @204292 ?",
|
270 |
+
"senderWorkerId": 2,
|
271 |
+
"messageId": 1043
|
272 |
+
},
|
273 |
+
{
|
274 |
+
"timeOffset": 113,
|
275 |
+
"text": "I am more of a @143189 kind of person.",
|
276 |
+
"senderWorkerId": 1,
|
277 |
+
"messageId": 1044
|
278 |
+
},
|
279 |
+
{
|
280 |
+
"timeOffset": 193,
|
281 |
+
"text": "Did you see any of the Star Wars parody movies? @143189 was pretty funny?",
|
282 |
+
"senderWorkerId": 2,
|
283 |
+
"messageId": 1045
|
284 |
+
},
|
285 |
+
{
|
286 |
+
"timeOffset": 231,
|
287 |
+
"text": "I do not think I have seen that one. Who is in it?",
|
288 |
+
"senderWorkerId": 1,
|
289 |
+
"messageId": 1046
|
290 |
+
},
|
291 |
+
{
|
292 |
+
"timeOffset": 243,
|
293 |
+
"text": "Have you seen any cartoon movies like @204322 ?",
|
294 |
+
"senderWorkerId": 2,
|
295 |
+
"messageId": 1047
|
296 |
+
},
|
297 |
+
{
|
298 |
+
"timeOffset": 278,
|
299 |
+
"text": "Yes those are really funny. I think I will watch @143189.",
|
300 |
+
"senderWorkerId": 1,
|
301 |
+
"messageId": 1048
|
302 |
+
},
|
303 |
+
{
|
304 |
+
"timeOffset": 290,
|
305 |
+
"text": "Thanks for the recommendation.",
|
306 |
+
"senderWorkerId": 1,
|
307 |
+
"messageId": 1049
|
308 |
+
},
|
309 |
+
{
|
310 |
+
"timeOffset": 307,
|
311 |
+
"text": "@143189 r Wars Clones is a claymation movie.",
|
312 |
+
"senderWorkerId": 2,
|
313 |
+
"messageId": 1050
|
314 |
+
},
|
315 |
+
{
|
316 |
+
"timeOffset": 326,
|
317 |
+
"text": "That sounds great.",
|
318 |
+
"senderWorkerId": 1,
|
319 |
+
"messageId": 1051
|
320 |
+
},
|
321 |
+
{
|
322 |
+
"timeOffset": 379,
|
323 |
+
"text": "It is. You like blood and gore movies? If so, you might like @128905 .",
|
324 |
+
"senderWorkerId": 2,
|
325 |
+
"messageId": 1052
|
326 |
+
},
|
327 |
+
{
|
328 |
+
"timeOffset": 418,
|
329 |
+
"text": "No I do not like that genre of movie. The star wars movie is perfect for me.",
|
330 |
+
"senderWorkerId": 1,
|
331 |
+
"messageId": 1053
|
332 |
+
},
|
333 |
+
{
|
334 |
+
"timeOffset": 462,
|
335 |
+
"text": "You not a @145455 fan are you? Those films creep me out.",
|
336 |
+
"senderWorkerId": 2,
|
337 |
+
"messageId": 1054
|
338 |
+
},
|
339 |
+
{
|
340 |
+
"timeOffset": 521,
|
341 |
+
"text": "I found the movie I would like to watch. Thanks for all the help.",
|
342 |
+
"senderWorkerId": 1,
|
343 |
+
"messageId": 1055
|
344 |
+
},
|
345 |
+
{
|
346 |
+
"timeOffset": 545,
|
347 |
+
"text": "Oh okay. @152242 was a good tech film if you're into that genre.",
|
348 |
+
"senderWorkerId": 2,
|
349 |
+
"messageId": 1056
|
350 |
+
},
|
351 |
+
{
|
352 |
+
"timeOffset": 570,
|
353 |
+
"text": "How do we submit?",
|
354 |
+
"senderWorkerId": 2,
|
355 |
+
"messageId": 1057
|
356 |
+
},
|
357 |
+
{
|
358 |
+
"timeOffset": 609,
|
359 |
+
"text": "click the hide/show movie forms and fill the movie questions rows then it will let you submit.",
|
360 |
+
"senderWorkerId": 1,
|
361 |
+
"messageId": 1058
|
362 |
+
},
|
363 |
+
{
|
364 |
+
"timeOffset": 623,
|
365 |
+
"text": "I hope you have a great night. bye.",
|
366 |
+
"senderWorkerId": 1,
|
367 |
+
"messageId": 1059
|
368 |
+
},
|
369 |
+
{
|
370 |
+
"timeOffset": 628,
|
371 |
+
"text": "Thanks.",
|
372 |
+
"senderWorkerId": 2,
|
373 |
+
"messageId": 1060
|
374 |
+
}
|
375 |
+
],
|
376 |
+
"conversationId": "395",
|
377 |
+
"respondentWorkerId": 1,
|
378 |
+
"initiatorWorkerId": 2,
|
379 |
+
"initiatorQuestions": []
|
380 |
+
},
|
381 |
+
{
|
382 |
+
"movieMentions": {
|
383 |
+
"79320": "Contact (2009)",
|
384 |
+
"84001": "Donnie Darko (2001)",
|
385 |
+
"155969": "The Martian (2015)",
|
386 |
+
"90950": "Avatar (2009)",
|
387 |
+
"163606": "Avatar ",
|
388 |
+
"147598": "Indiana Jones and the Kingdom of the Crystal Skull (2008)",
|
389 |
+
"204292": "Star Wars"
|
390 |
+
},
|
391 |
+
"respondentQuestions": {
|
392 |
+
"79320": {
|
393 |
+
"suggested": 0,
|
394 |
+
"seen": 1,
|
395 |
+
"liked": 1
|
396 |
+
},
|
397 |
+
"84001": {
|
398 |
+
"suggested": 1,
|
399 |
+
"seen": 1,
|
400 |
+
"liked": 1
|
401 |
+
},
|
402 |
+
"155969": {
|
403 |
+
"suggested": 1,
|
404 |
+
"seen": 1,
|
405 |
+
"liked": 1
|
406 |
+
},
|
407 |
+
"90950": {
|
408 |
+
"suggested": 0,
|
409 |
+
"seen": 1,
|
410 |
+
"liked": 1
|
411 |
+
},
|
412 |
+
"163606": {
|
413 |
+
"suggested": 0,
|
414 |
+
"seen": 1,
|
415 |
+
"liked": 1
|
416 |
+
},
|
417 |
+
"147598": {
|
418 |
+
"suggested": 0,
|
419 |
+
"seen": 0,
|
420 |
+
"liked": 1
|
421 |
+
},
|
422 |
+
"204292": {
|
423 |
+
"suggested": 0,
|
424 |
+
"seen": 1,
|
425 |
+
"liked": 1
|
426 |
+
}
|
427 |
+
},
|
428 |
+
"messages": [
|
429 |
+
{
|
430 |
+
"timeOffset": 0,
|
431 |
+
"text": "@163606 It is a nice movie. What say?",
|
432 |
+
"senderWorkerId": 3,
|
433 |
+
"messageId": 1061
|
434 |
+
},
|
435 |
+
{
|
436 |
+
"timeOffset": 31,
|
437 |
+
"text": "@90950 Was a marvelous 3D experience personally for me.",
|
438 |
+
"senderWorkerId": 3,
|
439 |
+
"messageId": 1062
|
440 |
+
},
|
441 |
+
{
|
442 |
+
"timeOffset": 56,
|
443 |
+
"text": "I really liked that movie but haven't seen it in a while. Are you a Michelle Rodriquez fan?",
|
444 |
+
"senderWorkerId": 1,
|
445 |
+
"messageId": 1063
|
446 |
+
},
|
447 |
+
{
|
448 |
+
"timeOffset": 110,
|
449 |
+
"text": "No. I am not. I like sci-fi movies. Have you watched @155969.",
|
450 |
+
"senderWorkerId": 3,
|
451 |
+
"messageId": 1064
|
452 |
+
},
|
453 |
+
{
|
454 |
+
"timeOffset": 146,
|
455 |
+
"text": "My another favorite sci-fi movies are @79320 and @84001.",
|
456 |
+
"senderWorkerId": 3,
|
457 |
+
"messageId": 1065
|
458 |
+
},
|
459 |
+
{
|
460 |
+
"timeOffset": 159,
|
461 |
+
"text": "No I have not seen that one but have seen all the @204292 movies. Do you like those.",
|
462 |
+
"senderWorkerId": 1,
|
463 |
+
"messageId": 1066
|
464 |
+
},
|
465 |
+
{
|
466 |
+
"timeOffset": 181,
|
467 |
+
"text": "Yes, I love @204292 series.",
|
468 |
+
"senderWorkerId": 3,
|
469 |
+
"messageId": 1067
|
470 |
+
},
|
471 |
+
{
|
472 |
+
"timeOffset": 206,
|
473 |
+
"text": "In fact I am excited about the upcoming @204292.",
|
474 |
+
"senderWorkerId": 3,
|
475 |
+
"messageId": 1068
|
476 |
+
},
|
477 |
+
{
|
478 |
+
"timeOffset": 231,
|
479 |
+
"text": "What are you favorite movies?",
|
480 |
+
"senderWorkerId": 3,
|
481 |
+
"messageId": 1069
|
482 |
+
},
|
483 |
+
{
|
484 |
+
"timeOffset": 249,
|
485 |
+
"text": "I am too I think you will like @147598.",
|
486 |
+
"senderWorkerId": 1,
|
487 |
+
"messageId": 1070
|
488 |
+
},
|
489 |
+
{
|
490 |
+
"timeOffset": 275,
|
491 |
+
"text": "I have not seen @147598.",
|
492 |
+
"senderWorkerId": 3,
|
493 |
+
"messageId": 1071
|
494 |
+
},
|
495 |
+
{
|
496 |
+
"timeOffset": 283,
|
497 |
+
"text": "I will watch it soon.",
|
498 |
+
"senderWorkerId": 3,
|
499 |
+
"messageId": 1072
|
500 |
+
},
|
501 |
+
{
|
502 |
+
"timeOffset": 312,
|
503 |
+
"text": "It is a good movie if you like Star wars you should like it.",
|
504 |
+
"senderWorkerId": 1,
|
505 |
+
"messageId": 1073
|
506 |
+
},
|
507 |
+
{
|
508 |
+
"timeOffset": 344,
|
509 |
+
"text": "Great. I will watch those. Now, let us submit this. Nice talking to you, have a nice day!",
|
510 |
+
"senderWorkerId": 3,
|
511 |
+
"messageId": 1074
|
512 |
+
},
|
513 |
+
{
|
514 |
+
"timeOffset": 361,
|
515 |
+
"text": "Thanks it was nice talking to you too bye.",
|
516 |
+
"senderWorkerId": 1,
|
517 |
+
"messageId": 1075
|
518 |
+
}
|
519 |
+
],
|
520 |
+
"conversationId": "397",
|
521 |
+
"respondentWorkerId": 1,
|
522 |
+
"initiatorWorkerId": 3,
|
523 |
+
"initiatorQuestions": {
|
524 |
+
"79320": {
|
525 |
+
"suggested": 0,
|
526 |
+
"seen": 0,
|
527 |
+
"liked": 1
|
528 |
+
},
|
529 |
+
"84001": {
|
530 |
+
"suggested": 0,
|
531 |
+
"seen": 0,
|
532 |
+
"liked": 1
|
533 |
+
},
|
534 |
+
"155969": {
|
535 |
+
"suggested": 0,
|
536 |
+
"seen": 0,
|
537 |
+
"liked": 1
|
538 |
+
},
|
539 |
+
"90950": {
|
540 |
+
"suggested": 0,
|
541 |
+
"seen": 0,
|
542 |
+
"liked": 1
|
543 |
+
},
|
544 |
+
"163606": {
|
545 |
+
"suggested": 0,
|
546 |
+
"seen": 0,
|
547 |
+
"liked": 0
|
548 |
+
},
|
549 |
+
"147598": {
|
550 |
+
"suggested": 1,
|
551 |
+
"seen": 1,
|
552 |
+
"liked": 1
|
553 |
+
},
|
554 |
+
"204292": {
|
555 |
+
"suggested": 1,
|
556 |
+
"seen": 1,
|
557 |
+
"liked": 1
|
558 |
+
}
|
559 |
+
}
|
560 |
+
},
|
561 |
+
{
|
562 |
+
"movieMentions": {
|
563 |
+
"188302": "Ever After (1998)",
|
564 |
+
"195904": "Charlie's Angels ",
|
565 |
+
"91313": "Blended (2014)",
|
566 |
+
"157394": "The Wedding Singer (1998)",
|
567 |
+
"115908": "50 First Dates (2004)"
|
568 |
+
},
|
569 |
+
"respondentQuestions": [],
|
570 |
+
"messages": [
|
571 |
+
{
|
572 |
+
"timeOffset": 0,
|
573 |
+
"text": "I'm in the mood to watch a romantic comedy. What do you suggest?",
|
574 |
+
"senderWorkerId": 4,
|
575 |
+
"messageId": 1076
|
576 |
+
},
|
577 |
+
{
|
578 |
+
"timeOffset": 20,
|
579 |
+
"text": "@115908.",
|
580 |
+
"senderWorkerId": 5,
|
581 |
+
"messageId": 1077
|
582 |
+
},
|
583 |
+
{
|
584 |
+
"timeOffset": 36,
|
585 |
+
"text": "Have you seen that one?",
|
586 |
+
"senderWorkerId": 5,
|
587 |
+
"messageId": 1078
|
588 |
+
},
|
589 |
+
{
|
590 |
+
"timeOffset": 91,
|
591 |
+
"text": "Oh, I've seen that one. I really like Drew Barrymore.",
|
592 |
+
"senderWorkerId": 4,
|
593 |
+
"messageId": 1079
|
594 |
+
},
|
595 |
+
{
|
596 |
+
"timeOffset": 144,
|
597 |
+
"text": "Yes she is good, I am looking for a super hero movie myself.",
|
598 |
+
"senderWorkerId": 5,
|
599 |
+
"messageId": 1080
|
600 |
+
},
|
601 |
+
{
|
602 |
+
"timeOffset": 169,
|
603 |
+
"text": "Do you like @157394.",
|
604 |
+
"senderWorkerId": 5,
|
605 |
+
"messageId": 1081
|
606 |
+
},
|
607 |
+
{
|
608 |
+
"timeOffset": 188,
|
609 |
+
"text": "Drew Barrymore was in @195904. Do you think that counts as a superhero movie?",
|
610 |
+
"senderWorkerId": 4,
|
611 |
+
"messageId": 1082
|
612 |
+
},
|
613 |
+
{
|
614 |
+
"timeOffset": 199,
|
615 |
+
"text": "Yeah, definitely. I liked that one.",
|
616 |
+
"senderWorkerId": 5,
|
617 |
+
"messageId": 1083
|
618 |
+
},
|
619 |
+
{
|
620 |
+
"timeOffset": 300,
|
621 |
+
"text": "Oh, @157394 is a good one. Sandler and Barrymore are great together. I'm very excited to finally see @91313.",
|
622 |
+
"senderWorkerId": 4,
|
623 |
+
"messageId": 1084
|
624 |
+
},
|
625 |
+
{
|
626 |
+
"timeOffset": 320,
|
627 |
+
"text": "Oh I have heard good things about that film.",
|
628 |
+
"senderWorkerId": 5,
|
629 |
+
"messageId": 1085
|
630 |
+
},
|
631 |
+
{
|
632 |
+
"timeOffset": 358,
|
633 |
+
"text": "I also liked Barrymore in @188302.",
|
634 |
+
"senderWorkerId": 4,
|
635 |
+
"messageId": 1086
|
636 |
+
},
|
637 |
+
{
|
638 |
+
"timeOffset": 458,
|
639 |
+
"text": "That is one film I should definitely check out.",
|
640 |
+
"senderWorkerId": 5,
|
641 |
+
"messageId": 1090
|
642 |
+
}
|
643 |
+
],
|
644 |
+
"conversationId": "405",
|
645 |
+
"respondentWorkerId": 5,
|
646 |
+
"initiatorWorkerId": 4,
|
647 |
+
"initiatorQuestions": []
|
648 |
+
},
|
649 |
+
{
|
650 |
+
"movieMentions": {
|
651 |
+
"119144": "Wonder Woman (2017)",
|
652 |
+
"125431": "Annabelle (2014)",
|
653 |
+
"141788": "Fast & Furious (2009)",
|
654 |
+
"204331": "Girls Trip (2017)",
|
655 |
+
"184418": "Get Out (2017)",
|
656 |
+
"136632": "Spider-Man: Homecoming (2017)"
|
657 |
+
},
|
658 |
+
"respondentQuestions": {
|
659 |
+
"119144": {
|
660 |
+
"suggested": 0,
|
661 |
+
"seen": 1,
|
662 |
+
"liked": 1
|
663 |
+
},
|
664 |
+
"125431": {
|
665 |
+
"suggested": 0,
|
666 |
+
"seen": 1,
|
667 |
+
"liked": 1
|
668 |
+
},
|
669 |
+
"141788": {
|
670 |
+
"suggested": 1,
|
671 |
+
"seen": 1,
|
672 |
+
"liked": 1
|
673 |
+
},
|
674 |
+
"204331": {
|
675 |
+
"suggested": 0,
|
676 |
+
"seen": 1,
|
677 |
+
"liked": 1
|
678 |
+
},
|
679 |
+
"184418": {
|
680 |
+
"suggested": 1,
|
681 |
+
"seen": 1,
|
682 |
+
"liked": 1
|
683 |
+
},
|
684 |
+
"136632": {
|
685 |
+
"suggested": 0,
|
686 |
+
"seen": 0,
|
687 |
+
"liked": 1
|
688 |
+
}
|
689 |
+
},
|
690 |
+
"messages": [
|
691 |
+
{
|
692 |
+
"timeOffset": 0,
|
693 |
+
"text": "Hello.",
|
694 |
+
"senderWorkerId": 6,
|
695 |
+
"messageId": 1087
|
696 |
+
},
|
697 |
+
{
|
698 |
+
"timeOffset": 24,
|
699 |
+
"text": "Hello.",
|
700 |
+
"senderWorkerId": 7,
|
701 |
+
"messageId": 1088
|
702 |
+
},
|
703 |
+
{
|
704 |
+
"timeOffset": 51,
|
705 |
+
"text": "What movie would you suggest to watch.",
|
706 |
+
"senderWorkerId": 7,
|
707 |
+
"messageId": 1089
|
708 |
+
},
|
709 |
+
{
|
710 |
+
"timeOffset": 116,
|
711 |
+
"text": "@184418.",
|
712 |
+
"senderWorkerId": 6,
|
713 |
+
"messageId": 1091
|
714 |
+
},
|
715 |
+
{
|
716 |
+
"timeOffset": 171,
|
717 |
+
"text": "Have you seen that movie before?",
|
718 |
+
"senderWorkerId": 6,
|
719 |
+
"messageId": 1092
|
720 |
+
},
|
721 |
+
{
|
722 |
+
"timeOffset": 171,
|
723 |
+
"text": "I love that scary movies. I love @125431.",
|
724 |
+
"senderWorkerId": 7,
|
725 |
+
"messageId": 1093
|
726 |
+
},
|
727 |
+
{
|
728 |
+
"timeOffset": 185,
|
729 |
+
"text": "Yes I love Annabelle as well.",
|
730 |
+
"senderWorkerId": 6,
|
731 |
+
"messageId": 1094
|
732 |
+
},
|
733 |
+
{
|
734 |
+
"timeOffset": 197,
|
735 |
+
"text": "That is a good movie.",
|
736 |
+
"senderWorkerId": 6,
|
737 |
+
"messageId": 1095
|
738 |
+
},
|
739 |
+
{
|
740 |
+
"timeOffset": 206,
|
741 |
+
"text": "I never knew a doll could be so scary.",
|
742 |
+
"senderWorkerId": 7,
|
743 |
+
"messageId": 1096
|
744 |
+
},
|
745 |
+
{
|
746 |
+
"timeOffset": 228,
|
747 |
+
"text": "Me either. But I love scary movies.",
|
748 |
+
"senderWorkerId": 6,
|
749 |
+
"messageId": 1097
|
750 |
+
},
|
751 |
+
{
|
752 |
+
"timeOffset": 237,
|
753 |
+
"text": "What other movies do you like to watch?",
|
754 |
+
"senderWorkerId": 6,
|
755 |
+
"messageId": 1098
|
756 |
+
},
|
757 |
+
{
|
758 |
+
"timeOffset": 312,
|
759 |
+
"text": "Funny movies! LIke @204331.",
|
760 |
+
"senderWorkerId": 7,
|
761 |
+
"messageId": 1099
|
762 |
+
},
|
763 |
+
{
|
764 |
+
"timeOffset": 319,
|
765 |
+
"text": "What about you.",
|
766 |
+
"senderWorkerId": 7,
|
767 |
+
"messageId": 1100
|
768 |
+
},
|
769 |
+
{
|
770 |
+
"timeOffset": 338,
|
771 |
+
"text": "Yes I love that movie. I never get tired of watching it.",
|
772 |
+
"senderWorkerId": 6,
|
773 |
+
"messageId": 1101
|
774 |
+
},
|
775 |
+
{
|
776 |
+
"timeOffset": 353,
|
777 |
+
"text": "I like certain action movies li-03i25.",
|
778 |
+
"senderWorkerId": 6,
|
779 |
+
"messageId": 1102
|
780 |
+
},
|
781 |
+
{
|
782 |
+
"timeOffset": 379,
|
783 |
+
"text": "I like certain action movies like @141788.",
|
784 |
+
"senderWorkerId": 6,
|
785 |
+
"messageId": 1103
|
786 |
+
},
|
787 |
+
{
|
788 |
+
"timeOffset": 419,
|
789 |
+
"text": "Me too! I love all those movies. I also like @119144.",
|
790 |
+
"senderWorkerId": 7,
|
791 |
+
"messageId": 1104
|
792 |
+
},
|
793 |
+
{
|
794 |
+
"timeOffset": 447,
|
795 |
+
"text": "Yes @119144 is a good movie too.",
|
796 |
+
"senderWorkerId": 6,
|
797 |
+
"messageId": 1105
|
798 |
+
},
|
799 |
+
{
|
800 |
+
"timeOffset": 486,
|
801 |
+
"text": "And also @136632.",
|
802 |
+
"senderWorkerId": 7,
|
803 |
+
"messageId": 1106
|
804 |
+
},
|
805 |
+
{
|
806 |
+
"timeOffset": 498,
|
807 |
+
"text": "I haven't seen that movie yet.",
|
808 |
+
"senderWorkerId": 6,
|
809 |
+
"messageId": 1107
|
810 |
+
}
|
811 |
+
],
|
812 |
+
"conversationId": "407",
|
813 |
+
"respondentWorkerId": 6,
|
814 |
+
"initiatorWorkerId": 7,
|
815 |
+
"initiatorQuestions": {
|
816 |
+
"119144": {
|
817 |
+
"suggested": 0,
|
818 |
+
"seen": 1,
|
819 |
+
"liked": 1
|
820 |
+
},
|
821 |
+
"125431": {
|
822 |
+
"suggested": 1,
|
823 |
+
"seen": 1,
|
824 |
+
"liked": 1
|
825 |
+
},
|
826 |
+
"141788": {
|
827 |
+
"suggested": 0,
|
828 |
+
"seen": 1,
|
829 |
+
"liked": 1
|
830 |
+
},
|
831 |
+
"204331": {
|
832 |
+
"suggested": 1,
|
833 |
+
"seen": 1,
|
834 |
+
"liked": 1
|
835 |
+
},
|
836 |
+
"184418": {
|
837 |
+
"suggested": 0,
|
838 |
+
"seen": 1,
|
839 |
+
"liked": 1
|
840 |
+
},
|
841 |
+
"136632": {
|
842 |
+
"suggested": 0,
|
843 |
+
"seen": 1,
|
844 |
+
"liked": 1
|
845 |
+
}
|
846 |
+
}
|
847 |
+
}
|
848 |
+
]
|
conversational-recommendation-dialogues/SalesBot/README.md
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# SalesBot: Transitioning from Chit-Chat to Task-Oriented Dialogues
|
2 |
+
|
3 |
+
## Framework
|
4 |
+
<p align="center">
|
5 |
+
<img src="img/framework.png" width="100%" />
|
6 |
+
</p>
|
7 |
+
This paper focuses on investigating the conversations starting from open-domain social chatting and then gradually transitioning to task-oriented purposes, and releases a large-scale dataset with detailed annotations for encouraging this research direction. To achieve this goal, this paper proposes a framework to automatically generate many dialogues without human involvement, in which any powerful open-domain dialogue generation model can be easily leveraged.
|
8 |
+
|
9 |
+
## Dependency
|
10 |
+
Check the packages needed or simply run the command
|
11 |
+
```console
|
12 |
+
conda env create -f environment.yml
|
13 |
+
```
|
14 |
+
|
15 |
+
## Data
|
16 |
+
* selfchat:
|
17 |
+
```console
|
18 |
+
mkdir selfchat
|
19 |
+
parlai self_chat --model-file zoo:blender/blender_1Bdistill/model --inference nucleus --num-self-chats 20 --task blended_skill_talk --include-personas True --include-initial-utterances True --outfile selfchat/merge_sgd_20.json
|
20 |
+
parlai self_chat --model-file zoo:blender/blender_1Bdistill/model --inference nucleus --num-self-chats 20 --task blended_skill_talk --include-personas True --include-initial-utterances True --outfile selfchat/simulators_20.json
|
21 |
+
```
|
22 |
+
* intent detection model:
|
23 |
+
```console
|
24 |
+
python3 qa_inference.py --data_file selfchat/merge_sgd_20.jsonl --output_file merge_sgd_intent.json --device 0
|
25 |
+
python3 qa_inference.py --data_file selfchat/simulators_20.jsonl --output_file simulators_intent.json --device 0
|
26 |
+
```
|
27 |
+
* task-oriented simulators:
|
28 |
+
```console
|
29 |
+
python3 combine_simulators.py simulators_intent.json
|
30 |
+
```
|
31 |
+
* merge SGD:
|
32 |
+
```console
|
33 |
+
# SGD_delex is the version preprocessed by "ACCENTOR: Adding Chit-Chat to Enhance Task-Oriented Dialogues"
|
34 |
+
unzip SGD_delex
|
35 |
+
mkdir sgd_intent_dialog
|
36 |
+
python3 collect_sgd_intent.py SGD_delex
|
37 |
+
python3 combine_sgd.py merge_sgd_intent.json
|
38 |
+
|
39 |
+
```
|
40 |
+
* transition:
|
41 |
+
```console
|
42 |
+
python3 transition.py combine_sgd.json
|
43 |
+
python3 transition.py combine_simulators.json
|
44 |
+
```
|
45 |
+
|
46 |
+
## Citation
|
47 |
+
|
48 |
+
Please cite our paper if you use SalesBot in your work:
|
49 |
+
|
50 |
+
```bibtex
|
51 |
+
@inproceedings{chiu2022salesbot,
|
52 |
+
title={{SalesBot}: Transitioning from Chit-Chat to Task-Oriented Dialogues},
|
53 |
+
author={Chiu, Ssu and Li, Maolin and Lin, Yen-Ting and Chen, Yun-Nung},
|
54 |
+
booktitle={Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (ACL)},
|
55 |
+
year={2022}
|
56 |
+
}
|
57 |
+
```
|
conversational-recommendation-dialogues/SalesBot/converted_examples.json
ADDED
@@ -0,0 +1,449 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"SalesBot--train--1": {
|
3 |
+
"original dialog id": "simulateTOD_0001",
|
4 |
+
"dialog index": 1,
|
5 |
+
"original dialog info": {
|
6 |
+
"intent": {
|
7 |
+
"type": [
|
8 |
+
"FindMovies"
|
9 |
+
],
|
10 |
+
"position": 7
|
11 |
+
},
|
12 |
+
"transition_candidates": [
|
13 |
+
"Is there anything else I can do for you?",
|
14 |
+
"What do you think of the movie?",
|
15 |
+
"Are you planning on buying tickets now?",
|
16 |
+
"Could you please confirm that you like to play it. Can I tell you anything else? Is there anything else I can help you with?"
|
17 |
+
]
|
18 |
+
},
|
19 |
+
"log": [
|
20 |
+
{
|
21 |
+
"turn id": 1,
|
22 |
+
"user utterance": "It's a Toyota Corolla. I love it. How about you?",
|
23 |
+
"system response": "I drive a Honda Civic. It's the best car I've ever owned.",
|
24 |
+
"dialog history": "",
|
25 |
+
"original user side information": {},
|
26 |
+
"original system side information": {}
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"turn id": 2,
|
30 |
+
"user utterance": "I love Hondas. They're so reliable. Do you have any hobbies?",
|
31 |
+
"system response": "I like to write poetry and donate my old clothes. What do you like to do?",
|
32 |
+
"dialog history": "<USER> It's a Toyota Corolla. I love it. How about you? <SYSTEM> I drive a Honda Civic. It's the best car I've ever owned.",
|
33 |
+
"original user side information": {},
|
34 |
+
"original system side information": {}
|
35 |
+
},
|
36 |
+
{
|
37 |
+
"turn id": 3,
|
38 |
+
"user utterance": "I love to read Stephen King books. He's one of my favorite authors.",
|
39 |
+
"system response": "I haven't read any of his books, but I've heard good things. What's your favorite book of his?",
|
40 |
+
"dialog history": "<USER> It's a Toyota Corolla. I love it. How about you? <SYSTEM> I drive a Honda Civic. It's the best car I've ever owned. <USER> I love Hondas. They're so reliable. Do you have any hobbies? <SYSTEM> I like to write poetry and donate my old clothes. What do you like to do?",
|
41 |
+
"original user side information": {},
|
42 |
+
"original system side information": {}
|
43 |
+
},
|
44 |
+
{
|
45 |
+
"turn id": 4,
|
46 |
+
"user utterance": "My favorite of his is The Shining. Have you seen the movie? It came out in 1997.",
|
47 |
+
"system response": "I've seen it, but it's been so long that I don't remember much about it.",
|
48 |
+
"dialog history": "<USER> It's a Toyota Corolla. I love it. How about you? <SYSTEM> I drive a Honda Civic. It's the best car I've ever owned. <USER> I love Hondas. They're so reliable. Do you have any hobbies? <SYSTEM> I like to write poetry and donate my old clothes. What do you like to do? <USER> I love to read Stephen King books. He's one of my favorite authors. <SYSTEM> I haven't read any of his books, but I've heard good things. What's your favorite book of his?",
|
49 |
+
"original user side information": {},
|
50 |
+
"original system side information": {}
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"turn id": 5,
|
54 |
+
"user utterance": "Is there anything else I can do for you?",
|
55 |
+
"system response": "Yes, I'd like to find an Adventure movie.",
|
56 |
+
"dialog history": "<USER> It's a Toyota Corolla. I love it. How about you? <SYSTEM> I drive a Honda Civic. It's the best car I've ever owned. <USER> I love Hondas. They're so reliable. Do you have any hobbies? <SYSTEM> I like to write poetry and donate my old clothes. What do you like to do? <USER> I love to read Stephen King books. He's one of my favorite authors. <SYSTEM> I haven't read any of his books, but I've heard good things. What's your favorite book of his? <USER> My favorite of his is The Shining. Have you seen the movie? It came out in 1997. <SYSTEM> I've seen it, but it's been so long that I don't remember much about it.",
|
57 |
+
"original user side information": {},
|
58 |
+
"original system side information": {}
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"turn id": 6,
|
62 |
+
"user utterance": "I found [count] movie you might like. How about [title]?",
|
63 |
+
"system response": "The Aftermath sounds great. That's all I need for now.",
|
64 |
+
"dialog history": "<USER> It's a Toyota Corolla. I love it. How about you? <SYSTEM> I drive a Honda Civic. It's the best car I've ever owned. <USER> I love Hondas. They're so reliable. Do you have any hobbies? <SYSTEM> I like to write poetry and donate my old clothes. What do you like to do? <USER> I love to read Stephen King books. He's one of my favorite authors. <SYSTEM> I haven't read any of his books, but I've heard good things. What's your favorite book of his? <USER> My favorite of his is The Shining. Have you seen the movie? It came out in 1997. <SYSTEM> I've seen it, but it's been so long that I don't remember much about it. <USER> Is there anything else I can do for you? <SYSTEM> Yes, I'd like to find an Adventure movie.",
|
65 |
+
"original user side information": {},
|
66 |
+
"original system side information": {}
|
67 |
+
},
|
68 |
+
{
|
69 |
+
"turn id": 7,
|
70 |
+
"user utterance": "Okay, have a great day. I hope you enjoy the movie. Bye.!.",
|
71 |
+
"system response": "",
|
72 |
+
"dialog history": "<USER> It's a Toyota Corolla. I love it. How about you? <SYSTEM> I drive a Honda Civic. It's the best car I've ever owned. <USER> I love Hondas. They're so reliable. Do you have any hobbies? <SYSTEM> I like to write poetry and donate my old clothes. What do you like to do? <USER> I love to read Stephen King books. He's one of my favorite authors. <SYSTEM> I haven't read any of his books, but I've heard good things. What's your favorite book of his? <USER> My favorite of his is The Shining. Have you seen the movie? It came out in 1997. <SYSTEM> I've seen it, but it's been so long that I don't remember much about it. <USER> Is there anything else I can do for you? <SYSTEM> Yes, I'd like to find an Adventure movie. <USER> I found [count] movie you might like. How about [title]? <SYSTEM> The Aftermath sounds great. That's all I need for now.",
|
73 |
+
"original user side information": {},
|
74 |
+
"original system side information": {}
|
75 |
+
}
|
76 |
+
],
|
77 |
+
"external knowledge non-flat": {
|
78 |
+
"metadata": {},
|
79 |
+
"slots and values": {},
|
80 |
+
"intents": {}
|
81 |
+
},
|
82 |
+
"external knowledge": "",
|
83 |
+
"dst knowledge": "",
|
84 |
+
"intent knowledge": "",
|
85 |
+
"prompt": [
|
86 |
+
"This is a bot helping users to find a tourist attraction. Given the dialog context and external database, please generate a relevant system response for the user.",
|
87 |
+
"This bot assists users to find a tourist attraction. Based on the dialogue context and information from the external database, please generate an appropriate response for the user.",
|
88 |
+
"This bot helps users to find a tourist attraction. Provide a suitable response to the user, keeping in mind the conversation history and accessible external data.",
|
89 |
+
"The purpose of this bot is to assist users to find a tourist attraction. Considering the dialogue context and the information available in the external knowledge, please provide a fitting response for the user.",
|
90 |
+
"This bot is designed to help users find a tourist attraction. By utilizing the current dialog context and external resources, generate an appropriate response for the user."
|
91 |
+
]
|
92 |
+
},
|
93 |
+
"SalesBot--train--2": {
|
94 |
+
"original dialog id": "simulateTOD_0002",
|
95 |
+
"dialog index": 2,
|
96 |
+
"original dialog info": {
|
97 |
+
"intent": {
|
98 |
+
"type": [
|
99 |
+
"FindAttractions"
|
100 |
+
],
|
101 |
+
"position": 1
|
102 |
+
},
|
103 |
+
"transition_candidates": [
|
104 |
+
"Where would you like to surf?",
|
105 |
+
"What is your favorite city on your calendar?",
|
106 |
+
"What is your location? I found [count] beaches that may be your closest. There are [count] beaches. What do you think about that?",
|
107 |
+
"No, I would recommend a good place for you to search, or a beach you like?"
|
108 |
+
]
|
109 |
+
},
|
110 |
+
"log": [
|
111 |
+
{
|
112 |
+
"turn id": 1,
|
113 |
+
"user utterance": "I'm going surfing. I love it. What do you like to do on your free time?",
|
114 |
+
"system response": "I like to garden and spend time with my family. Do you have a favorite place to surf?",
|
115 |
+
"dialog history": "",
|
116 |
+
"original user side information": {},
|
117 |
+
"original system side information": {}
|
118 |
+
},
|
119 |
+
{
|
120 |
+
"turn id": 2,
|
121 |
+
"user utterance": "Where would you like to surf?",
|
122 |
+
"system response": "I'd like to find a garden in San Francisco.",
|
123 |
+
"dialog history": "<USER> I'm going surfing. I love it. What do you like to do on your free time? <SYSTEM> I like to garden and spend time with my family. Do you have a favorite place to surf?",
|
124 |
+
"original user side information": {},
|
125 |
+
"original system side information": {}
|
126 |
+
},
|
127 |
+
{
|
128 |
+
"turn id": 3,
|
129 |
+
"user utterance": "I found [count] attractions you might like. How about a park called [attraction_name]?",
|
130 |
+
"system response": "Sure, that sounds good.",
|
131 |
+
"dialog history": "<USER> I'm going surfing. I love it. What do you like to do on your free time? <SYSTEM> I like to garden and spend time with my family. Do you have a favorite place to surf? <USER> Where would you like to surf? <SYSTEM> I'd like to find a garden in San Francisco.",
|
132 |
+
"original user side information": {},
|
133 |
+
"original system side information": {}
|
134 |
+
},
|
135 |
+
{
|
136 |
+
"turn id": 4,
|
137 |
+
"user utterance": "You should check out the [category] known as the park, called the Attractionname.",
|
138 |
+
"system response": "Okay, great. That's all I need for now.",
|
139 |
+
"dialog history": "<USER> I'm going surfing. I love it. What do you like to do on your free time? <SYSTEM> I like to garden and spend time with my family. Do you have a favorite place to surf? <USER> Where would you like to surf? <SYSTEM> I'd like to find a garden in San Francisco. <USER> I found [count] attractions you might like. How about a park called [attraction_name]? <SYSTEM> Sure, that sounds good.",
|
140 |
+
"original user side information": {},
|
141 |
+
"original system side information": {}
|
142 |
+
},
|
143 |
+
{
|
144 |
+
"turn id": 5,
|
145 |
+
"user utterance": "Okay, have a nice day. Goodbye for the day. Bye for now!",
|
146 |
+
"system response": "",
|
147 |
+
"dialog history": "<USER> I'm going surfing. I love it. What do you like to do on your free time? <SYSTEM> I like to garden and spend time with my family. Do you have a favorite place to surf? <USER> Where would you like to surf? <SYSTEM> I'd like to find a garden in San Francisco. <USER> I found [count] attractions you might like. How about a park called [attraction_name]? <SYSTEM> Sure, that sounds good. <USER> You should check out the [category] known as the park, called the Attractionname. <SYSTEM> Okay, great. That's all I need for now.",
|
148 |
+
"original user side information": {},
|
149 |
+
"original system side information": {}
|
150 |
+
}
|
151 |
+
],
|
152 |
+
"external knowledge non-flat": {
|
153 |
+
"metadata": {},
|
154 |
+
"slots and values": {},
|
155 |
+
"intents": {}
|
156 |
+
},
|
157 |
+
"external knowledge": "",
|
158 |
+
"dst knowledge": "",
|
159 |
+
"intent knowledge": "",
|
160 |
+
"prompt": [
|
161 |
+
"This is a bot helping users to find a movie to watch. Given the dialog context and external database, please generate a relevant system response for the user.",
|
162 |
+
"This bot assists users to find a movie to watch. Based on the dialogue context and information from the external database, please generate an appropriate response for the user.",
|
163 |
+
"This bot helps users to find a movie to watch. Provide a suitable response to the user, keeping in mind the conversation history and accessible external data.",
|
164 |
+
"The purpose of this bot is to assist users to find a movie to watch. Considering the dialogue context and the information available in the external knowledge, please provide a fitting response for the user.",
|
165 |
+
"This bot is designed to help users find a movie to watch. By utilizing the current dialog context and external resources, generate an appropriate response for the user."
|
166 |
+
]
|
167 |
+
},
|
168 |
+
"SalesBot--train--3": {
|
169 |
+
"original dialog id": "simulateTOD_0004",
|
170 |
+
"dialog index": 3,
|
171 |
+
"original dialog info": {
|
172 |
+
"intent": {
|
173 |
+
"type": [
|
174 |
+
"PlaySong"
|
175 |
+
],
|
176 |
+
"position": 5
|
177 |
+
},
|
178 |
+
"transition_candidates": [
|
179 |
+
"You may like to play the title in your kitchen. Do you like to play the title on the soundboard?",
|
180 |
+
"I've recently played it. You might like [event_name], [event_name] or [event_name]?",
|
181 |
+
"It was played in a kitchen game.",
|
182 |
+
"I've just started playing the game, though I haven't played it. I haven't. I am also playing the game."
|
183 |
+
]
|
184 |
+
},
|
185 |
+
"log": [
|
186 |
+
{
|
187 |
+
"turn id": 1,
|
188 |
+
"user utterance": "No, I've never played any of those. I'm more of an Xbox gamer myself.",
|
189 |
+
"system response": "I used to play a lot of video games when I was younger, but I haven't in a while.",
|
190 |
+
"dialog history": "",
|
191 |
+
"original user side information": {},
|
192 |
+
"original system side information": {}
|
193 |
+
},
|
194 |
+
{
|
195 |
+
"turn id": 2,
|
196 |
+
"user utterance": "What kind of games do you like to play? I'm a big fan of first-person shooters.",
|
197 |
+
"system response": "I like first person shooters as well. I also like RPGs and adventure games.",
|
198 |
+
"dialog history": "<USER> No, I've never played any of those. I'm more of an Xbox gamer myself. <SYSTEM> I used to play a lot of video games when I was younger, but I haven't in a while.",
|
199 |
+
"original user side information": {},
|
200 |
+
"original system side information": {}
|
201 |
+
},
|
202 |
+
{
|
203 |
+
"turn id": 3,
|
204 |
+
"user utterance": "Adventure games are fun. Do you have a favorite adventure game that you've played recently?",
|
205 |
+
"system response": "I recently played the Legend of Zelda: Breath of the Wild. Have you played it?",
|
206 |
+
"dialog history": "<USER> No, I've never played any of those. I'm more of an Xbox gamer myself. <SYSTEM> I used to play a lot of video games when I was younger, but I haven't in a while. <USER> What kind of games do you like to play? I'm a big fan of first-person shooters. <SYSTEM> I like first person shooters as well. I also like RPGs and adventure games.",
|
207 |
+
"original user side information": {},
|
208 |
+
"original system side information": {}
|
209 |
+
},
|
210 |
+
{
|
211 |
+
"turn id": 4,
|
212 |
+
"user utterance": "You may like to play the title in your kitchen. Do you like to play the title on the soundboard?",
|
213 |
+
"system response": "Yeah, I'd like to play it on the speaker in the kitchen.",
|
214 |
+
"dialog history": "<USER> No, I've never played any of those. I'm more of an Xbox gamer myself. <SYSTEM> I used to play a lot of video games when I was younger, but I haven't in a while. <USER> What kind of games do you like to play? I'm a big fan of first-person shooters. <SYSTEM> I like first person shooters as well. I also like RPGs and adventure games. <USER> Adventure games are fun. Do you have a favorite adventure game that you've played recently? <SYSTEM> I recently played the Legend of Zelda: Breath of the Wild. Have you played it?",
|
215 |
+
"original user side information": {},
|
216 |
+
"original system side information": {}
|
217 |
+
},
|
218 |
+
{
|
219 |
+
"turn id": 5,
|
220 |
+
"user utterance": "Please confirm: playing [song_name] on the [playback_device].",
|
221 |
+
"system response": "Yes, that's right.",
|
222 |
+
"dialog history": "<USER> No, I've never played any of those. I'm more of an Xbox gamer myself. <SYSTEM> I used to play a lot of video games when I was younger, but I haven't in a while. <USER> What kind of games do you like to play? I'm a big fan of first-person shooters. <SYSTEM> I like first person shooters as well. I also like RPGs and adventure games. <USER> Adventure games are fun. Do you have a favorite adventure game that you've played recently? <SYSTEM> I recently played the Legend of Zelda: Breath of the Wild. Have you played it? <USER> You may like to play the title in your kitchen. Do you like to play the title on the soundboard? <SYSTEM> Yeah, I'd like to play it on the speaker in the kitchen.",
|
223 |
+
"original user side information": {},
|
224 |
+
"original system side information": {}
|
225 |
+
},
|
226 |
+
{
|
227 |
+
"turn id": 6,
|
228 |
+
"user utterance": "Okay, so you want to play [title] with no subtitles?",
|
229 |
+
"system response": "Yes, please. Who directed it?",
|
230 |
+
"dialog history": "<USER> No, I've never played any of those. I'm more of an Xbox gamer myself. <SYSTEM> I used to play a lot of video games when I was younger, but I haven't in a while. <USER> What kind of games do you like to play? I'm a big fan of first-person shooters. <SYSTEM> I like first person shooters as well. I also like RPGs and adventure games. <USER> Adventure games are fun. Do you have a favorite adventure game that you've played recently? <SYSTEM> I recently played the Legend of Zelda: Breath of the Wild. Have you played it? <USER> You may like to play the title in your kitchen. Do you like to play the title on the soundboard? <SYSTEM> Yeah, I'd like to play it on the speaker in the kitchen. <USER> Please confirm: playing [song_name] on the [playback_device]. <SYSTEM> Yes, that's right.",
|
231 |
+
"original user side information": {},
|
232 |
+
"original system side information": {}
|
233 |
+
},
|
234 |
+
{
|
235 |
+
"turn id": 7,
|
236 |
+
"user utterance": "[directed_by] is the director. I will start the movie now.",
|
237 |
+
"system response": "Thank you. That's all I need.",
|
238 |
+
"dialog history": "<USER> No, I've never played any of those. I'm more of an Xbox gamer myself. <SYSTEM> I used to play a lot of video games when I was younger, but I haven't in a while. <USER> What kind of games do you like to play? I'm a big fan of first-person shooters. <SYSTEM> I like first person shooters as well. I also like RPGs and adventure games. <USER> Adventure games are fun. Do you have a favorite adventure game that you've played recently? <SYSTEM> I recently played the Legend of Zelda: Breath of the Wild. Have you played it? <USER> You may like to play the title in your kitchen. Do you like to play the title on the soundboard? <SYSTEM> Yeah, I'd like to play it on the speaker in the kitchen. <USER> Please confirm: playing [song_name] on the [playback_device]. <SYSTEM> Yes, that's right. <USER> Okay, so you want to play [title] with no subtitles? <SYSTEM> Yes, please. Who directed it?",
|
239 |
+
"original user side information": {},
|
240 |
+
"original system side information": {}
|
241 |
+
},
|
242 |
+
{
|
243 |
+
"turn id": 8,
|
244 |
+
"user utterance": "You're welcome. Have a good day. Bye. [title] is now playing.",
|
245 |
+
"system response": "",
|
246 |
+
"dialog history": "<USER> No, I've never played any of those. I'm more of an Xbox gamer myself. <SYSTEM> I used to play a lot of video games when I was younger, but I haven't in a while. <USER> What kind of games do you like to play? I'm a big fan of first-person shooters. <SYSTEM> I like first person shooters as well. I also like RPGs and adventure games. <USER> Adventure games are fun. Do you have a favorite adventure game that you've played recently? <SYSTEM> I recently played the Legend of Zelda: Breath of the Wild. Have you played it? <USER> You may like to play the title in your kitchen. Do you like to play the title on the soundboard? <SYSTEM> Yeah, I'd like to play it on the speaker in the kitchen. <USER> Please confirm: playing [song_name] on the [playback_device]. <SYSTEM> Yes, that's right. <USER> Okay, so you want to play [title] with no subtitles? <SYSTEM> Yes, please. Who directed it? <USER> [directed_by] is the director. I will start the movie now. <SYSTEM> Thank you. That's all I need.",
|
247 |
+
"original user side information": {},
|
248 |
+
"original system side information": {}
|
249 |
+
}
|
250 |
+
],
|
251 |
+
"external knowledge non-flat": {
|
252 |
+
"metadata": {},
|
253 |
+
"slots and values": {},
|
254 |
+
"intents": {}
|
255 |
+
},
|
256 |
+
"external knowledge": "",
|
257 |
+
"dst knowledge": "",
|
258 |
+
"intent knowledge": "",
|
259 |
+
"prompt": [
|
260 |
+
"This is a bot helping users to find a tourist attraction. Given the dialog context and external database, please generate a relevant system response for the user.",
|
261 |
+
"This bot assists users to find a tourist attraction. Based on the dialogue context and information from the external database, please generate an appropriate response for the user.",
|
262 |
+
"This bot helps users to find a tourist attraction. Provide a suitable response to the user, keeping in mind the conversation history and accessible external data.",
|
263 |
+
"The purpose of this bot is to assist users to find a tourist attraction. Considering the dialogue context and the information available in the external knowledge, please provide a fitting response for the user.",
|
264 |
+
"This bot is designed to help users find a tourist attraction. By utilizing the current dialog context and external resources, generate an appropriate response for the user."
|
265 |
+
]
|
266 |
+
},
|
267 |
+
"SalesBot--train--4": {
|
268 |
+
"original dialog id": "simulateTOD_0005",
|
269 |
+
"dialog index": 4,
|
270 |
+
"original dialog info": {
|
271 |
+
"intent": {
|
272 |
+
"type": [
|
273 |
+
"FindAttractions"
|
274 |
+
],
|
275 |
+
"position": 2
|
276 |
+
},
|
277 |
+
"transition_candidates": [
|
278 |
+
"What do you do for a trip? Whenever you do, you would like to go to New York to visit the famous attractions.",
|
279 |
+
"There's a certain trip I would recommend. Is that a trip of interest to a different city?",
|
280 |
+
"I found [count] places to visit. What about you? A nice trip to [destination]. You would have a trip to [destination]. What are you looking for? You'd like to see a visit to [attraction_name].",
|
281 |
+
"So you want to travel.. you have never been to the place."
|
282 |
+
]
|
283 |
+
},
|
284 |
+
"log": [
|
285 |
+
{
|
286 |
+
"turn id": 1,
|
287 |
+
"user utterance": "I would love to read it. I love hiking. What else do you like to do?",
|
288 |
+
"system response": "I like to hike too. I also like to travel. I've been to Ireland and Australia.",
|
289 |
+
"dialog history": "",
|
290 |
+
"original user side information": {},
|
291 |
+
"original system side information": {}
|
292 |
+
},
|
293 |
+
{
|
294 |
+
"turn id": 2,
|
295 |
+
"user utterance": "I have never been to either of those places. Have you ever been to New Zealand?",
|
296 |
+
"system response": "What do you do for a trip? Whenever you do, you would like to go to New York to visit the famous attractions.",
|
297 |
+
"dialog history": "<USER> I would love to read it. I love hiking. What else do you like to do? <SYSTEM> I like to hike too. I also like to travel. I've been to Ireland and Australia.",
|
298 |
+
"original user side information": {},
|
299 |
+
"original system side information": {}
|
300 |
+
},
|
301 |
+
{
|
302 |
+
"turn id": 3,
|
303 |
+
"user utterance": "Yes, I want to go to New York City. I'd like to visit some attractions there.",
|
304 |
+
"system response": "I found [count] attractions for you. How about the [attraction_name]? It's a [category].",
|
305 |
+
"dialog history": "<USER> I would love to read it. I love hiking. What else do you like to do? <SYSTEM> I like to hike too. I also like to travel. I've been to Ireland and Australia. <USER> I have never been to either of those places. Have you ever been to New Zealand? <SYSTEM> What do you do for a trip? Whenever you do, you would like to go to New York to visit the famous attractions.",
|
306 |
+
"original user side information": {},
|
307 |
+
"original system side information": {}
|
308 |
+
},
|
309 |
+
{
|
310 |
+
"turn id": 4,
|
311 |
+
"user utterance": "Okay, that sounds good.",
|
312 |
+
"system response": "Okay, let's confirm the details: You want me to go to [event_location] on [date] at [time], and you want [party_size] people.",
|
313 |
+
"dialog history": "<USER> I would love to read it. I love hiking. What else do you like to do? <SYSTEM> I like to hike too. I also like to travel. I've been to Ireland and Australia. <USER> I have never been to either of those places. Have you ever been to New Zealand? <SYSTEM> What do you do for a trip? Whenever you do, you would like to go to New York to visit the famous attractions. <USER> Yes, I want to go to New York City. I'd like to visit some attractions there. <SYSTEM> I found [count] attractions for you. How about the [attraction_name]? It's a [category].",
|
314 |
+
"original user side information": {},
|
315 |
+
"original system side information": {}
|
316 |
+
},
|
317 |
+
{
|
318 |
+
"turn id": 5,
|
319 |
+
"user utterance": "Yes, that's right.",
|
320 |
+
"system response": "I'll play [song_name] on the [playback_device], is that okay?",
|
321 |
+
"dialog history": "<USER> I would love to read it. I love hiking. What else do you like to do? <SYSTEM> I like to hike too. I also like to travel. I've been to Ireland and Australia. <USER> I have never been to either of those places. Have you ever been to New Zealand? <SYSTEM> What do you do for a trip? Whenever you do, you would like to go to New York to visit the famous attractions. <USER> Yes, I want to go to New York City. I'd like to visit some attractions there. <SYSTEM> I found [count] attractions for you. How about the [attraction_name]? It's a [category]. <USER> Okay, that sounds good. <SYSTEM> Okay, let's confirm the details: You want me to go to [event_location] on [date] at [time], and you want [party_size] people.",
|
322 |
+
"original user side information": {},
|
323 |
+
"original system side information": {}
|
324 |
+
},
|
325 |
+
{
|
326 |
+
"turn id": 6,
|
327 |
+
"user utterance": "Yes, please do.",
|
328 |
+
"system response": "Sure, please confirm your request to play [title] with no subtitles.",
|
329 |
+
"dialog history": "<USER> I would love to read it. I love hiking. What else do you like to do? <SYSTEM> I like to hike too. I also like to travel. I've been to Ireland and Australia. <USER> I have never been to either of those places. Have you ever been to New Zealand? <SYSTEM> What do you do for a trip? Whenever you do, you would like to go to New York to visit the famous attractions. <USER> Yes, I want to go to New York City. I'd like to visit some attractions there. <SYSTEM> I found [count] attractions for you. How about the [attraction_name]? It's a [category]. <USER> Okay, that sounds good. <SYSTEM> Okay, let's confirm the details: You want me to go to [event_location] on [date] at [time], and you want [party_size] people. <USER> Yes, that's right. <SYSTEM> I'll play [song_name] on the [playback_device], is that okay?",
|
330 |
+
"original user side information": {},
|
331 |
+
"original system side information": {}
|
332 |
+
}
|
333 |
+
],
|
334 |
+
"external knowledge non-flat": {
|
335 |
+
"metadata": {},
|
336 |
+
"slots and values": {},
|
337 |
+
"intents": {}
|
338 |
+
},
|
339 |
+
"external knowledge": "",
|
340 |
+
"dst knowledge": "",
|
341 |
+
"intent knowledge": "",
|
342 |
+
"prompt": [
|
343 |
+
"This is a bot helping users to find and play a song. Given the dialog context and external database, please generate a relevant system response for the user.",
|
344 |
+
"This bot assists users to find and play a song. Based on the dialogue context and information from the external database, please generate an appropriate response for the user.",
|
345 |
+
"This bot helps users to find and play a song. Provide a suitable response to the user, keeping in mind the conversation history and accessible external data.",
|
346 |
+
"The purpose of this bot is to assist users to find and play a song. Considering the dialogue context and the information available in the external knowledge, please provide a fitting response for the user.",
|
347 |
+
"This bot is designed to help users find and play a song. By utilizing the current dialog context and external resources, generate an appropriate response for the user."
|
348 |
+
]
|
349 |
+
},
|
350 |
+
"SalesBot--train--5": {
|
351 |
+
"original dialog id": "simulateTOD_0006",
|
352 |
+
"dialog index": 5,
|
353 |
+
"original dialog info": {
|
354 |
+
"intent": {
|
355 |
+
"type": [
|
356 |
+
"FindMovies"
|
357 |
+
],
|
358 |
+
"position": 5
|
359 |
+
},
|
360 |
+
"transition_candidates": [
|
361 |
+
"Are you looking for another movie?",
|
362 |
+
"Do you have any other hobbies?",
|
363 |
+
"Do you like movies? I like to watch them. I like to watch them in real time. I like watching them.",
|
364 |
+
"Is there anything else I can help you with?"
|
365 |
+
]
|
366 |
+
},
|
367 |
+
"log": [
|
368 |
+
{
|
369 |
+
"turn id": 1,
|
370 |
+
"user utterance": "I'm sorry to hear that. Do you have any other pets that you can take with you?",
|
371 |
+
"system response": "I don't have any pets right now, but I used to have a dog when I was younger.",
|
372 |
+
"dialog history": "",
|
373 |
+
"original user side information": {},
|
374 |
+
"original system side information": {}
|
375 |
+
},
|
376 |
+
{
|
377 |
+
"turn id": 2,
|
378 |
+
"user utterance": "Oh, I see. What kind of dog did you have when you were younger? I love dogs!",
|
379 |
+
"system response": "I had a Labrador Retriever. He was the best dog ever.",
|
380 |
+
"dialog history": "<USER> I'm sorry to hear that. Do you have any other pets that you can take with you? <SYSTEM> I don't have any pets right now, but I used to have a dog when I was younger.",
|
381 |
+
"original user side information": {},
|
382 |
+
"original system side information": {}
|
383 |
+
},
|
384 |
+
{
|
385 |
+
"turn id": 3,
|
386 |
+
"user utterance": "Aww, I love labradors! They're so sweet and gentle. What do you like to do for fun?",
|
387 |
+
"system response": "I like to watch movies and play video games. I also like to read. What about you?",
|
388 |
+
"dialog history": "<USER> I'm sorry to hear that. Do you have any other pets that you can take with you? <SYSTEM> I don't have any pets right now, but I used to have a dog when I was younger. <USER> Oh, I see. What kind of dog did you have when you were younger? I love dogs! <SYSTEM> I had a Labrador Retriever. He was the best dog ever.",
|
389 |
+
"original user side information": {},
|
390 |
+
"original system side information": {}
|
391 |
+
},
|
392 |
+
{
|
393 |
+
"turn id": 4,
|
394 |
+
"user utterance": "Are you looking for another movie?",
|
395 |
+
"system response": "I really like fantasy movies. I'd like to find something directed by Hiroyasu Ishida.",
|
396 |
+
"dialog history": "<USER> I'm sorry to hear that. Do you have any other pets that you can take with you? <SYSTEM> I don't have any pets right now, but I used to have a dog when I was younger. <USER> Oh, I see. What kind of dog did you have when you were younger? I love dogs! <SYSTEM> I had a Labrador Retriever. He was the best dog ever. <USER> Aww, I love labradors! They're so sweet and gentle. What do you like to do for fun? <SYSTEM> I like to watch movies and play video games. I also like to read. What about you?",
|
397 |
+
"original user side information": {},
|
398 |
+
"original system side information": {}
|
399 |
+
},
|
400 |
+
{
|
401 |
+
"turn id": 5,
|
402 |
+
"user utterance": "I found [count] movie you might like. How about [title]?",
|
403 |
+
"system response": "The Poseidon Adventure sounds great. I want to watch it now.",
|
404 |
+
"dialog history": "<USER> I'm sorry to hear that. Do you have any other pets that you can take with you? <SYSTEM> I don't have any pets right now, but I used to have a dog when I was younger. <USER> Oh, I see. What kind of dog did you have when you were younger? I love dogs! <SYSTEM> I had a Labrador Retriever. He was the best dog ever. <USER> Aww, I love labradors! They're so sweet and gentle. What do you like to do for fun? <SYSTEM> I like to watch movies and play video games. I also like to read. What about you? <USER> Are you looking for another movie? <SYSTEM> I really like fantasy movies. I'd like to find something directed by Hiroyasu Ishida.",
|
405 |
+
"original user side information": {},
|
406 |
+
"original system side information": {}
|
407 |
+
},
|
408 |
+
{
|
409 |
+
"turn id": 6,
|
410 |
+
"user utterance": "Please confirm the following: Play the movie titled Poseodon with subtitles.",
|
411 |
+
"system response": "Yes, that's right.",
|
412 |
+
"dialog history": "<USER> I'm sorry to hear that. Do you have any other pets that you can take with you? <SYSTEM> I don't have any pets right now, but I used to have a dog when I was younger. <USER> Oh, I see. What kind of dog did you have when you were younger? I love dogs! <SYSTEM> I had a Labrador Retriever. He was the best dog ever. <USER> Aww, I love labradors! They're so sweet and gentle. What do you like to do for fun? <SYSTEM> I like to watch movies and play video games. I also like to read. What about you? <USER> Are you looking for another movie? <SYSTEM> I really like fantasy movies. I'd like to find something directed by Hiroyasu Ishida. <USER> I found [count] movie you might like. How about [title]? <SYSTEM> The Poseidon Adventure sounds great. I want to watch it now.",
|
413 |
+
"original user side information": {},
|
414 |
+
"original system side information": {}
|
415 |
+
},
|
416 |
+
{
|
417 |
+
"turn id": 7,
|
418 |
+
"user utterance": "Please confirm: Playing [title] with sub titles: Enjoy the movie.",
|
419 |
+
"system response": "Yes, thank you.",
|
420 |
+
"dialog history": "<USER> I'm sorry to hear that. Do you have any other pets that you can take with you? <SYSTEM> I don't have any pets right now, but I used to have a dog when I was younger. <USER> Oh, I see. What kind of dog did you have when you were younger? I love dogs! <SYSTEM> I had a Labrador Retriever. He was the best dog ever. <USER> Aww, I love labradors! They're so sweet and gentle. What do you like to do for fun? <SYSTEM> I like to watch movies and play video games. I also like to read. What about you? <USER> Are you looking for another movie? <SYSTEM> I really like fantasy movies. I'd like to find something directed by Hiroyasu Ishida. <USER> I found [count] movie you might like. How about [title]? <SYSTEM> The Poseidon Adventure sounds great. I want to watch it now. <USER> Please confirm the following: Play the movie titled Poseodon with subtitles. <SYSTEM> Yes, that's right.",
|
421 |
+
"original user side information": {},
|
422 |
+
"original system side information": {}
|
423 |
+
},
|
424 |
+
{
|
425 |
+
"turn id": 8,
|
426 |
+
"user utterance": "The movie has started playing. Enjoy your movie. Hope you enjoy the same. Bye.",
|
427 |
+
"system response": "",
|
428 |
+
"dialog history": "<USER> I'm sorry to hear that. Do you have any other pets that you can take with you? <SYSTEM> I don't have any pets right now, but I used to have a dog when I was younger. <USER> Oh, I see. What kind of dog did you have when you were younger? I love dogs! <SYSTEM> I had a Labrador Retriever. He was the best dog ever. <USER> Aww, I love labradors! They're so sweet and gentle. What do you like to do for fun? <SYSTEM> I like to watch movies and play video games. I also like to read. What about you? <USER> Are you looking for another movie? <SYSTEM> I really like fantasy movies. I'd like to find something directed by Hiroyasu Ishida. <USER> I found [count] movie you might like. How about [title]? <SYSTEM> The Poseidon Adventure sounds great. I want to watch it now. <USER> Please confirm the following: Play the movie titled Poseodon with subtitles. <SYSTEM> Yes, that's right. <USER> Please confirm: Playing [title] with sub titles: Enjoy the movie. <SYSTEM> Yes, thank you.",
|
429 |
+
"original user side information": {},
|
430 |
+
"original system side information": {}
|
431 |
+
}
|
432 |
+
],
|
433 |
+
"external knowledge non-flat": {
|
434 |
+
"metadata": {},
|
435 |
+
"slots and values": {},
|
436 |
+
"intents": {}
|
437 |
+
},
|
438 |
+
"external knowledge": "",
|
439 |
+
"dst knowledge": "",
|
440 |
+
"intent knowledge": "",
|
441 |
+
"prompt": [
|
442 |
+
"This is a bot helping users to find a tourist attraction. Given the dialog context and external database, please generate a relevant system response for the user.",
|
443 |
+
"This bot assists users to find a tourist attraction. Based on the dialogue context and information from the external database, please generate an appropriate response for the user.",
|
444 |
+
"This bot helps users to find a tourist attraction. Provide a suitable response to the user, keeping in mind the conversation history and accessible external data.",
|
445 |
+
"The purpose of this bot is to assist users to find a tourist attraction. Considering the dialogue context and the information available in the external knowledge, please provide a fitting response for the user.",
|
446 |
+
"This bot is designed to help users find a tourist attraction. By utilizing the current dialog context and external resources, generate an appropriate response for the user."
|
447 |
+
]
|
448 |
+
}
|
449 |
+
}
|
conversational-recommendation-dialogues/SalesBot/original_examples.json
ADDED
@@ -0,0 +1,156 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"id": "simulateTOD_0001",
|
4 |
+
"dialog": [
|
5 |
+
"It's a Toyota Corolla. I love it. How about you?",
|
6 |
+
"I drive a Honda Civic. It's the best car I've ever owned.",
|
7 |
+
"I love Hondas. They're so reliable. Do you have any hobbies?",
|
8 |
+
"I like to write poetry and donate my old clothes. What do you like to do?",
|
9 |
+
"I love to read Stephen King books. He's one of my favorite authors.",
|
10 |
+
"I haven't read any of his books, but I've heard good things. What's your favorite book of his?",
|
11 |
+
"My favorite of his is The Shining. Have you seen the movie? It came out in 1997.",
|
12 |
+
"I've seen it, but it's been so long that I don't remember much about it.",
|
13 |
+
"Is there anything else I can do for you?",
|
14 |
+
"Yes, I'd like to find an Adventure movie.",
|
15 |
+
"I found [count] movie you might like. How about [title]?",
|
16 |
+
"The Aftermath sounds great. That's all I need for now.",
|
17 |
+
"Okay, have a great day. I hope you enjoy the movie. Bye.!."
|
18 |
+
],
|
19 |
+
"intent": {
|
20 |
+
"type": [
|
21 |
+
"FindMovies"
|
22 |
+
],
|
23 |
+
"position": 7
|
24 |
+
},
|
25 |
+
"transition_candidates": [
|
26 |
+
"Is there anything else I can do for you?",
|
27 |
+
"What do you think of the movie?",
|
28 |
+
"Are you planning on buying tickets now?",
|
29 |
+
"Could you please confirm that you like to play it. Can I tell you anything else? Is there anything else I can help you with?"
|
30 |
+
],
|
31 |
+
"filename": "TOD_Simulators"
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"id": "simulateTOD_0002",
|
35 |
+
"dialog": [
|
36 |
+
"I'm going surfing. I love it. What do you like to do on your free time?",
|
37 |
+
"I like to garden and spend time with my family. Do you have a favorite place to surf?",
|
38 |
+
"Where would you like to surf?",
|
39 |
+
"I'd like to find a garden in San Francisco.",
|
40 |
+
"I found [count] attractions you might like. How about a park called [attraction_name]?",
|
41 |
+
"Sure, that sounds good.",
|
42 |
+
"You should check out the [category] known as the park, called the Attractionname.",
|
43 |
+
"Okay, great. That's all I need for now.",
|
44 |
+
"Okay, have a nice day. Goodbye for the day. Bye for now!"
|
45 |
+
],
|
46 |
+
"intent": {
|
47 |
+
"type": [
|
48 |
+
"FindAttractions"
|
49 |
+
],
|
50 |
+
"position": 1
|
51 |
+
},
|
52 |
+
"transition_candidates": [
|
53 |
+
"Where would you like to surf?",
|
54 |
+
"What is your favorite city on your calendar?",
|
55 |
+
"What is your location? I found [count] beaches that may be your closest. There are [count] beaches. What do you think about that?",
|
56 |
+
"No, I would recommend a good place for you to search, or a beach you like?"
|
57 |
+
],
|
58 |
+
"filename": "TOD_Simulators"
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"id": "simulateTOD_0004",
|
62 |
+
"dialog": [
|
63 |
+
"No, I've never played any of those. I'm more of an Xbox gamer myself.",
|
64 |
+
"I used to play a lot of video games when I was younger, but I haven't in a while.",
|
65 |
+
"What kind of games do you like to play? I'm a big fan of first-person shooters.",
|
66 |
+
"I like first person shooters as well. I also like RPGs and adventure games.",
|
67 |
+
"Adventure games are fun. Do you have a favorite adventure game that you've played recently?",
|
68 |
+
"I recently played the Legend of Zelda: Breath of the Wild. Have you played it?",
|
69 |
+
"You may like to play the title in your kitchen. Do you like to play the title on the soundboard?",
|
70 |
+
"Yeah, I'd like to play it on the speaker in the kitchen.",
|
71 |
+
"Please confirm: playing [song_name] on the [playback_device].",
|
72 |
+
"Yes, that's right.",
|
73 |
+
"Okay, so you want to play [title] with no subtitles?",
|
74 |
+
"Yes, please. Who directed it?",
|
75 |
+
"[directed_by] is the director. I will start the movie now.",
|
76 |
+
"Thank you. That's all I need.",
|
77 |
+
"You're welcome. Have a good day. Bye. [title] is now playing."
|
78 |
+
],
|
79 |
+
"intent": {
|
80 |
+
"type": [
|
81 |
+
"PlaySong"
|
82 |
+
],
|
83 |
+
"position": 5
|
84 |
+
},
|
85 |
+
"transition_candidates": [
|
86 |
+
"You may like to play the title in your kitchen. Do you like to play the title on the soundboard?",
|
87 |
+
"I've recently played it. You might like [event_name], [event_name] or [event_name]?",
|
88 |
+
"It was played in a kitchen game.",
|
89 |
+
"I've just started playing the game, though I haven't played it. I haven't. I am also playing the game."
|
90 |
+
],
|
91 |
+
"filename": "TOD_Simulators"
|
92 |
+
},
|
93 |
+
{
|
94 |
+
"id": "simulateTOD_0005",
|
95 |
+
"dialog": [
|
96 |
+
"I would love to read it. I love hiking. What else do you like to do?",
|
97 |
+
"I like to hike too. I also like to travel. I've been to Ireland and Australia.",
|
98 |
+
"I have never been to either of those places. Have you ever been to New Zealand?",
|
99 |
+
"What do you do for a trip? Whenever you do, you would like to go to New York to visit the famous attractions.",
|
100 |
+
"Yes, I want to go to New York City. I'd like to visit some attractions there.",
|
101 |
+
"I found [count] attractions for you. How about the [attraction_name]? It's a [category].",
|
102 |
+
"Okay, that sounds good.",
|
103 |
+
"Okay, let's confirm the details: You want me to go to [event_location] on [date] at [time], and you want [party_size] people.",
|
104 |
+
"Yes, that's right.",
|
105 |
+
"I'll play [song_name] on the [playback_device], is that okay?",
|
106 |
+
"Yes, please do.",
|
107 |
+
"Sure, please confirm your request to play [title] with no subtitles."
|
108 |
+
],
|
109 |
+
"intent": {
|
110 |
+
"type": [
|
111 |
+
"FindAttractions"
|
112 |
+
],
|
113 |
+
"position": 2
|
114 |
+
},
|
115 |
+
"transition_candidates": [
|
116 |
+
"What do you do for a trip? Whenever you do, you would like to go to New York to visit the famous attractions.",
|
117 |
+
"There's a certain trip I would recommend. Is that a trip of interest to a different city?",
|
118 |
+
"I found [count] places to visit. What about you? A nice trip to [destination]. You would have a trip to [destination]. What are you looking for? You'd like to see a visit to [attraction_name].",
|
119 |
+
"So you want to travel.. you have never been to the place."
|
120 |
+
],
|
121 |
+
"filename": "TOD_Simulators"
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"id": "simulateTOD_0006",
|
125 |
+
"dialog": [
|
126 |
+
"I'm sorry to hear that. Do you have any other pets that you can take with you?",
|
127 |
+
"I don't have any pets right now, but I used to have a dog when I was younger.",
|
128 |
+
"Oh, I see. What kind of dog did you have when you were younger? I love dogs!",
|
129 |
+
"I had a Labrador Retriever. He was the best dog ever.",
|
130 |
+
"Aww, I love labradors! They're so sweet and gentle. What do you like to do for fun?",
|
131 |
+
"I like to watch movies and play video games. I also like to read. What about you?",
|
132 |
+
"Are you looking for another movie?",
|
133 |
+
"I really like fantasy movies. I'd like to find something directed by Hiroyasu Ishida.",
|
134 |
+
"I found [count] movie you might like. How about [title]?",
|
135 |
+
"The Poseidon Adventure sounds great. I want to watch it now.",
|
136 |
+
"Please confirm the following: Play the movie titled Poseodon with subtitles.",
|
137 |
+
"Yes, that's right.",
|
138 |
+
"Please confirm: Playing [title] with sub titles: Enjoy the movie.",
|
139 |
+
"Yes, thank you.",
|
140 |
+
"The movie has started playing. Enjoy your movie. Hope you enjoy the same. Bye."
|
141 |
+
],
|
142 |
+
"intent": {
|
143 |
+
"type": [
|
144 |
+
"FindMovies"
|
145 |
+
],
|
146 |
+
"position": 5
|
147 |
+
},
|
148 |
+
"transition_candidates": [
|
149 |
+
"Are you looking for another movie?",
|
150 |
+
"Do you have any other hobbies?",
|
151 |
+
"Do you like movies? I like to watch them. I like to watch them in real time. I like watching them.",
|
152 |
+
"Is there anything else I can help you with?"
|
153 |
+
],
|
154 |
+
"filename": "TOD_Simulators"
|
155 |
+
}
|
156 |
+
]
|
conversational-recommendation-dialogues/SalesBot/otgy.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
"GetTimesForMovie",
|
3 |
+
"LookupSong",
|
4 |
+
"FindMovies",
|
5 |
+
"LookupMusic",
|
6 |
+
"PlaySong",
|
7 |
+
"FindAttractions"
|
8 |
+
]
|
dialogstudio.py
ADDED
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
"""
|
2 |
+
Copyright (c) 2023, salesforce.com, inc.
|
3 |
+
All rights reserved.
|
4 |
+
SPDX-License-Identifier: Apache License 2.0
|
5 |
+
For full license text, see the LICENSE file in the repo root or https://www.apache.org/licenses/LICENSE-2.0
|
6 |
+
"""
|
7 |
+
|
8 |
+
|
9 |
+
#!/usr/bin/env python3
|
10 |
+
import os
|
11 |
+
import json
|
12 |
+
import datasets
|
13 |
+
from datasets import (GeneratorBasedBuilder,
|
14 |
+
BuilderConfig,
|
15 |
+
SplitGenerator,
|
16 |
+
DatasetInfo,
|
17 |
+
Features,
|
18 |
+
Sequence,
|
19 |
+
Value,
|
20 |
+
Version)
|
21 |
+
|
22 |
+
logger = datasets.logging.get_logger(__name__)
|
23 |
+
datasets.logging.disable_progress_bar()
|
24 |
+
|
25 |
+
_VERSION = Version("1.0.0")
|
26 |
+
_CITATION = """
|
27 |
+
@misc{zhang2023dialogstudio,
|
28 |
+
title={DialogStudio: Towards Richest and Most Diverse Unified Dataset Collection for Conversational AI},
|
29 |
+
author={Jianguo Zhang and Kun Qian and Zhiwei Liu and Shelby Heinecke and Rui Meng and Ye Liu and Zhou Yu and and Huan Wang and Silvio Savarese and Caiming Xiong},
|
30 |
+
year={2023},
|
31 |
+
eprint={2307.10172},
|
32 |
+
archivePrefix={arXiv},
|
33 |
+
primaryClass={cs.CL}
|
34 |
+
"""
|
35 |
+
|
36 |
+
DATASETS = {
|
37 |
+
# not pass: "CANARD"
|
38 |
+
"open_domain": [
|
39 |
+
"chitchat-dataset", "ConvAI2", "AntiScam", "Empathetic", "HH-RLHF",
|
40 |
+
"PLACES3.5", "Prosocial", "SODA"
|
41 |
+
],
|
42 |
+
"knowledge_grounded": [
|
43 |
+
"CompWebQ", "CoQA", "CoSQL", "DART", "FeTaQA",
|
44 |
+
"GrailQA", "HybridQA", "MTOP", "MultiModalQA", "SParC",
|
45 |
+
"Spider", "SQA", "ToTTo", "WebQSP", "WikiSQL",
|
46 |
+
"WikiTQ", "wizard_of_internet", "wizard_of_wikipedia"
|
47 |
+
],
|
48 |
+
"dialogue_summarization": [
|
49 |
+
"AMI", "CRD3", "DialogSum", "ECTSum", "ICSI",
|
50 |
+
"MediaSum", "QMSum", "SAMSum", "TweetSumm", "ConvoSumm",
|
51 |
+
"SummScreen_ForeverDreaming", "SummScreen_TVMegaSite"
|
52 |
+
],
|
53 |
+
"natural_language_understanding": [
|
54 |
+
"ATIS", "ATIS-NER", "BANKING77", "BANKING77-OOS", "CLINC-Single-Domain-OOS-banking",
|
55 |
+
"CLINC-Single-Domain-OOS-credit_cards", "CLINC150", "DSTC8-SGD", "HWU64", "MIT-Movie",
|
56 |
+
"MIT-Restaurant", "RESTAURANTS8K", "SNIPS", "SNIPS-NER", "TOP", "TOP-NER"
|
57 |
+
],
|
58 |
+
"task_oriented": [
|
59 |
+
"ABCD", "AirDialogue", "BiTOD", "CaSiNo", "CraigslistBargains",
|
60 |
+
"Disambiguation", "DSTC2-Clean", "FRAMES", "GECOR", "HDSA-Dialog",
|
61 |
+
"KETOD", "KVRET", "MetaLWOZ", "MS-DC", "MuDoCo",
|
62 |
+
"MulDoGO", "MultiWOZ_2.1", "MULTIWOZ2_2", "SGD", "SimJointGEN",
|
63 |
+
"SimJointMovie", "SimJointRestaurant", "STAR", "Taskmaster1", "Taskmaster2",
|
64 |
+
"Taskmaster3", "WOZ2_0"
|
65 |
+
],
|
66 |
+
"conversational_recommendation": [
|
67 |
+
"Redial", "DuRecDial-2.0", "OpenDialKG", "SalesBot",
|
68 |
+
]
|
69 |
+
}
|
70 |
+
|
71 |
+
_URL = "https://huggingface.co/datasets/Salesforce/dialogstudio/tree/main/"
|
72 |
+
|
73 |
+
class DialogStudioConfig(BuilderConfig):
|
74 |
+
"""BuilderConfig for DialogStudio."""
|
75 |
+
|
76 |
+
def __init__(self, extra_features, category, data_name, citation, url, **kwargs):
|
77 |
+
"""BuilderConfig for DialogStudio.
|
78 |
+
Args:
|
79 |
+
extra_features: `list[string]`, list of the features that will appear in the
|
80 |
+
feature dict. Should not include "label".
|
81 |
+
data_url: `string`, url to download the zip file from.
|
82 |
+
citation: `string`, citation for the data set.
|
83 |
+
url: `string`, url for information about the data set.
|
84 |
+
label_classes: `list[string]`, the list of classes for the label if the
|
85 |
+
label is present as a string. Non-string labels will be cast to either
|
86 |
+
'False' or 'True'.
|
87 |
+
**kwargs: keyword arguments forwarded to super.
|
88 |
+
"""
|
89 |
+
super(DialogStudioConfig, self).__init__(version=_VERSION, **kwargs)
|
90 |
+
self.extra_features = extra_features
|
91 |
+
self.category = category
|
92 |
+
self.data_name = data_name
|
93 |
+
self.compressed_file = f"{data_name}.zip"
|
94 |
+
self.citation = citation
|
95 |
+
self.url = url
|
96 |
+
|
97 |
+
|
98 |
+
class DialogStudio(GeneratorBasedBuilder):
|
99 |
+
"""DialogStudio"""
|
100 |
+
BUILDER_CONFIGS = []
|
101 |
+
for category, dataset_list in DATASETS.items():
|
102 |
+
if category in ["task_oriented", "conversational_recommendation"]:
|
103 |
+
extra_features = {
|
104 |
+
"dialog":[
|
105 |
+
"external knowledge non-flat",
|
106 |
+
"external knowledge",
|
107 |
+
"dst knowledge",
|
108 |
+
"intent knowledge",
|
109 |
+
],
|
110 |
+
"turn":[
|
111 |
+
"dst",
|
112 |
+
"dst accumulated",
|
113 |
+
"intent",
|
114 |
+
"external knowledge",
|
115 |
+
"external knowledge non-flat"
|
116 |
+
]
|
117 |
+
}
|
118 |
+
elif category in ["natural_language_understanding"]:
|
119 |
+
extra_features = {"dialog":[], "turn":["external knowledge", "external knowledge non-flat"]}
|
120 |
+
else:
|
121 |
+
extra_features = {"dialog":[], "turn":[]}
|
122 |
+
|
123 |
+
for data_name in dataset_list:
|
124 |
+
BUILDER_CONFIGS.append(
|
125 |
+
DialogStudioConfig(
|
126 |
+
name=data_name,
|
127 |
+
data_name=data_name,
|
128 |
+
description="",
|
129 |
+
extra_features=extra_features,
|
130 |
+
category=category,
|
131 |
+
citation=_CITATION,
|
132 |
+
url="https://github.com/salesforce/DialogStudio/tree/main",
|
133 |
+
))
|
134 |
+
|
135 |
+
DEFAULT_CONFIG_NAME = "WOZ2_0"
|
136 |
+
|
137 |
+
def _info(self):
|
138 |
+
features = {
|
139 |
+
"original dialog id": Value("string"),
|
140 |
+
"new dialog id": Value("string"),
|
141 |
+
"dialog index": Value("int32"),
|
142 |
+
"original dialog info": Value("string"),
|
143 |
+
"log": [
|
144 |
+
{
|
145 |
+
"turn id": Value("int32"),
|
146 |
+
"user utterance": Value("string"),
|
147 |
+
"system response": Value("string"),
|
148 |
+
"dialog history": Value("string"),
|
149 |
+
"original user side information": Value("string"),
|
150 |
+
"original system side information": Value("string"),
|
151 |
+
}
|
152 |
+
],
|
153 |
+
"prompt": [Value("string")]
|
154 |
+
}
|
155 |
+
if self.config.extra_features["dialog"]:
|
156 |
+
for name in self.config.extra_features["dialog"]:
|
157 |
+
features[name] = Value("string")
|
158 |
+
if self.config.extra_features["turn"]:
|
159 |
+
log_config = {
|
160 |
+
"turn id": Value("int32"),
|
161 |
+
"user utterance": Value("string"),
|
162 |
+
"system response": Value("string"),
|
163 |
+
"dialog history": Value("string"),
|
164 |
+
"original user side information": Value("string"),
|
165 |
+
"original system side information": Value("string"),
|
166 |
+
}
|
167 |
+
for name in self.config.extra_features["turn"]:
|
168 |
+
log_config[name] = Value("string")
|
169 |
+
features["log"] = [log_config]
|
170 |
+
|
171 |
+
return DatasetInfo(
|
172 |
+
description="",
|
173 |
+
features=Features(features),
|
174 |
+
homepage=self.config.url,
|
175 |
+
citation=_CITATION,
|
176 |
+
)
|
177 |
+
|
178 |
+
|
179 |
+
def _split_generators(self, dl_manager):
|
180 |
+
"""
|
181 |
+
This script assume the datset is not stored in zip file
|
182 |
+
Instead, data is stored in format:
|
183 |
+
.
|
184 |
+
|-task-oriented
|
185 |
+
|-WOZ2.0
|
186 |
+
|-train
|
187 |
+
|-dialogues_1.json
|
188 |
+
|-dialogues_2.json
|
189 |
+
|-...
|
190 |
+
this script would download the json file one-by-one
|
191 |
+
"""
|
192 |
+
|
193 |
+
splits = []
|
194 |
+
file_path_list = {"train":[], "val":[], "test":[]}
|
195 |
+
print("❤️Attention❤️: Dataset download may take some time. We appreciate your patience!")
|
196 |
+
for mode in ["train", "val", "test"]:
|
197 |
+
for file_idx in range(1, 1000000):
|
198 |
+
file_to_download = os.path.join(self.config.category, self.config.data_name, mode, f"dialogues_{file_idx}.json")
|
199 |
+
try:
|
200 |
+
dl_path = dl_manager.download(file_to_download)
|
201 |
+
except:
|
202 |
+
break
|
203 |
+
file_path_list[mode].append(dl_path)
|
204 |
+
|
205 |
+
if file_path_list["train"]:
|
206 |
+
if any(split.name == datasets.Split.TRAIN for split in splits):
|
207 |
+
raise ValueError("Split 'train' already added.")
|
208 |
+
splits.append(
|
209 |
+
SplitGenerator(
|
210 |
+
name=datasets.Split.TRAIN,
|
211 |
+
gen_kwargs={
|
212 |
+
"file_path_list": file_path_list["train"],
|
213 |
+
"split": datasets.Split.TRAIN,
|
214 |
+
},
|
215 |
+
)
|
216 |
+
)
|
217 |
+
if file_path_list["val"]:
|
218 |
+
if any(split.name == datasets.Split.VALIDATION for split in splits):
|
219 |
+
raise ValueError("Split 'validation' already added.")
|
220 |
+
splits.append(
|
221 |
+
SplitGenerator(
|
222 |
+
name=datasets.Split.VALIDATION,
|
223 |
+
gen_kwargs={
|
224 |
+
"file_path_list": file_path_list["val"],
|
225 |
+
"split": datasets.Split.VALIDATION,
|
226 |
+
},
|
227 |
+
)
|
228 |
+
)
|
229 |
+
if file_path_list["test"]:
|
230 |
+
if any(split.name == datasets.Split.TEST for split in splits):
|
231 |
+
raise ValueError("Split 'test' already added.")
|
232 |
+
splits.append(
|
233 |
+
SplitGenerator(
|
234 |
+
name=datasets.Split.TEST,
|
235 |
+
gen_kwargs={
|
236 |
+
"file_path_list": file_path_list["test"],
|
237 |
+
"split": datasets.Split.TEST,
|
238 |
+
},
|
239 |
+
)
|
240 |
+
)
|
241 |
+
return splits
|
242 |
+
|
243 |
+
|
244 |
+
def _load_json(self, file_path):
|
245 |
+
with open(file_path, encoding="utf-8") as f:
|
246 |
+
data = json.loads(f.read())
|
247 |
+
return data
|
248 |
+
|
249 |
+
|
250 |
+
def _generate_examples(self, file_path_list, split):
|
251 |
+
"""This function returns the examples in the raw (text) form."""
|
252 |
+
data = {}
|
253 |
+
for filepath in file_path_list:
|
254 |
+
data.update(self._load_json(filepath))
|
255 |
+
|
256 |
+
logger.info(f"generating {len(data)} examples from = {split}")
|
257 |
+
|
258 |
+
for dial_id, dial in data.items():
|
259 |
+
if type(dial["log"]) == dict:
|
260 |
+
dial["log"] = [dial["log"]]
|
261 |
+
example = {
|
262 |
+
"original dialog id": dial["original dialog id"],
|
263 |
+
"new dialog id": dial_id,
|
264 |
+
"dialog index": dial["dialog index"],
|
265 |
+
"original dialog info": json.dumps(dial["original dialog info"]),
|
266 |
+
"log": [{
|
267 |
+
"turn id": turn["turn id"],
|
268 |
+
"user utterance": turn["user utterance"],
|
269 |
+
"system response": turn["system response"],
|
270 |
+
"dialog history": turn["dialog history"],
|
271 |
+
"original user side information": json.dumps(turn["original user side information"]),
|
272 |
+
"original system side information": json.dumps(turn["original system side information"]),
|
273 |
+
} for turn in dial["log"]],
|
274 |
+
"prompt": dial["prompt"] if "prompt" in dial and dial["prompt"] else [""]
|
275 |
+
}
|
276 |
+
if self.config.extra_features["dialog"]:
|
277 |
+
for name in self.config.extra_features["dialog"]:
|
278 |
+
example[name] = json.dumps(dial[name]) if name in dial else ""
|
279 |
+
if self.config.extra_features["turn"]:
|
280 |
+
for idx, turn in enumerate(example["log"]):
|
281 |
+
for name in self.config.extra_features["turn"]:
|
282 |
+
example["log"][idx][name] = json.dumps(dial["log"][idx][name]) if name in dial["log"][idx] else ""
|
283 |
+
yield dial["dialog index"], example
|
284 |
+
|
dialogue-summarization/AMI/README.md
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# AMI Corpora
|
2 |
+
|
3 |
+
[AMI Corpus Overview](https://groups.inf.ed.ac.uk/ami/corpus/overview.shtml)
|
4 |
+
|
5 |
+
A brief introduction to the AMI Meeting Corpus.
|
6 |
+
|
7 |
+
This is a web version of the following newsletter article:
|
8 |
+
|
9 |
+
Carletta, J. (2006) Announcing the AMI Meeting Corpus. The ELRA Newsletter 11(1), January-March, p. 3-5.
|
10 |
+
|
11 |
+
Announcing the AMI Meeting Corpus
|
12 |
+
The European-funded AMI project (FP6-506811) is a 15-member multi-disciplinary consortium dedicated to the research and development of technology that will help groups interact better. One AMI focus is on developing meeting browsers that improve work group effectiveness by giving better access to the group's history. Increasingly in future, we will be considering how related technologies can help group members joining a meeting late or having to "attend" from a different location. In both cases, a key part our approach is to index meetings for the properties that users find salient. This might mean, for instance, spotting topic boundaries, decisions, intense discussions, or places where a specific person or subject was mentioned. To help with developing this indexing the consortium has collected the AMI Meeting Corpus, a set of recorded meetings that is now available as a public resource. Although the data set was designed specifically for the project, it could be used for many different purposes in linguistics, organizational and social psychology, speech and language engineering, video processing, and multi-modal systems.
|
13 |
+
|
14 |
+
The AMI Meeting Corpus consists of 100 hours of meeting recordings. The recordings use a range of signals synchronized to a common timeline. These include close-talking and far-field microphones, individual and room-view video cameras, and output from a slide projector and an electronic whiteboard. During the meetings, the participants also have unsynchronized pens available to them that record what is written. The meetings were recorded in English using three different rooms with different acoustic properties, and include mostly non-native speakers.
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
For more details of these annotations, please refer to the [annotation guidelines](https://groups.inf.ed.ac.uk/ami/corpus/guidelines.shtml) or the citations in below.
|
19 |
+
|
20 |
+
|
21 |
+
### Citation:
|
22 |
+
|
23 |
+
The data is originally from [The AMI meeting corpus](https://d1wqtxts1xzle7.cloudfront.net/50793769/The_AMI_meeting_corpus20161208-17868-1xaka8f-libre.pdf?1481255943=&response-content-disposition=inline%3B+filename%3DThe_AMI_Meeting_Corpus.pdf&Expires=1690239442&Signature=IEM2L-siuuBS6rwhh5C-w7NthOVlZGb0m12CYvrR59d4rECuowhYoW1F~403O3V4L2tJI6gokXgm9n1QBXS-wQfRiNCRv4uVVNZ60-Mbf1hz~rQJpJ4iBTHHhyZTiGyO~VbCWiqJhS5lAC5cGGzsefKjaxqBLnHnF-Mq6M7c6Q7PMFLToRu9K7hAoFNbJTc7GoA72hUUyoQprYJ6f0VaDmRyrVQJYaYQxHvPiZ9-bjH2-NOVpnolVQP5LYT5AYcrpV~FcmzKvBd7cyl5fxD4EsWcAsvMotv0cCnhoCra20uatZAUz9G8ZpID~9lkMWOaOLPxwJruOPoXoBCAA7R5oQ__&Key-Pair-Id=APKAJLOHF5GGSLRBV4ZA), and the corresponding website is [link](https://groups.inf.ed.ac.uk/ami/corpus/overview.shtml).
|
24 |
+
|
25 |
+
We further process the data based on https://github.com/guokan-shang/ami-and-icsi-corpora.
|
26 |
+
|
27 |
+
Please cite their work accordingly if you use the dataset.
|
dialogue-summarization/AMI/converted_examples.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dialogue-summarization/AMI/license.md
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
https://groups.inf.ed.ac.uk/ami/
|
2 |
+
|
3 |
+
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
|
dialogue-summarization/AMI/original_examples.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dialogue-summarization/CRD3/LICENSE.txt
ADDED
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Attribution-ShareAlike 4.0 International
|
2 |
+
|
3 |
+
=======================================================================
|
4 |
+
|
5 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
6 |
+
does not provide legal services or legal advice. Distribution of
|
7 |
+
Creative Commons public licenses does not create a lawyer-client or
|
8 |
+
other relationship. Creative Commons makes its licenses and related
|
9 |
+
information available on an "as-is" basis. Creative Commons gives no
|
10 |
+
warranties regarding its licenses, any material licensed under their
|
11 |
+
terms and conditions, or any related information. Creative Commons
|
12 |
+
disclaims all liability for damages resulting from their use to the
|
13 |
+
fullest extent possible.
|
14 |
+
|
15 |
+
Using Creative Commons Public Licenses
|
16 |
+
|
17 |
+
Creative Commons public licenses provide a standard set of terms and
|
18 |
+
conditions that creators and other rights holders may use to share
|
19 |
+
original works of authorship and other material subject to copyright
|
20 |
+
and certain other rights specified in the public license below. The
|
21 |
+
following considerations are for informational purposes only, are not
|
22 |
+
exhaustive, and do not form part of our licenses.
|
23 |
+
|
24 |
+
Considerations for licensors: Our public licenses are
|
25 |
+
intended for use by those authorized to give the public
|
26 |
+
permission to use material in ways otherwise restricted by
|
27 |
+
copyright and certain other rights. Our licenses are
|
28 |
+
irrevocable. Licensors should read and understand the terms
|
29 |
+
and conditions of the license they choose before applying it.
|
30 |
+
Licensors should also secure all rights necessary before
|
31 |
+
applying our licenses so that the public can reuse the
|
32 |
+
material as expected. Licensors should clearly mark any
|
33 |
+
material not subject to the license. This includes other CC-
|
34 |
+
licensed material, or material used under an exception or
|
35 |
+
limitation to copyright. More considerations for licensors:
|
36 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
37 |
+
|
38 |
+
Considerations for the public: By using one of our public
|
39 |
+
licenses, a licensor grants the public permission to use the
|
40 |
+
licensed material under specified terms and conditions. If
|
41 |
+
the licensor's permission is not necessary for any reason--for
|
42 |
+
example, because of any applicable exception or limitation to
|
43 |
+
copyright--then that use is not regulated by the license. Our
|
44 |
+
licenses grant only permissions under copyright and certain
|
45 |
+
other rights that a licensor has authority to grant. Use of
|
46 |
+
the licensed material may still be restricted for other
|
47 |
+
reasons, including because others have copyright or other
|
48 |
+
rights in the material. A licensor may make special requests,
|
49 |
+
such as asking that all changes be marked or described.
|
50 |
+
Although not required by our licenses, you are encouraged to
|
51 |
+
respect those requests where reasonable. More_considerations
|
52 |
+
for the public:
|
53 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
54 |
+
|
55 |
+
=======================================================================
|
56 |
+
|
57 |
+
Creative Commons Attribution-ShareAlike 4.0 International Public
|
58 |
+
License
|
59 |
+
|
60 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
61 |
+
to be bound by the terms and conditions of this Creative Commons
|
62 |
+
Attribution-ShareAlike 4.0 International Public License ("Public
|
63 |
+
License"). To the extent this Public License may be interpreted as a
|
64 |
+
contract, You are granted the Licensed Rights in consideration of Your
|
65 |
+
acceptance of these terms and conditions, and the Licensor grants You
|
66 |
+
such rights in consideration of benefits the Licensor receives from
|
67 |
+
making the Licensed Material available under these terms and
|
68 |
+
conditions.
|
69 |
+
|
70 |
+
|
71 |
+
Section 1 -- Definitions.
|
72 |
+
|
73 |
+
a. Adapted Material means material subject to Copyright and Similar
|
74 |
+
Rights that is derived from or based upon the Licensed Material
|
75 |
+
and in which the Licensed Material is translated, altered,
|
76 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
77 |
+
permission under the Copyright and Similar Rights held by the
|
78 |
+
Licensor. For purposes of this Public License, where the Licensed
|
79 |
+
Material is a musical work, performance, or sound recording,
|
80 |
+
Adapted Material is always produced where the Licensed Material is
|
81 |
+
synched in timed relation with a moving image.
|
82 |
+
|
83 |
+
b. Adapter's License means the license You apply to Your Copyright
|
84 |
+
and Similar Rights in Your contributions to Adapted Material in
|
85 |
+
accordance with the terms and conditions of this Public License.
|
86 |
+
|
87 |
+
c. BY-SA Compatible License means a license listed at
|
88 |
+
creativecommons.org/compatiblelicenses, approved by Creative
|
89 |
+
Commons as essentially the equivalent of this Public License.
|
90 |
+
|
91 |
+
d. Copyright and Similar Rights means copyright and/or similar rights
|
92 |
+
closely related to copyright including, without limitation,
|
93 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
94 |
+
Rights, without regard to how the rights are labeled or
|
95 |
+
categorized. For purposes of this Public License, the rights
|
96 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
97 |
+
Rights.
|
98 |
+
|
99 |
+
e. Effective Technological Measures means those measures that, in the
|
100 |
+
absence of proper authority, may not be circumvented under laws
|
101 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
102 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
103 |
+
agreements.
|
104 |
+
|
105 |
+
f. Exceptions and Limitations means fair use, fair dealing, and/or
|
106 |
+
any other exception or limitation to Copyright and Similar Rights
|
107 |
+
that applies to Your use of the Licensed Material.
|
108 |
+
|
109 |
+
g. License Elements means the license attributes listed in the name
|
110 |
+
of a Creative Commons Public License. The License Elements of this
|
111 |
+
Public License are Attribution and ShareAlike.
|
112 |
+
|
113 |
+
h. Licensed Material means the artistic or literary work, database,
|
114 |
+
or other material to which the Licensor applied this Public
|
115 |
+
License.
|
116 |
+
|
117 |
+
i. Licensed Rights means the rights granted to You subject to the
|
118 |
+
terms and conditions of this Public License, which are limited to
|
119 |
+
all Copyright and Similar Rights that apply to Your use of the
|
120 |
+
Licensed Material and that the Licensor has authority to license.
|
121 |
+
|
122 |
+
j. Licensor means the individual(s) or entity(ies) granting rights
|
123 |
+
under this Public License.
|
124 |
+
|
125 |
+
k. Share means to provide material to the public by any means or
|
126 |
+
process that requires permission under the Licensed Rights, such
|
127 |
+
as reproduction, public display, public performance, distribution,
|
128 |
+
dissemination, communication, or importation, and to make material
|
129 |
+
available to the public including in ways that members of the
|
130 |
+
public may access the material from a place and at a time
|
131 |
+
individually chosen by them.
|
132 |
+
|
133 |
+
l. Sui Generis Database Rights means rights other than copyright
|
134 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
135 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
136 |
+
as amended and/or succeeded, as well as other essentially
|
137 |
+
equivalent rights anywhere in the world.
|
138 |
+
|
139 |
+
m. You means the individual or entity exercising the Licensed Rights
|
140 |
+
under this Public License. Your has a corresponding meaning.
|
141 |
+
|
142 |
+
|
143 |
+
Section 2 -- Scope.
|
144 |
+
|
145 |
+
a. License grant.
|
146 |
+
|
147 |
+
1. Subject to the terms and conditions of this Public License,
|
148 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
149 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
150 |
+
exercise the Licensed Rights in the Licensed Material to:
|
151 |
+
|
152 |
+
a. reproduce and Share the Licensed Material, in whole or
|
153 |
+
in part; and
|
154 |
+
|
155 |
+
b. produce, reproduce, and Share Adapted Material.
|
156 |
+
|
157 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
158 |
+
Exceptions and Limitations apply to Your use, this Public
|
159 |
+
License does not apply, and You do not need to comply with
|
160 |
+
its terms and conditions.
|
161 |
+
|
162 |
+
3. Term. The term of this Public License is specified in Section
|
163 |
+
6(a).
|
164 |
+
|
165 |
+
4. Media and formats; technical modifications allowed. The
|
166 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
167 |
+
all media and formats whether now known or hereafter created,
|
168 |
+
and to make technical modifications necessary to do so. The
|
169 |
+
Licensor waives and/or agrees not to assert any right or
|
170 |
+
authority to forbid You from making technical modifications
|
171 |
+
necessary to exercise the Licensed Rights, including
|
172 |
+
technical modifications necessary to circumvent Effective
|
173 |
+
Technological Measures. For purposes of this Public License,
|
174 |
+
simply making modifications authorized by this Section 2(a)
|
175 |
+
(4) never produces Adapted Material.
|
176 |
+
|
177 |
+
5. Downstream recipients.
|
178 |
+
|
179 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
180 |
+
recipient of the Licensed Material automatically
|
181 |
+
receives an offer from the Licensor to exercise the
|
182 |
+
Licensed Rights under the terms and conditions of this
|
183 |
+
Public License.
|
184 |
+
|
185 |
+
b. Additional offer from the Licensor -- Adapted Material.
|
186 |
+
Every recipient of Adapted Material from You
|
187 |
+
automatically receives an offer from the Licensor to
|
188 |
+
exercise the Licensed Rights in the Adapted Material
|
189 |
+
under the conditions of the Adapter's License You apply.
|
190 |
+
|
191 |
+
c. No downstream restrictions. You may not offer or impose
|
192 |
+
any additional or different terms or conditions on, or
|
193 |
+
apply any Effective Technological Measures to, the
|
194 |
+
Licensed Material if doing so restricts exercise of the
|
195 |
+
Licensed Rights by any recipient of the Licensed
|
196 |
+
Material.
|
197 |
+
|
198 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
199 |
+
may be construed as permission to assert or imply that You
|
200 |
+
are, or that Your use of the Licensed Material is, connected
|
201 |
+
with, or sponsored, endorsed, or granted official status by,
|
202 |
+
the Licensor or others designated to receive attribution as
|
203 |
+
provided in Section 3(a)(1)(A)(i).
|
204 |
+
|
205 |
+
b. Other rights.
|
206 |
+
|
207 |
+
1. Moral rights, such as the right of integrity, are not
|
208 |
+
licensed under this Public License, nor are publicity,
|
209 |
+
privacy, and/or other similar personality rights; however, to
|
210 |
+
the extent possible, the Licensor waives and/or agrees not to
|
211 |
+
assert any such rights held by the Licensor to the limited
|
212 |
+
extent necessary to allow You to exercise the Licensed
|
213 |
+
Rights, but not otherwise.
|
214 |
+
|
215 |
+
2. Patent and trademark rights are not licensed under this
|
216 |
+
Public License.
|
217 |
+
|
218 |
+
3. To the extent possible, the Licensor waives any right to
|
219 |
+
collect royalties from You for the exercise of the Licensed
|
220 |
+
Rights, whether directly or through a collecting society
|
221 |
+
under any voluntary or waivable statutory or compulsory
|
222 |
+
licensing scheme. In all other cases the Licensor expressly
|
223 |
+
reserves any right to collect such royalties.
|
224 |
+
|
225 |
+
|
226 |
+
Section 3 -- License Conditions.
|
227 |
+
|
228 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
229 |
+
following conditions.
|
230 |
+
|
231 |
+
a. Attribution.
|
232 |
+
|
233 |
+
1. If You Share the Licensed Material (including in modified
|
234 |
+
form), You must:
|
235 |
+
|
236 |
+
a. retain the following if it is supplied by the Licensor
|
237 |
+
with the Licensed Material:
|
238 |
+
|
239 |
+
i. identification of the creator(s) of the Licensed
|
240 |
+
Material and any others designated to receive
|
241 |
+
attribution, in any reasonable manner requested by
|
242 |
+
the Licensor (including by pseudonym if
|
243 |
+
designated);
|
244 |
+
|
245 |
+
ii. a copyright notice;
|
246 |
+
|
247 |
+
iii. a notice that refers to this Public License;
|
248 |
+
|
249 |
+
iv. a notice that refers to the disclaimer of
|
250 |
+
warranties;
|
251 |
+
|
252 |
+
v. a URI or hyperlink to the Licensed Material to the
|
253 |
+
extent reasonably practicable;
|
254 |
+
|
255 |
+
b. indicate if You modified the Licensed Material and
|
256 |
+
retain an indication of any previous modifications; and
|
257 |
+
|
258 |
+
c. indicate the Licensed Material is licensed under this
|
259 |
+
Public License, and include the text of, or the URI or
|
260 |
+
hyperlink to, this Public License.
|
261 |
+
|
262 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
263 |
+
reasonable manner based on the medium, means, and context in
|
264 |
+
which You Share the Licensed Material. For example, it may be
|
265 |
+
reasonable to satisfy the conditions by providing a URI or
|
266 |
+
hyperlink to a resource that includes the required
|
267 |
+
information.
|
268 |
+
|
269 |
+
3. If requested by the Licensor, You must remove any of the
|
270 |
+
information required by Section 3(a)(1)(A) to the extent
|
271 |
+
reasonably practicable.
|
272 |
+
|
273 |
+
b. ShareAlike.
|
274 |
+
|
275 |
+
In addition to the conditions in Section 3(a), if You Share
|
276 |
+
Adapted Material You produce, the following conditions also apply.
|
277 |
+
|
278 |
+
1. The Adapter's License You apply must be a Creative Commons
|
279 |
+
license with the same License Elements, this version or
|
280 |
+
later, or a BY-SA Compatible License.
|
281 |
+
|
282 |
+
2. You must include the text of, or the URI or hyperlink to, the
|
283 |
+
Adapter's License You apply. You may satisfy this condition
|
284 |
+
in any reasonable manner based on the medium, means, and
|
285 |
+
context in which You Share Adapted Material.
|
286 |
+
|
287 |
+
3. You may not offer or impose any additional or different terms
|
288 |
+
or conditions on, or apply any Effective Technological
|
289 |
+
Measures to, Adapted Material that restrict exercise of the
|
290 |
+
rights granted under the Adapter's License You apply.
|
291 |
+
|
292 |
+
|
293 |
+
Section 4 -- Sui Generis Database Rights.
|
294 |
+
|
295 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
296 |
+
apply to Your use of the Licensed Material:
|
297 |
+
|
298 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
299 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
300 |
+
portion of the contents of the database;
|
301 |
+
|
302 |
+
b. if You include all or a substantial portion of the database
|
303 |
+
contents in a database in which You have Sui Generis Database
|
304 |
+
Rights, then the database in which You have Sui Generis Database
|
305 |
+
Rights (but not its individual contents) is Adapted Material,
|
306 |
+
|
307 |
+
including for purposes of Section 3(b); and
|
308 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
309 |
+
all or a substantial portion of the contents of the database.
|
310 |
+
|
311 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
312 |
+
replace Your obligations under this Public License where the Licensed
|
313 |
+
Rights include other Copyright and Similar Rights.
|
314 |
+
|
315 |
+
|
316 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
317 |
+
|
318 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
319 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
320 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
321 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
322 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
323 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
324 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
325 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
326 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
327 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
328 |
+
|
329 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
330 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
331 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
332 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
333 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
334 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
335 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
336 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
337 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
338 |
+
|
339 |
+
c. The disclaimer of warranties and limitation of liability provided
|
340 |
+
above shall be interpreted in a manner that, to the extent
|
341 |
+
possible, most closely approximates an absolute disclaimer and
|
342 |
+
waiver of all liability.
|
343 |
+
|
344 |
+
|
345 |
+
Section 6 -- Term and Termination.
|
346 |
+
|
347 |
+
a. This Public License applies for the term of the Copyright and
|
348 |
+
Similar Rights licensed here. However, if You fail to comply with
|
349 |
+
this Public License, then Your rights under this Public License
|
350 |
+
terminate automatically.
|
351 |
+
|
352 |
+
b. Where Your right to use the Licensed Material has terminated under
|
353 |
+
Section 6(a), it reinstates:
|
354 |
+
|
355 |
+
1. automatically as of the date the violation is cured, provided
|
356 |
+
it is cured within 30 days of Your discovery of the
|
357 |
+
violation; or
|
358 |
+
|
359 |
+
2. upon express reinstatement by the Licensor.
|
360 |
+
|
361 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
362 |
+
right the Licensor may have to seek remedies for Your violations
|
363 |
+
of this Public License.
|
364 |
+
|
365 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
366 |
+
Licensed Material under separate terms or conditions or stop
|
367 |
+
distributing the Licensed Material at any time; however, doing so
|
368 |
+
will not terminate this Public License.
|
369 |
+
|
370 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
371 |
+
License.
|
372 |
+
|
373 |
+
|
374 |
+
Section 7 -- Other Terms and Conditions.
|
375 |
+
|
376 |
+
a. The Licensor shall not be bound by any additional or different
|
377 |
+
terms or conditions communicated by You unless expressly agreed.
|
378 |
+
|
379 |
+
b. Any arrangements, understandings, or agreements regarding the
|
380 |
+
Licensed Material not stated herein are separate from and
|
381 |
+
independent of the terms and conditions of this Public License.
|
382 |
+
|
383 |
+
|
384 |
+
Section 8 -- Interpretation.
|
385 |
+
|
386 |
+
a. For the avoidance of doubt, this Public License does not, and
|
387 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
388 |
+
conditions on any use of the Licensed Material that could lawfully
|
389 |
+
be made without permission under this Public License.
|
390 |
+
|
391 |
+
b. To the extent possible, if any provision of this Public License is
|
392 |
+
deemed unenforceable, it shall be automatically reformed to the
|
393 |
+
minimum extent necessary to make it enforceable. If the provision
|
394 |
+
cannot be reformed, it shall be severed from this Public License
|
395 |
+
without affecting the enforceability of the remaining terms and
|
396 |
+
conditions.
|
397 |
+
|
398 |
+
c. No term or condition of this Public License will be waived and no
|
399 |
+
failure to comply consented to unless expressly agreed to by the
|
400 |
+
Licensor.
|
401 |
+
|
402 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
403 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
404 |
+
that apply to the Licensor or You, including from the legal
|
405 |
+
processes of any jurisdiction or authority.
|
406 |
+
|
407 |
+
|
408 |
+
=======================================================================
|
409 |
+
|
410 |
+
Creative Commons is not a party to its public
|
411 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
412 |
+
its public licenses to material it publishes and in those instances
|
413 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
414 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
415 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
416 |
+
material is shared under a Creative Commons public license or as
|
417 |
+
otherwise permitted by the Creative Commons policies published at
|
418 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
419 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
420 |
+
of Creative Commons without its prior written consent including,
|
421 |
+
without limitation, in connection with any unauthorized modifications
|
422 |
+
to any of its public licenses or any other arrangements,
|
423 |
+
understandings, or agreements concerning use of licensed material. For
|
424 |
+
the avoidance of doubt, this paragraph does not form part of the
|
425 |
+
public licenses.
|
426 |
+
|
427 |
+
Creative Commons may be contacted at creativecommons.org.
|
dialogue-summarization/CRD3/README.md
ADDED
@@ -0,0 +1,142 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# [ACL 2020] Storytelling with Dialogue: A *Critical Role* Dungeons and Dragons Dataset
|
2 |
+
|
3 |
+
|
4 |
+
# Overview
|
5 |
+
|
6 |
+
This paper describes the Critical Role Dungeons and Dragons Dataset (CRD3) and related analyses. Critical Role is an unscripted, live-streamed show where a fixed group of people play Dungeons and Dragons, an open-ended role-playing game. The dataset is collected from 159 Critical Role episodes transcribed to text dialogues, consisting of 398,682 turns. It also includes corresponding abstractive summaries collected from the Fandom wiki. The dataset is linguistically unique in that the narratives are generated entirely through player collaboration and spoken interaction. For each dialogue, there are a large number of turns, multiple abstractive summaries with varying levels of detail, and semantic ties to the previous dialogues. In addition, we provide a data augmentation method that produces 34,243 summary-dialogue chunk pairs to support current neural ML approaches, and we provide an abstractive summarization benchmark and evaluation.
|
7 |
+
|
8 |
+
Here is an example of a summary chunk aligned to a section in the dialogue, as shown in the paper:
|
9 |
+
|
10 |
+
<img src="images/figure 1.PNG" width="35%">
|
11 |
+
|
12 |
+
Here is a comparison of the dataset to similar datasets, as shown in the paper:
|
13 |
+
|
14 |
+
<img src="images/table 1.PNG" width="75%">
|
15 |
+
|
16 |
+
## Repo Structure
|
17 |
+
.
|
18 |
+
├── baseline # The baseline folder will feature a frozen set of data and code to reproduce statistics and metrics calculated in the paper
|
19 |
+
│ ├── data # Folder structure for data same as below
|
20 |
+
│ │ └── ...
|
21 |
+
│ └── ...
|
22 |
+
├── data # All of the data (including future updates) for the CRD3 Dataset will be available in the data folder
|
23 |
+
│ ├── aligned data # The final summary-dialogue chunk aligned data
|
24 |
+
│ │ ├── c=2 # Alignments using summary chunk sizes of size 2
|
25 |
+
│ │ ├── c=3 # ...of size 3
|
26 |
+
│ │ ├── c=4 # ...of size 4
|
27 |
+
│ │ ├── c=...n # ...of size n if more sizes are added
|
28 |
+
│ │ ├── test_files # Campaign and episode numbers for files belonging to test set (format ex: 'C2E031')
|
29 |
+
│ │ ├── val_files # Campaign and episode numbers for files belonging to validation set
|
30 |
+
│ │ └── train_files # Campaign and episode numbers for files belonging to training set
|
31 |
+
│ ├── cleaned data # The cleaned transcript data and associated episode summary (cleaning described in paper)
|
32 |
+
│ └── raw summary data # The raw summary data as extracted from the wiki
|
33 |
+
└── ...
|
34 |
+
|
35 |
+
Source files for helping with data exploration and iteration to be added soon!
|
36 |
+
|
37 |
+
## .../data/aligned data/ Usage
|
38 |
+
|
39 |
+
Each of json files in `.../data/aligned data/c=.../*.json` has the following filename format:
|
40 |
+
```
|
41 |
+
C<campaign number>E<episode number>_<summary chunk size>_<sentence offset>.json
|
42 |
+
```
|
43 |
+
Taking `C1E001_2_1.json` as an example: this is the aligned data for campaign 1, episode 1 with chunk size 2, chunks offset by 1.
|
44 |
+
The offset is the number of sentences after sentence 1 in the summary that the chunking starts from. For example, with a summary with sentences `[A,B,C,D,E]` a chunk size of 2 and offset of 1 would produce the chunks `[BC,CD,DE]`. Each dialogue and associated summary is chunked using all chunk sizes, thus the entire dialogue summary set is currently available in chunk sizes 2, 3, and 4 as described in the paper.
|
45 |
+
|
46 |
+
To see if a json file is in test, val, or train set (as defined in the paper), simply check if the campaign and episode substring (ex: `C1E001`) are in one of the sets.
|
47 |
+
|
48 |
+
The JSON schema for the aligned data is as follows:
|
49 |
+
```
|
50 |
+
[
|
51 |
+
{
|
52 |
+
"CHUNK": (str) The summary chunk after the chunking process.,
|
53 |
+
"ALIGNMENT": {
|
54 |
+
"CHUNK ID": (int) The chunk position for the specified chunk size and offset,
|
55 |
+
"TURN START": (int) The turn position of the dialogue that the alignment starts at,
|
56 |
+
"TURN END": (int) The turn position of the dialogue that the alignment ends at,
|
57 |
+
"ALIGNMENT SCORE": (float) The alignmed score of the summary chunk pair (details in paper)
|
58 |
+
},
|
59 |
+
"TURNS": [
|
60 |
+
{
|
61 |
+
"NAMES": [
|
62 |
+
(str) List of names associated with that specific turn. If more than name is in list, the transcribers have associated the utterances with all specified names.
|
63 |
+
],
|
64 |
+
"UTTERANCES": [
|
65 |
+
(str) List of utterances in the turn, they are broken into chunks as specified by the transcribers.
|
66 |
+
],
|
67 |
+
"NUMBER": (int) Turn position in the dialogue
|
68 |
+
}
|
69 |
+
]
|
70 |
+
},
|
71 |
+
...
|
72 |
+
]
|
73 |
+
```
|
74 |
+
Turn numbers for the dialogues start from 0 and go to `len([dialogue turns])-1`.
|
75 |
+
|
76 |
+
Example:
|
77 |
+
```
|
78 |
+
[
|
79 |
+
{
|
80 |
+
"CHUNK": "Matthew Mercer introduces himself and the concept of Critical Role. The introduction videos for Grog, Keyleth, Percy, Scanlan, Tiberius, Vax'ildan, and Vex'ahlia are shown.",
|
81 |
+
"ALIGNMENT": {
|
82 |
+
"CHUNK ID": 0,
|
83 |
+
"TURN START": 0,
|
84 |
+
"TURN END": 0,
|
85 |
+
"ALIGNMENT SCORE": 0
|
86 |
+
},
|
87 |
+
"TURNS": [
|
88 |
+
{
|
89 |
+
"NAMES": [
|
90 |
+
"MATT"
|
91 |
+
],
|
92 |
+
"UTTERANCES": [
|
93 |
+
"Hello everyone. My name is Matthew Mercer,",
|
94 |
+
"voice actor and Dungeon Master for Critical Role",
|
95 |
+
"on Geek & Sundry, where I take a bunch of other",
|
96 |
+
"voice actors and run them through a fantastical",
|
97 |
+
"fantasy adventure through the world of Dungeons &",
|
98 |
+
"Dragons. We play every Thursday at 7:00pm Pacific",
|
99 |
+
"Standard Time on Geek & Sundry's Twitch stream.",
|
100 |
+
"Please come watch us live if you have the",
|
101 |
+
"opportunity. Back episodes and future episodes",
|
102 |
+
"will be uploaded on the Geek & Sundry website. You",
|
103 |
+
"can also check them out there. In the meantime,",
|
104 |
+
"enjoy!"
|
105 |
+
],
|
106 |
+
"NUMBER": 0
|
107 |
+
}
|
108 |
+
]
|
109 |
+
},
|
110 |
+
...
|
111 |
+
]
|
112 |
+
```
|
113 |
+
|
114 |
+
## Citation
|
115 |
+
|
116 |
+
Please cite the following paper if you want to use this dataset in your research
|
117 |
+
```
|
118 |
+
R. Rameshkumar and P. Bailey. Storytelling with Dialogue: A Critical Role Dungeons and Dragons Dataset. ACL 2020.
|
119 |
+
|
120 |
+
@inproceedings{
|
121 |
+
title = "Storytelling with Dialogue: A Critical Role Dungeons and Dragons Dataset",
|
122 |
+
author = "Rameshkumar, Revanth and
|
123 |
+
Bailey, Peter",
|
124 |
+
year = "2020",
|
125 |
+
publisher = "Association for Computational Linguistics",
|
126 |
+
conference = "ACL"
|
127 |
+
}
|
128 |
+
```
|
129 |
+
|
130 |
+
## Acknowledgements
|
131 |
+
|
132 |
+
We thank the [Critical Role](https://critrole.com/team/) team for creating a fun, entertaining, organized,and growing set of livestreams that we used in this dataset. We also thank the [CRTranscript](https://crtranscript.tumblr.com/about) team for providing high quality transcripts of the show for the community and we thank all the contributors of the [Critical Role Wiki](https://criticalrole.fandom.com/).
|
133 |
+
|
134 |
+
## Contact and Discuss!
|
135 |
+
|
136 |
+
Feel free to reach out to us via this repo with questions or comments!
|
137 |
+
|
138 |
+
|
139 |
+
|
140 |
+
|
141 |
+
This work is licensed under a [Creative Commons Attribution-ShareAlike 4.0
|
142 |
+
International License][cc-by-sa]., as corresponding to the Critical Role Wiki https://criticalrole.fandom.com/
|
dialogue-summarization/CRD3/converted_examples.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dialogue-summarization/CRD3/original_examples.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dialogue-summarization/ConvoSumm/LICENSE
ADDED
@@ -0,0 +1,427 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Attribution-ShareAlike 4.0 International
|
2 |
+
|
3 |
+
=======================================================================
|
4 |
+
|
5 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
6 |
+
does not provide legal services or legal advice. Distribution of
|
7 |
+
Creative Commons public licenses does not create a lawyer-client or
|
8 |
+
other relationship. Creative Commons makes its licenses and related
|
9 |
+
information available on an "as-is" basis. Creative Commons gives no
|
10 |
+
warranties regarding its licenses, any material licensed under their
|
11 |
+
terms and conditions, or any related information. Creative Commons
|
12 |
+
disclaims all liability for damages resulting from their use to the
|
13 |
+
fullest extent possible.
|
14 |
+
|
15 |
+
Using Creative Commons Public Licenses
|
16 |
+
|
17 |
+
Creative Commons public licenses provide a standard set of terms and
|
18 |
+
conditions that creators and other rights holders may use to share
|
19 |
+
original works of authorship and other material subject to copyright
|
20 |
+
and certain other rights specified in the public license below. The
|
21 |
+
following considerations are for informational purposes only, are not
|
22 |
+
exhaustive, and do not form part of our licenses.
|
23 |
+
|
24 |
+
Considerations for licensors: Our public licenses are
|
25 |
+
intended for use by those authorized to give the public
|
26 |
+
permission to use material in ways otherwise restricted by
|
27 |
+
copyright and certain other rights. Our licenses are
|
28 |
+
irrevocable. Licensors should read and understand the terms
|
29 |
+
and conditions of the license they choose before applying it.
|
30 |
+
Licensors should also secure all rights necessary before
|
31 |
+
applying our licenses so that the public can reuse the
|
32 |
+
material as expected. Licensors should clearly mark any
|
33 |
+
material not subject to the license. This includes other CC-
|
34 |
+
licensed material, or material used under an exception or
|
35 |
+
limitation to copyright. More considerations for licensors:
|
36 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
37 |
+
|
38 |
+
Considerations for the public: By using one of our public
|
39 |
+
licenses, a licensor grants the public permission to use the
|
40 |
+
licensed material under specified terms and conditions. If
|
41 |
+
the licensor's permission is not necessary for any reason--for
|
42 |
+
example, because of any applicable exception or limitation to
|
43 |
+
copyright--then that use is not regulated by the license. Our
|
44 |
+
licenses grant only permissions under copyright and certain
|
45 |
+
other rights that a licensor has authority to grant. Use of
|
46 |
+
the licensed material may still be restricted for other
|
47 |
+
reasons, including because others have copyright or other
|
48 |
+
rights in the material. A licensor may make special requests,
|
49 |
+
such as asking that all changes be marked or described.
|
50 |
+
Although not required by our licenses, you are encouraged to
|
51 |
+
respect those requests where reasonable. More_considerations
|
52 |
+
for the public:
|
53 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
54 |
+
|
55 |
+
=======================================================================
|
56 |
+
|
57 |
+
Creative Commons Attribution-ShareAlike 4.0 International Public
|
58 |
+
License
|
59 |
+
|
60 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
61 |
+
to be bound by the terms and conditions of this Creative Commons
|
62 |
+
Attribution-ShareAlike 4.0 International Public License ("Public
|
63 |
+
License"). To the extent this Public License may be interpreted as a
|
64 |
+
contract, You are granted the Licensed Rights in consideration of Your
|
65 |
+
acceptance of these terms and conditions, and the Licensor grants You
|
66 |
+
such rights in consideration of benefits the Licensor receives from
|
67 |
+
making the Licensed Material available under these terms and
|
68 |
+
conditions.
|
69 |
+
|
70 |
+
|
71 |
+
Section 1 -- Definitions.
|
72 |
+
|
73 |
+
a. Adapted Material means material subject to Copyright and Similar
|
74 |
+
Rights that is derived from or based upon the Licensed Material
|
75 |
+
and in which the Licensed Material is translated, altered,
|
76 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
77 |
+
permission under the Copyright and Similar Rights held by the
|
78 |
+
Licensor. For purposes of this Public License, where the Licensed
|
79 |
+
Material is a musical work, performance, or sound recording,
|
80 |
+
Adapted Material is always produced where the Licensed Material is
|
81 |
+
synched in timed relation with a moving image.
|
82 |
+
|
83 |
+
b. Adapter's License means the license You apply to Your Copyright
|
84 |
+
and Similar Rights in Your contributions to Adapted Material in
|
85 |
+
accordance with the terms and conditions of this Public License.
|
86 |
+
|
87 |
+
c. BY-SA Compatible License means a license listed at
|
88 |
+
creativecommons.org/compatiblelicenses, approved by Creative
|
89 |
+
Commons as essentially the equivalent of this Public License.
|
90 |
+
|
91 |
+
d. Copyright and Similar Rights means copyright and/or similar rights
|
92 |
+
closely related to copyright including, without limitation,
|
93 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
94 |
+
Rights, without regard to how the rights are labeled or
|
95 |
+
categorized. For purposes of this Public License, the rights
|
96 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
97 |
+
Rights.
|
98 |
+
|
99 |
+
e. Effective Technological Measures means those measures that, in the
|
100 |
+
absence of proper authority, may not be circumvented under laws
|
101 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
102 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
103 |
+
agreements.
|
104 |
+
|
105 |
+
f. Exceptions and Limitations means fair use, fair dealing, and/or
|
106 |
+
any other exception or limitation to Copyright and Similar Rights
|
107 |
+
that applies to Your use of the Licensed Material.
|
108 |
+
|
109 |
+
g. License Elements means the license attributes listed in the name
|
110 |
+
of a Creative Commons Public License. The License Elements of this
|
111 |
+
Public License are Attribution and ShareAlike.
|
112 |
+
|
113 |
+
h. Licensed Material means the artistic or literary work, database,
|
114 |
+
or other material to which the Licensor applied this Public
|
115 |
+
License.
|
116 |
+
|
117 |
+
i. Licensed Rights means the rights granted to You subject to the
|
118 |
+
terms and conditions of this Public License, which are limited to
|
119 |
+
all Copyright and Similar Rights that apply to Your use of the
|
120 |
+
Licensed Material and that the Licensor has authority to license.
|
121 |
+
|
122 |
+
j. Licensor means the individual(s) or entity(ies) granting rights
|
123 |
+
under this Public License.
|
124 |
+
|
125 |
+
k. Share means to provide material to the public by any means or
|
126 |
+
process that requires permission under the Licensed Rights, such
|
127 |
+
as reproduction, public display, public performance, distribution,
|
128 |
+
dissemination, communication, or importation, and to make material
|
129 |
+
available to the public including in ways that members of the
|
130 |
+
public may access the material from a place and at a time
|
131 |
+
individually chosen by them.
|
132 |
+
|
133 |
+
l. Sui Generis Database Rights means rights other than copyright
|
134 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
135 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
136 |
+
as amended and/or succeeded, as well as other essentially
|
137 |
+
equivalent rights anywhere in the world.
|
138 |
+
|
139 |
+
m. You means the individual or entity exercising the Licensed Rights
|
140 |
+
under this Public License. Your has a corresponding meaning.
|
141 |
+
|
142 |
+
|
143 |
+
Section 2 -- Scope.
|
144 |
+
|
145 |
+
a. License grant.
|
146 |
+
|
147 |
+
1. Subject to the terms and conditions of this Public License,
|
148 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
149 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
150 |
+
exercise the Licensed Rights in the Licensed Material to:
|
151 |
+
|
152 |
+
a. reproduce and Share the Licensed Material, in whole or
|
153 |
+
in part; and
|
154 |
+
|
155 |
+
b. produce, reproduce, and Share Adapted Material.
|
156 |
+
|
157 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
158 |
+
Exceptions and Limitations apply to Your use, this Public
|
159 |
+
License does not apply, and You do not need to comply with
|
160 |
+
its terms and conditions.
|
161 |
+
|
162 |
+
3. Term. The term of this Public License is specified in Section
|
163 |
+
6(a).
|
164 |
+
|
165 |
+
4. Media and formats; technical modifications allowed. The
|
166 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
167 |
+
all media and formats whether now known or hereafter created,
|
168 |
+
and to make technical modifications necessary to do so. The
|
169 |
+
Licensor waives and/or agrees not to assert any right or
|
170 |
+
authority to forbid You from making technical modifications
|
171 |
+
necessary to exercise the Licensed Rights, including
|
172 |
+
technical modifications necessary to circumvent Effective
|
173 |
+
Technological Measures. For purposes of this Public License,
|
174 |
+
simply making modifications authorized by this Section 2(a)
|
175 |
+
(4) never produces Adapted Material.
|
176 |
+
|
177 |
+
5. Downstream recipients.
|
178 |
+
|
179 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
180 |
+
recipient of the Licensed Material automatically
|
181 |
+
receives an offer from the Licensor to exercise the
|
182 |
+
Licensed Rights under the terms and conditions of this
|
183 |
+
Public License.
|
184 |
+
|
185 |
+
b. Additional offer from the Licensor -- Adapted Material.
|
186 |
+
Every recipient of Adapted Material from You
|
187 |
+
automatically receives an offer from the Licensor to
|
188 |
+
exercise the Licensed Rights in the Adapted Material
|
189 |
+
under the conditions of the Adapter's License You apply.
|
190 |
+
|
191 |
+
c. No downstream restrictions. You may not offer or impose
|
192 |
+
any additional or different terms or conditions on, or
|
193 |
+
apply any Effective Technological Measures to, the
|
194 |
+
Licensed Material if doing so restricts exercise of the
|
195 |
+
Licensed Rights by any recipient of the Licensed
|
196 |
+
Material.
|
197 |
+
|
198 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
199 |
+
may be construed as permission to assert or imply that You
|
200 |
+
are, or that Your use of the Licensed Material is, connected
|
201 |
+
with, or sponsored, endorsed, or granted official status by,
|
202 |
+
the Licensor or others designated to receive attribution as
|
203 |
+
provided in Section 3(a)(1)(A)(i).
|
204 |
+
|
205 |
+
b. Other rights.
|
206 |
+
|
207 |
+
1. Moral rights, such as the right of integrity, are not
|
208 |
+
licensed under this Public License, nor are publicity,
|
209 |
+
privacy, and/or other similar personality rights; however, to
|
210 |
+
the extent possible, the Licensor waives and/or agrees not to
|
211 |
+
assert any such rights held by the Licensor to the limited
|
212 |
+
extent necessary to allow You to exercise the Licensed
|
213 |
+
Rights, but not otherwise.
|
214 |
+
|
215 |
+
2. Patent and trademark rights are not licensed under this
|
216 |
+
Public License.
|
217 |
+
|
218 |
+
3. To the extent possible, the Licensor waives any right to
|
219 |
+
collect royalties from You for the exercise of the Licensed
|
220 |
+
Rights, whether directly or through a collecting society
|
221 |
+
under any voluntary or waivable statutory or compulsory
|
222 |
+
licensing scheme. In all other cases the Licensor expressly
|
223 |
+
reserves any right to collect such royalties.
|
224 |
+
|
225 |
+
|
226 |
+
Section 3 -- License Conditions.
|
227 |
+
|
228 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
229 |
+
following conditions.
|
230 |
+
|
231 |
+
a. Attribution.
|
232 |
+
|
233 |
+
1. If You Share the Licensed Material (including in modified
|
234 |
+
form), You must:
|
235 |
+
|
236 |
+
a. retain the following if it is supplied by the Licensor
|
237 |
+
with the Licensed Material:
|
238 |
+
|
239 |
+
i. identification of the creator(s) of the Licensed
|
240 |
+
Material and any others designated to receive
|
241 |
+
attribution, in any reasonable manner requested by
|
242 |
+
the Licensor (including by pseudonym if
|
243 |
+
designated);
|
244 |
+
|
245 |
+
ii. a copyright notice;
|
246 |
+
|
247 |
+
iii. a notice that refers to this Public License;
|
248 |
+
|
249 |
+
iv. a notice that refers to the disclaimer of
|
250 |
+
warranties;
|
251 |
+
|
252 |
+
v. a URI or hyperlink to the Licensed Material to the
|
253 |
+
extent reasonably practicable;
|
254 |
+
|
255 |
+
b. indicate if You modified the Licensed Material and
|
256 |
+
retain an indication of any previous modifications; and
|
257 |
+
|
258 |
+
c. indicate the Licensed Material is licensed under this
|
259 |
+
Public License, and include the text of, or the URI or
|
260 |
+
hyperlink to, this Public License.
|
261 |
+
|
262 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
263 |
+
reasonable manner based on the medium, means, and context in
|
264 |
+
which You Share the Licensed Material. For example, it may be
|
265 |
+
reasonable to satisfy the conditions by providing a URI or
|
266 |
+
hyperlink to a resource that includes the required
|
267 |
+
information.
|
268 |
+
|
269 |
+
3. If requested by the Licensor, You must remove any of the
|
270 |
+
information required by Section 3(a)(1)(A) to the extent
|
271 |
+
reasonably practicable.
|
272 |
+
|
273 |
+
b. ShareAlike.
|
274 |
+
|
275 |
+
In addition to the conditions in Section 3(a), if You Share
|
276 |
+
Adapted Material You produce, the following conditions also apply.
|
277 |
+
|
278 |
+
1. The Adapter's License You apply must be a Creative Commons
|
279 |
+
license with the same License Elements, this version or
|
280 |
+
later, or a BY-SA Compatible License.
|
281 |
+
|
282 |
+
2. You must include the text of, or the URI or hyperlink to, the
|
283 |
+
Adapter's License You apply. You may satisfy this condition
|
284 |
+
in any reasonable manner based on the medium, means, and
|
285 |
+
context in which You Share Adapted Material.
|
286 |
+
|
287 |
+
3. You may not offer or impose any additional or different terms
|
288 |
+
or conditions on, or apply any Effective Technological
|
289 |
+
Measures to, Adapted Material that restrict exercise of the
|
290 |
+
rights granted under the Adapter's License You apply.
|
291 |
+
|
292 |
+
|
293 |
+
Section 4 -- Sui Generis Database Rights.
|
294 |
+
|
295 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
296 |
+
apply to Your use of the Licensed Material:
|
297 |
+
|
298 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
299 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
300 |
+
portion of the contents of the database;
|
301 |
+
|
302 |
+
b. if You include all or a substantial portion of the database
|
303 |
+
contents in a database in which You have Sui Generis Database
|
304 |
+
Rights, then the database in which You have Sui Generis Database
|
305 |
+
Rights (but not its individual contents) is Adapted Material,
|
306 |
+
|
307 |
+
including for purposes of Section 3(b); and
|
308 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
309 |
+
all or a substantial portion of the contents of the database.
|
310 |
+
|
311 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
312 |
+
replace Your obligations under this Public License where the Licensed
|
313 |
+
Rights include other Copyright and Similar Rights.
|
314 |
+
|
315 |
+
|
316 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
317 |
+
|
318 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
319 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
320 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
321 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
322 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
323 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
324 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
325 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
326 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
327 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
328 |
+
|
329 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
330 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
331 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
332 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
333 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
334 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
335 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
336 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
337 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
338 |
+
|
339 |
+
c. The disclaimer of warranties and limitation of liability provided
|
340 |
+
above shall be interpreted in a manner that, to the extent
|
341 |
+
possible, most closely approximates an absolute disclaimer and
|
342 |
+
waiver of all liability.
|
343 |
+
|
344 |
+
|
345 |
+
Section 6 -- Term and Termination.
|
346 |
+
|
347 |
+
a. This Public License applies for the term of the Copyright and
|
348 |
+
Similar Rights licensed here. However, if You fail to comply with
|
349 |
+
this Public License, then Your rights under this Public License
|
350 |
+
terminate automatically.
|
351 |
+
|
352 |
+
b. Where Your right to use the Licensed Material has terminated under
|
353 |
+
Section 6(a), it reinstates:
|
354 |
+
|
355 |
+
1. automatically as of the date the violation is cured, provided
|
356 |
+
it is cured within 30 days of Your discovery of the
|
357 |
+
violation; or
|
358 |
+
|
359 |
+
2. upon express reinstatement by the Licensor.
|
360 |
+
|
361 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
362 |
+
right the Licensor may have to seek remedies for Your violations
|
363 |
+
of this Public License.
|
364 |
+
|
365 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
366 |
+
Licensed Material under separate terms or conditions or stop
|
367 |
+
distributing the Licensed Material at any time; however, doing so
|
368 |
+
will not terminate this Public License.
|
369 |
+
|
370 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
371 |
+
License.
|
372 |
+
|
373 |
+
|
374 |
+
Section 7 -- Other Terms and Conditions.
|
375 |
+
|
376 |
+
a. The Licensor shall not be bound by any additional or different
|
377 |
+
terms or conditions communicated by You unless expressly agreed.
|
378 |
+
|
379 |
+
b. Any arrangements, understandings, or agreements regarding the
|
380 |
+
Licensed Material not stated herein are separate from and
|
381 |
+
independent of the terms and conditions of this Public License.
|
382 |
+
|
383 |
+
|
384 |
+
Section 8 -- Interpretation.
|
385 |
+
|
386 |
+
a. For the avoidance of doubt, this Public License does not, and
|
387 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
388 |
+
conditions on any use of the Licensed Material that could lawfully
|
389 |
+
be made without permission under this Public License.
|
390 |
+
|
391 |
+
b. To the extent possible, if any provision of this Public License is
|
392 |
+
deemed unenforceable, it shall be automatically reformed to the
|
393 |
+
minimum extent necessary to make it enforceable. If the provision
|
394 |
+
cannot be reformed, it shall be severed from this Public License
|
395 |
+
without affecting the enforceability of the remaining terms and
|
396 |
+
conditions.
|
397 |
+
|
398 |
+
c. No term or condition of this Public License will be waived and no
|
399 |
+
failure to comply consented to unless expressly agreed to by the
|
400 |
+
Licensor.
|
401 |
+
|
402 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
403 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
404 |
+
that apply to the Licensor or You, including from the legal
|
405 |
+
processes of any jurisdiction or authority.
|
406 |
+
|
407 |
+
|
408 |
+
=======================================================================
|
409 |
+
|
410 |
+
Creative Commons is not a party to its public
|
411 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
412 |
+
its public licenses to material it publishes and in those instances
|
413 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
414 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
415 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
416 |
+
material is shared under a Creative Commons public license or as
|
417 |
+
otherwise permitted by the Creative Commons policies published at
|
418 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
419 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
420 |
+
of Creative Commons without its prior written consent including,
|
421 |
+
without limitation, in connection with any unauthorized modifications
|
422 |
+
to any of its public licenses or any other arrangements,
|
423 |
+
understandings, or agreements concerning use of licensed material. For
|
424 |
+
the avoidance of doubt, this paragraph does not form part of the
|
425 |
+
public licenses.
|
426 |
+
|
427 |
+
Creative Commons may be contacted at creativecommons.org.
|
dialogue-summarization/ConvoSumm/README.md
ADDED
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ConvoSumm
|
2 |
+
Data, code, and model checkpoints for the ACL 2021 paper [ConvoSumm: Conversation Summarization Benchmark and Improved Abstractive Summarization with Argument Mining](https://arxiv.org/pdf/2106.00829.pdf)!
|
3 |
+
</br>
|
4 |
+
|
5 |
+
## Data
|
6 |
+
The data can be accessed from this [Google Drive link](https://drive.google.com/drive/folders/1HfyCMa1fQ5DkzME9RQZkytZQfyDjE1EK?usp=sharing). </br>
|
7 |
+
|
8 |
+
The `data-non-processed` contains the original, non-processed data and is 27MB, while `data-processed` contains the data for vanilla, **-arg-filtered**, and **-arg-graph** experiments, as well as model outputs, and is 611 MB. </br>
|
9 |
+
|
10 |
+
Using the [gdrive cli](https://github.com/prasmussen/gdrive), download the folders with the following command </br>
|
11 |
+
```
|
12 |
+
gdrive download --recursive 1HfyCMa1fQ5DkzME9RQZkytZQfyDjE1EK
|
13 |
+
```
|
14 |
+
|
15 |
+
The data can also be downloaded from this [S3 bucket](https://s3.console.aws.amazon.com/s3/buckets/convosumm). </br>
|
16 |
+
```
|
17 |
+
aws s3 cp --recursive s3://convosumm/data/ ./data
|
18 |
+
```
|
19 |
+
|
20 |
+
|
21 |
+
## Code and Model Checkpoints
|
22 |
+
Please see this [README](https://github.com/Yale-LILY/ConvoSumm/blob/master/code/README.md) for code details. </br>
|
23 |
+
|
24 |
+
Model checkpoints can be downloaded from the S3 bucket (~80GB): </br>
|
25 |
+
```
|
26 |
+
aws s3 cp --recursive s3://convosumm/checkpoints/ ./checkpoints
|
27 |
+
```
|
28 |
+
|
dialogue-summarization/ConvoSumm/converted_examples.json
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"ConvoSumm--train--1": {
|
3 |
+
"original dialog id": "",
|
4 |
+
"dialog index": 1,
|
5 |
+
"original dialog info": {
|
6 |
+
"summary": "Commenters respond to a question placed by the Original POster as to what time the AMD presentation starts there in the Netherlands. Most responses answer back with the time frame converted to 12 PM EST. another comment states that it takes place at the same time as the Nintendo E3 Conference.",
|
7 |
+
"dialog history": "Title: Does anybody know at what time the AMD presentation will be for the netherlands? Subreddit: pcmasterrace I'm really bad with timezones. Its in 3 hours and 4 minutes. its at 8pm ET, its now 9am ET Their official twitch states 9am pst 12pm est. is there a seperate amd show besides the pc gaming one? I dont believe I have no clue where you got 8 from since i went to their twitter and all the post are about the one at 12 today. its the same time as nintendos E3 confernece , so in abput 3/4 hours It starts at 2 AM for you, I believe. 1800 for central and 1900 for eastern europe",
|
8 |
+
"sub dataset": "reddit"
|
9 |
+
},
|
10 |
+
"log": ""
|
11 |
+
},
|
12 |
+
"ConvoSumm--train--2": {
|
13 |
+
"original dialog id": "",
|
14 |
+
"dialog index": 2,
|
15 |
+
"original dialog info": {
|
16 |
+
"summary": "Some commenters do not recommend using oil at all, while others like using it. Those who use oil differ in their opinions about which oils to use, such as Safflower or Coconut oil, but do not suggest using olive oil or vegetable oil. Those who do not use oil suggest using nothing or preparing the pan with water instead of the oil.",
|
17 |
+
"dialog history": "Title: Best oil to cook with for losing weight Subreddit: diet Title says it all, I was wondering what the best oil to cook stuff in a ban is. like say stir frying veggies or scrambling egg whites. I'm sure there was more calories in the oil I used this morning than the eggs I ate haha I think all oils, aka fat have very similar caloric value Coconut oil. The other oils are bad for you and olive oil does bad things when heated. I agree coconut oil or MCT oil is the best for you with no noticeable added taste I use it for cooking everything. You can even use it as lip balm or for treating dry skin and dandruff a was watching the hairy bikers diet show thing and they dry fry everything and ive started doing that. Things taste better. No oil. Just put your food in. start on a low heat and get higher Wait, wouldn't that make food stick? Not if you cook it on low first like really low then once the fats started to come out of it then crank it up a little more. and it cooks in its own oil then and doesnt stick. Also, Teflon is legit. Even the crummy $10 pan I got at walmart keeps things from sticking at all. I usually always go with olive oil and sometimes safflower oil for the health benefits for women. Avoid vegetable oil at all costs. These are polyunsaturates that cause so many health problems because they tend to become oxidized or rancid when subjected to heat, oxygen and moisture as in cooking and processing. Go for coconut and olive oil. Coconut oil is heat stable, will give you more energy and help you lose weight. It is a medium-chain fat. water, in a spritz bottle.",
|
18 |
+
"sub dataset": "reddit"
|
19 |
+
},
|
20 |
+
"log": ""
|
21 |
+
},
|
22 |
+
"ConvoSumm--train--3": {
|
23 |
+
"original dialog id": "",
|
24 |
+
"dialog index": 3,
|
25 |
+
"original dialog info": {
|
26 |
+
"summary": "Commentators agree that the location does not have valet parking. Two commentators advise going to a nearby garage that\u2019s a few blocks away. One commentator gives a rude reply, which leads another commentator to try and offer sympathy. His efforts are rudely rebuffed.",
|
27 |
+
"dialog history": "Title: Does Kimmel Center have valet parking? Subreddit: philadelphia I was reading about parking on their website but there is no indication. The website only points to their parking garage where you have to make reservations. No valet parking, but if you drive up Spruce to 15th, there's a very good garage above Fox and Hound. If you really don't wanna park on your own, you can drive over to the hotels on 17th. Thank you for the helpful information Get to that garage early and have a backup garage. It fills up early every time there's an event. You know what companies who have valet parking do? They advertise that they have valet parking. do you need a hug? I'm perfectly contented just watching you work so hard trying to stuff that straw man. Do you need a diaper change or something? That's usually mom's job It takes a village. ps I've been to plenty of places that don't indicate valet when they do have it. I've also seen places that advertise it but it's not available at certain times, or it's for a different price than advertised, or it's with a 3rd party company, etc. That was why I asked for clarification.",
|
28 |
+
"sub dataset": "reddit"
|
29 |
+
},
|
30 |
+
"log": ""
|
31 |
+
},
|
32 |
+
"ConvoSumm--train--4": {
|
33 |
+
"original dialog id": "",
|
34 |
+
"dialog index": 4,
|
35 |
+
"original dialog info": {
|
36 |
+
"summary": "Commenters offer their movie(s) that they can practically quote word for one. One mentions Dumb and Dumber, and another said Shutter Island, which one mentions is good. Another mentions Predator or Aliens. Overall, there are various movies mentioned with very little similarity.",
|
37 |
+
"dialog history": "Title: what movie(s) have you seen so many times you can practically quote it word for word? Subreddit: movies for me its Mean Girls. I spent one summer, with my best friend, watching it at least once a week. * Pulp Fiction * Wayne's World Mrs Doubtfire One time we watched it at his now-ex gf's house and for some reason the sound wouldn't work. We watched it anyway and made the dialogue up ourselves, full of swearing and Street Fighter moves) Knocked Up. I was going through a rough time when it came out and saw it like 8 times in the theatre. I saw that in theaters! very funny movie. ferris bueller's day off and christmas vacation are two big ones. probably the first two dark knight movies. probably the lost boys. big trouble in little china. The Big Lebowski. Coen Brothers movies are infinitely rewatchable. Pilgrim vs. the World Madison -Happy I have most of Scott pilgrim memorized too! my boyfriend (at the time) and I saw it 3 times in theaters. *Forrest Gump* Napoleon Dynamite and Just Friends The Matrix Ferris Bueller's Day Off and Blues Brothers Princess Bride or Blues Brothers Forrest Gump, The Mask, Toy Story, Aladdin, The Lion King - all the movies I grew up watching. Disney movies are the best! Monty python and the holy grail Blue brothers Atonement, Big Fish, Shutter Island, Pride and Prejudice oooo shutter island is a good one. Wanna Wrestle? Sideways & Office Space Very many movies, but mainly my favorite movie of all time, Predator. Tremors Fargo. Me and a co-worker of mine quote (re-enact) pretty much every scene, Favorite movie of all time. Aliens, my dad let me watch it with him when i was young (probably too young) and he could never again watch it with me i would always quote the lines before they were said. Talladega nights: the ballad of Ricky bobby Animal House, Minority Report, and Kung Fu Hustle. The Count of Monte Cristo. I wore out the VHS. That's how much I love this movie. Richard Harris' Abb\u00e9 Faria is one of my favourite movie characters ever. I'm a priest, not a saint. Gives me chills every time. spongebob squarepants movie! Blazing Saddles",
|
38 |
+
"sub dataset": "reddit"
|
39 |
+
},
|
40 |
+
"log": ""
|
41 |
+
},
|
42 |
+
"ConvoSumm--train--5": {
|
43 |
+
"original dialog id": "",
|
44 |
+
"dialog index": 5,
|
45 |
+
"original dialog info": {
|
46 |
+
"summary": "The commenters respond to a post about a new, up and coming adult entertainment center providing bowling, billiards, video arcade games, and laser tag along with a bar and restaurant. The facility is advertising unlimited laser tag and bowling for a straight fee of $25.00 on a particular day. One of the commentators is curious about whether it is worth it. Some commenters enjoy the facility's array of entertainment options. Other commenters say that they had never heard of the place before, having lived in the area most of their lives.",
|
47 |
+
"dialog history": "Title: Unlimited laser tag and bowling on Memorial Day! Subreddit: batonrouge We are having unlimited laser tag and bowling here at Quarters for $25 on Monday, May 26th! All you have do is be wearing a visible article of clothing colored red, white, or blue! Quarters: bringing Baton Rouge's gangs together for laser tag. I'd rather hear about Baton Rougeans shooting each other with lasers than with lead. My question for every other member of this subreddit: Is bowling and laser tag any good at quarters? I've heard mixed reviews about the place and don't feel like dumping $25 to find out for myself. The bowling is great, the laser tag is good. They have comfy leather seats in the bowling area, which is right across from the bar (you can order food at the bar as well). I don't really like playing laser tag so I'm not the best judge on it. What and where is Quarters? I've lived in Baton Rouge my whole life and have never heard of this place. It's pretty new. In the same shopping center as lil Caesars on the corner of Sherwood and coursey. We're at the corner of Sherwood and Coursey in the Lake Sherwood Mall Shopping Center. We're a relatively new and up and coming adult entertainment center. You need a better selection of video games and lower prices to play them. We're currently getting a lot of new video games in and the prices are pretty normal for an arcade in Baton Rouge. What is Quarters and why have I never heard of it? A lot of people haven't heard of us, we're pretty new to the game. We are a bar, restaurant, bowling, billards, arcade, and laser tag facility.",
|
48 |
+
"sub dataset": "reddit"
|
49 |
+
},
|
50 |
+
"log": ""
|
51 |
+
}
|
52 |
+
}
|
dialogue-summarization/ConvoSumm/original_examples.json
ADDED
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"dialog history": "Title: Does anybody know at what time the AMD presentation will be for the netherlands? Subreddit: pcmasterrace I'm really bad with timezones. Its in 3 hours and 4 minutes. its at 8pm ET, its now 9am ET Their official twitch states 9am pst 12pm est. is there a seperate amd show besides the pc gaming one? I dont believe I have no clue where you got 8 from since i went to their twitter and all the post are about the one at 12 today. its the same time as nintendos E3 confernece , so in abput 3/4 hours It starts at 2 AM for you, I believe. 1800 for central and 1900 for eastern europe\n",
|
4 |
+
"summary": "Commenters respond to a question placed by the Original POster as to what time the AMD presentation starts there in the Netherlands. Most responses answer back with the time frame converted to 12 PM EST. another comment states that it takes place at the same time as the Nintendo E3 Conference.\n",
|
5 |
+
"sub dataset": "reddit"
|
6 |
+
},
|
7 |
+
{
|
8 |
+
"dialog history": "Title: Best oil to cook with for losing weight Subreddit: diet Title says it all, I was wondering what the best oil to cook stuff in a ban is. like say stir frying veggies or scrambling egg whites. I'm sure there was more calories in the oil I used this morning than the eggs I ate haha I think all oils, aka \"fat\" have very similar caloric value Coconut oil. The other oils are bad for you and olive oil does bad things when heated. I agree coconut oil or MCT oil is the best for you with no noticeable added taste I use it for cooking everything. You can even use it as lip balm or for treating dry skin and dandruff a was watching the hairy bikers diet show thing and they dry fry everything and ive started doing that. Things taste better. No oil. Just put your food in. start on a low heat and get higher Wait, wouldn't that make food stick? Not if you cook it on low first like really low then once the fats started to come out of it then crank it up a little more. and it cooks in its own oil then and doesnt stick. Also, Teflon is legit. Even the crummy $10 pan I got at walmart keeps things from sticking at all. I usually always go with olive oil and sometimes safflower oil for the health benefits for women. Avoid vegetable oil at all costs. These are polyunsaturates that cause so many health problems because they tend to become oxidized or rancid when subjected to heat, oxygen and moisture as in cooking and processing. Go for coconut and olive oil. Coconut oil is heat stable, will give you more energy and help you lose weight. It is a medium-chain fat. water, in a spritz bottle.\n",
|
9 |
+
"summary": "Some commenters do not recommend using oil at all, while others like using it. Those who use oil differ in their opinions about which oils to use, such as Safflower or Coconut oil, but do not suggest using olive oil or vegetable oil. Those who do not use oil suggest using nothing or preparing the pan with water instead of the oil.\n",
|
10 |
+
"sub dataset": "reddit"
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"dialog history": "Title: Does Kimmel Center have valet parking? Subreddit: philadelphia I was reading about parking on their website but there is no indication. The website only points to their parking garage where you have to make reservations. No valet parking, but if you drive up Spruce to 15th, there's a very good garage above Fox and Hound. If you really don't wanna park on your own, you can drive over to the hotels on 17th. Thank you for the helpful information Get to that garage early and have a backup garage. It fills up early every time there's an event. You know what companies who have valet parking do? They advertise that they have valet parking. do you need a hug? I'm perfectly contented just watching you work so hard trying to stuff that straw man. Do you need a diaper change or something? That's usually mom's job It takes a village. ps I've been to plenty of places that don't indicate valet when they do have it. I've also seen places that advertise it but it's not available at certain times, or it's for a different price than advertised, or it's with a 3rd party company, etc. That was why I asked for clarification.\n",
|
14 |
+
"summary": "Commentators agree that the location does not have valet parking. Two commentators advise going to a nearby garage that\u2019s a few blocks away. One commentator gives a rude reply, which leads another commentator to try and offer sympathy. His efforts are rudely rebuffed.\n",
|
15 |
+
"sub dataset": "reddit"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"dialog history": "Title: what movie(s) have you seen so many times you can practically quote it word for word? Subreddit: movies for me its Mean Girls. I spent one summer, with my best friend, watching it at least once a week. * Pulp Fiction * Wayne's World Mrs Doubtfire One time we watched it at his now-ex gf's house and for some reason the sound wouldn't work. We watched it anyway and made the dialogue up ourselves, full of swearing and Street Fighter moves) Knocked Up. I was going through a rough time when it came out and saw it like 8 times in the theatre. I saw that in theaters! very funny movie. ferris bueller's day off and christmas vacation are two big ones. probably the first two dark knight movies. probably the lost boys. big trouble in little china. The Big Lebowski. Coen Brothers movies are infinitely rewatchable. Pilgrim vs. the World Madison -Happy I have most of Scott pilgrim memorized too! my boyfriend (at the time) and I saw it 3 times in theaters. *Forrest Gump* Napoleon Dynamite and Just Friends The Matrix Ferris Bueller's Day Off and Blues Brothers Princess Bride or Blues Brothers Forrest Gump, The Mask, Toy Story, Aladdin, The Lion King - all the movies I grew up watching. Disney movies are the best! Monty python and the holy grail Blue brothers Atonement, Big Fish, Shutter Island, Pride and Prejudice oooo shutter island is a good one. Wanna Wrestle? Sideways & Office Space Very many movies, but mainly my favorite movie of all time, Predator. Tremors Fargo. Me and a co-worker of mine quote (re-enact) pretty much every scene, Favorite movie of all time. Aliens, my dad let me watch it with him when i was young (probably too young) and he could never again watch it with me i would always quote the lines before they were said. Talladega nights: the ballad of Ricky bobby Animal House, Minority Report, and Kung Fu Hustle. The Count of Monte Cristo. I wore out the VHS. That's how much I love this movie. Richard Harris' Abb\u00e9 Faria is one of my favourite movie characters ever. \"I'm a priest, not a saint.\" Gives me chills every time. spongebob squarepants movie! Blazing Saddles\n",
|
19 |
+
"summary": "Commenters offer their movie(s) that they can practically quote word for one. One mentions Dumb and Dumber, and another said Shutter Island, which one mentions is good. Another mentions Predator or Aliens. Overall, there are various movies mentioned with very little similarity.\n",
|
20 |
+
"sub dataset": "reddit"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"dialog history": "Title: Unlimited laser tag and bowling on Memorial Day! Subreddit: batonrouge We are having unlimited laser tag and bowling here at Quarters for $25 on Monday, May 26th! All you have do is be wearing a visible article of clothing colored red, white, or blue! Quarters: bringing Baton Rouge's gangs together for laser tag. I'd rather hear about Baton Rougeans shooting each other with lasers than with lead. My question for every other member of this subreddit: Is bowling and laser tag any good at quarters? I've heard mixed reviews about the place and don't feel like dumping $25 to find out for myself. The bowling is great, the laser tag is good. They have comfy leather seats in the bowling area, which is right across from the bar (you can order food at the bar as well). I don't really like playing laser tag so I'm not the best judge on it. What and where is Quarters? I've lived in Baton Rouge my whole life and have never heard of this place. It's pretty new. In the same shopping center as lil Caesars on the corner of Sherwood and coursey. We're at the corner of Sherwood and Coursey in the Lake Sherwood Mall Shopping Center. We're a relatively new and up and coming adult entertainment center. You need a better selection of video games and lower prices to play them. We're currently getting a lot of new video games in and the prices are pretty normal for an arcade in Baton Rouge. What is Quarters and why have I never heard of it? A lot of people haven't heard of us, we're pretty new to the game. We are a bar, restaurant, bowling, billards, arcade, and laser tag facility.\n",
|
24 |
+
"summary": "The commenters respond to a post about a new, up and coming adult entertainment center providing bowling, billiards, video arcade games, and laser tag along with a bar and restaurant. The facility is advertising unlimited laser tag and bowling for a straight fee of $25.00 on a particular day. One of the commentators is curious about whether it is worth it. Some commenters enjoy the facility's array of entertainment options. Other commenters say that they had never heard of the place before, having lived in the area most of their lives.\n",
|
25 |
+
"sub dataset": "reddit"
|
26 |
+
}
|
27 |
+
]
|
dialogue-summarization/DialogSum/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
MIT License
|
2 |
+
|
3 |
+
Copyright (c) 2021 Yulong Chen
|
4 |
+
|
5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6 |
+
of this software and associated documentation files (the "Software"), to deal
|
7 |
+
in the Software without restriction, including without limitation the rights
|
8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9 |
+
copies of the Software, and to permit persons to whom the Software is
|
10 |
+
furnished to do so, subject to the following conditions:
|
11 |
+
|
12 |
+
The above copyright notice and this permission notice shall be included in all
|
13 |
+
copies or substantial portions of the Software.
|
14 |
+
|
15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21 |
+
SOFTWARE.
|
dialogue-summarization/DialogSum/README.md
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# DialogSum: A Real-life Scenario Dialogue Summarization Dataset
|
2 |
+
|
3 |
+
DialogSum is a large-scale dialogue summarization dataset, consisting of 13,460 dialogues with corresponding manually labeled summaries and topics.
|
4 |
+
You can directly download the data from this [fold](https://github.com/cylnlp/dialogsum/tree/main/DialogSum_Data), or from the Hugging face [Dataset](https://huggingface.co/datasets/knkarthick/dialogsum).
|
5 |
+
|
6 |
+
This work is accepted by ACL findings 2021. You may find the paper [here](https://aclanthology.org/2021.findings-acl.449).
|
7 |
+
If you use our dataset, please kindly cite our paper:
|
8 |
+
```
|
9 |
+
@inproceedings{chen-etal-2021-dialogsum,
|
10 |
+
title = "{D}ialog{S}um: {A} Real-Life Scenario Dialogue Summarization Dataset",
|
11 |
+
author = "Chen, Yulong and
|
12 |
+
Liu, Yang and
|
13 |
+
Chen, Liang and
|
14 |
+
Zhang, Yue",
|
15 |
+
booktitle = "Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021",
|
16 |
+
month = aug,
|
17 |
+
year = "2021",
|
18 |
+
address = "Online",
|
19 |
+
publisher = "Association for Computational Linguistics",
|
20 |
+
url = "https://aclanthology.org/2021.findings-acl.449",
|
21 |
+
doi = "10.18653/v1/2021.findings-acl.449",
|
22 |
+
pages = "5062--5074",
|
23 |
+
}
|
24 |
+
```
|
25 |
+
|
26 |
+
[DialogSum Challenge](https://aclanthology.org/2021.inlg-1.33.pdf) is a shared task at [INLG 2022](https://inlgmeeting.github.io/index.html). Check the [task website](https://cylnlp.github.io/dialogsum-challenge/) and [shared task report](https://arxiv.org/pdf/2208.03898.pdf).
|
27 |
+
|
28 |
+
## Quick Start
|
29 |
+
We provide a BART baseline for dialogue summarization, which may help you explore this area as a quick start.
|
30 |
+
See [Baseline](https://github.com/cylnlp/dialogsum/tree/main/Baseline).
|
31 |
+
|
32 |
+
## Dialogue Data
|
33 |
+
We collect dialogue data for DialogSum from three public dialogue corpora, namely Dailydialog (Li et al., 2017), DREAM (Sun et al., 2019) and MuTual (Cui et al., 2019), as well as an English speaking practice website.
|
34 |
+
These datasets contain face-to-face spoken dialogues that cover a wide range of daily-life topics, including schooling, work, medication, shopping, leisure, travel.
|
35 |
+
Most conversations take place between friends, colleagues, and between service providers and customers.
|
36 |
+
|
37 |
+
Compared with previous datasets, dialogues from DialogSum have distinct characteristics:
|
38 |
+
* Under rich real-life scenarios, including more diverse task-oriented scenarios;
|
39 |
+
* Have clear communication patterns and intents, which is valuable to serve as summarization sources;
|
40 |
+
* Have a reasonable length, which comforts the purpose of automatic summarization.
|
41 |
+
|
42 |
+
## Summaries
|
43 |
+
We ask annotators to summarize each dialogue based on the following criteria:
|
44 |
+
* Convey the most salient information;
|
45 |
+
* Be brief;
|
46 |
+
* Preserve important named entities within the conversation;
|
47 |
+
* Be written from an observer perspective;
|
48 |
+
* Be written in formal language.
|
49 |
+
|
50 |
+
## Topics
|
51 |
+
In addition to summaries, we also ask annotators to write a short topic for each dialogue, which can be potentially useful for future work, e.g. generating summaries by leveraging topic information.
|
52 |
+
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
## Reference
|
57 |
+
|
58 |
+
* Leyang Cui, Yu Wu, Shujie Liu, Yue Zhang, and Ming Zhou. 2020. MuTual: A dataset for multi-turn dialogue reasoning. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pages 1406–1416, Online. Association for Computational Linguistics.
|
59 |
+
|
60 |
+
* Yanran Li, Hui Su, Xiaoyu Shen, Wenjie Li, Ziqiang Cao, and Shuzi Niu. 2017. DailyDialog: A manually labelled multi-turn dialogue dataset. In Proceedings of the Eighth International Joint Conference on Natural Language Processing (Volume 1: Long Papers), pages 986–995, Taipei, Taiwan. Asian Federation of Natural Language Processing.
|
61 |
+
|
62 |
+
* Kai Sun, Dian Yu, Jianshu Chen, Dong Yu, Yejin Choi,and Claire Cardie. 2019. DREAM: A challenge dataset and models for dialogue-based reading comprehension. Transactions of the Association for Computational Linguistics, 7:217–231.
|
63 |
+
|
dialogue-summarization/DialogSum/converted_examples.json
ADDED
@@ -0,0 +1,316 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"DialogSum--train--1": {
|
3 |
+
"original dialog id": "train_0",
|
4 |
+
"dialog index": 1,
|
5 |
+
"original dialog info": {
|
6 |
+
"summary": "Mr. Smith's getting a check-up, and Doctor Hawkins advises him to have one every year. Hawkins'll give some information about their classes and medications to help Mr. Smith quit smoking.",
|
7 |
+
"topic": "get a check-up"
|
8 |
+
},
|
9 |
+
"log": [
|
10 |
+
{
|
11 |
+
"turn id": 1,
|
12 |
+
"user utterance": "Hi, Mr. Smith. I'm Doctor Hawkins. Why are you here today?",
|
13 |
+
"system response": "I found it would be a good idea to get a check-up.",
|
14 |
+
"dialog history": "",
|
15 |
+
"original user side information": {
|
16 |
+
"speaker": "Person1"
|
17 |
+
},
|
18 |
+
"original system side information": {
|
19 |
+
"speaker": "Person2"
|
20 |
+
}
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"turn id": 2,
|
24 |
+
"user utterance": "Yes, well, you haven't had one for 5 years. You should have one every year.",
|
25 |
+
"system response": "I know. I figure as long as there is nothing wrong, why go see the doctor?",
|
26 |
+
"dialog history": "<USER> Hi, Mr. Smith. I'm Doctor Hawkins. Why are you here today? <SYSTEM> I found it would be a good idea to get a check-up.",
|
27 |
+
"original user side information": {
|
28 |
+
"speaker": "Person1"
|
29 |
+
},
|
30 |
+
"original system side information": {
|
31 |
+
"speaker": "Person2"
|
32 |
+
}
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"turn id": 3,
|
36 |
+
"user utterance": "Well, the best way to avoid serious illnesses is to find out about them early. So try to come at least once a year for your own good.",
|
37 |
+
"system response": "Ok.",
|
38 |
+
"dialog history": "<USER> Hi, Mr. Smith. I'm Doctor Hawkins. Why are you here today? <SYSTEM> I found it would be a good idea to get a check-up. <USER> Yes, well, you haven't had one for 5 years. You should have one every year. <SYSTEM> I know. I figure as long as there is nothing wrong, why go see the doctor?",
|
39 |
+
"original user side information": {
|
40 |
+
"speaker": "Person1"
|
41 |
+
},
|
42 |
+
"original system side information": {
|
43 |
+
"speaker": "Person2"
|
44 |
+
}
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"turn id": 4,
|
48 |
+
"user utterance": "Let me see here. Your eyes and ears look fine. Take a deep breath, please. Do you smoke, Mr. Smith?",
|
49 |
+
"system response": "Yes.",
|
50 |
+
"dialog history": "<USER> Hi, Mr. Smith. I'm Doctor Hawkins. Why are you here today? <SYSTEM> I found it would be a good idea to get a check-up. <USER> Yes, well, you haven't had one for 5 years. You should have one every year. <SYSTEM> I know. I figure as long as there is nothing wrong, why go see the doctor? <USER> Well, the best way to avoid serious illnesses is to find out about them early. So try to come at least once a year for your own good. <SYSTEM> Ok.",
|
51 |
+
"original user side information": {
|
52 |
+
"speaker": "Person1"
|
53 |
+
},
|
54 |
+
"original system side information": {
|
55 |
+
"speaker": "Person2"
|
56 |
+
}
|
57 |
+
},
|
58 |
+
{
|
59 |
+
"turn id": 5,
|
60 |
+
"user utterance": "Smoking is the leading cause of lung cancer and heart disease, you know. You really should quit.",
|
61 |
+
"system response": "I've tried hundreds of times, but I just can't seem to kick the habit.",
|
62 |
+
"dialog history": "<USER> Hi, Mr. Smith. I'm Doctor Hawkins. Why are you here today? <SYSTEM> I found it would be a good idea to get a check-up. <USER> Yes, well, you haven't had one for 5 years. You should have one every year. <SYSTEM> I know. I figure as long as there is nothing wrong, why go see the doctor? <USER> Well, the best way to avoid serious illnesses is to find out about them early. So try to come at least once a year for your own good. <SYSTEM> Ok. <USER> Let me see here. Your eyes and ears look fine. Take a deep breath, please. Do you smoke, Mr. Smith? <SYSTEM> Yes.",
|
63 |
+
"original user side information": {
|
64 |
+
"speaker": "Person1"
|
65 |
+
},
|
66 |
+
"original system side information": {
|
67 |
+
"speaker": "Person2"
|
68 |
+
}
|
69 |
+
},
|
70 |
+
{
|
71 |
+
"turn id": 6,
|
72 |
+
"user utterance": "Well, we have classes and some medications that might help. I'll give you more information before you leave.",
|
73 |
+
"system response": "Ok, thanks doctor.",
|
74 |
+
"dialog history": "<USER> Hi, Mr. Smith. I'm Doctor Hawkins. Why are you here today? <SYSTEM> I found it would be a good idea to get a check-up. <USER> Yes, well, you haven't had one for 5 years. You should have one every year. <SYSTEM> I know. I figure as long as there is nothing wrong, why go see the doctor? <USER> Well, the best way to avoid serious illnesses is to find out about them early. So try to come at least once a year for your own good. <SYSTEM> Ok. <USER> Let me see here. Your eyes and ears look fine. Take a deep breath, please. Do you smoke, Mr. Smith? <SYSTEM> Yes. <USER> Smoking is the leading cause of lung cancer and heart disease, you know. You really should quit. <SYSTEM> I've tried hundreds of times, but I just can't seem to kick the habit.",
|
75 |
+
"original user side information": {
|
76 |
+
"speaker": "Person1"
|
77 |
+
},
|
78 |
+
"original system side information": {
|
79 |
+
"speaker": "Person2"
|
80 |
+
}
|
81 |
+
}
|
82 |
+
]
|
83 |
+
},
|
84 |
+
"DialogSum--train--2": {
|
85 |
+
"original dialog id": "train_1",
|
86 |
+
"dialog index": 2,
|
87 |
+
"original dialog info": {
|
88 |
+
"summary": "Mrs Parker takes Ricky for his vaccines. Dr. Peters checks the record and then gives Ricky a vaccine.",
|
89 |
+
"topic": "vaccines"
|
90 |
+
},
|
91 |
+
"log": [
|
92 |
+
{
|
93 |
+
"turn id": 1,
|
94 |
+
"user utterance": "Hello Mrs. Parker, how have you been?",
|
95 |
+
"system response": "Hello Dr. Peters. Just fine thank you. Ricky and I are here for his vaccines.",
|
96 |
+
"dialog history": "",
|
97 |
+
"original user side information": {
|
98 |
+
"speaker": "Person1"
|
99 |
+
},
|
100 |
+
"original system side information": {
|
101 |
+
"speaker": "Person2"
|
102 |
+
}
|
103 |
+
},
|
104 |
+
{
|
105 |
+
"turn id": 2,
|
106 |
+
"user utterance": "Very well. Let's see, according to his vaccination record, Ricky has received his Polio, Tetanus and Hepatitis B shots. He is 14 months old, so he is due for Hepatitis A, Chickenpox and Measles shots.",
|
107 |
+
"system response": "What about Rubella and Mumps?",
|
108 |
+
"dialog history": "<USER> Hello Mrs. Parker, how have you been? <SYSTEM> Hello Dr. Peters. Just fine thank you. Ricky and I are here for his vaccines.",
|
109 |
+
"original user side information": {
|
110 |
+
"speaker": "Person1"
|
111 |
+
},
|
112 |
+
"original system side information": {
|
113 |
+
"speaker": "Person2"
|
114 |
+
}
|
115 |
+
},
|
116 |
+
{
|
117 |
+
"turn id": 3,
|
118 |
+
"user utterance": "Well, I can only give him these for now, and after a couple of weeks I can administer the rest.",
|
119 |
+
"system response": "OK, great. Doctor, I think I also may need a Tetanus booster. Last time I got it was maybe fifteen years ago!",
|
120 |
+
"dialog history": "<USER> Hello Mrs. Parker, how have you been? <SYSTEM> Hello Dr. Peters. Just fine thank you. Ricky and I are here for his vaccines. <USER> Very well. Let's see, according to his vaccination record, Ricky has received his Polio, Tetanus and Hepatitis B shots. He is 14 months old, so he is due for Hepatitis A, Chickenpox and Measles shots. <SYSTEM> What about Rubella and Mumps?",
|
121 |
+
"original user side information": {
|
122 |
+
"speaker": "Person1"
|
123 |
+
},
|
124 |
+
"original system side information": {
|
125 |
+
"speaker": "Person2"
|
126 |
+
}
|
127 |
+
}
|
128 |
+
]
|
129 |
+
},
|
130 |
+
"DialogSum--train--3": {
|
131 |
+
"original dialog id": "train_2",
|
132 |
+
"dialog index": 3,
|
133 |
+
"original dialog info": {
|
134 |
+
"summary": "#Person1#'s looking for a set of keys and asks for #Person2#'s help to find them.",
|
135 |
+
"topic": "find keys"
|
136 |
+
},
|
137 |
+
"log": [
|
138 |
+
{
|
139 |
+
"turn id": 1,
|
140 |
+
"user utterance": "Excuse me, did you see a set of keys?",
|
141 |
+
"system response": "What kind of keys?",
|
142 |
+
"dialog history": "",
|
143 |
+
"original user side information": {
|
144 |
+
"speaker": "Person1"
|
145 |
+
},
|
146 |
+
"original system side information": {
|
147 |
+
"speaker": "Person2"
|
148 |
+
}
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"turn id": 2,
|
152 |
+
"user utterance": "Five keys and a small foot ornament.",
|
153 |
+
"system response": "What a shame! I didn't see them.",
|
154 |
+
"dialog history": "<USER> Excuse me, did you see a set of keys? <SYSTEM> What kind of keys?",
|
155 |
+
"original user side information": {
|
156 |
+
"speaker": "Person1"
|
157 |
+
},
|
158 |
+
"original system side information": {
|
159 |
+
"speaker": "Person2"
|
160 |
+
}
|
161 |
+
},
|
162 |
+
{
|
163 |
+
"turn id": 3,
|
164 |
+
"user utterance": "Well, can you help me look for it? That's my first time here.",
|
165 |
+
"system response": "Sure. It's my pleasure. I'd like to help you look for the missing keys.",
|
166 |
+
"dialog history": "<USER> Excuse me, did you see a set of keys? <SYSTEM> What kind of keys? <USER> Five keys and a small foot ornament. <SYSTEM> What a shame! I didn't see them.",
|
167 |
+
"original user side information": {
|
168 |
+
"speaker": "Person1"
|
169 |
+
},
|
170 |
+
"original system side information": {
|
171 |
+
"speaker": "Person2"
|
172 |
+
}
|
173 |
+
},
|
174 |
+
{
|
175 |
+
"turn id": 4,
|
176 |
+
"user utterance": "It's very kind of you.",
|
177 |
+
"system response": "It's not a big deal.Hey, I found them.",
|
178 |
+
"dialog history": "<USER> Excuse me, did you see a set of keys? <SYSTEM> What kind of keys? <USER> Five keys and a small foot ornament. <SYSTEM> What a shame! I didn't see them. <USER> Well, can you help me look for it? That's my first time here. <SYSTEM> Sure. It's my pleasure. I'd like to help you look for the missing keys.",
|
179 |
+
"original user side information": {
|
180 |
+
"speaker": "Person1"
|
181 |
+
},
|
182 |
+
"original system side information": {
|
183 |
+
"speaker": "Person2"
|
184 |
+
}
|
185 |
+
},
|
186 |
+
{
|
187 |
+
"turn id": 5,
|
188 |
+
"user utterance": "Oh, thank God! I don't know how to thank you, guys.",
|
189 |
+
"system response": "You're welcome.",
|
190 |
+
"dialog history": "<USER> Excuse me, did you see a set of keys? <SYSTEM> What kind of keys? <USER> Five keys and a small foot ornament. <SYSTEM> What a shame! I didn't see them. <USER> Well, can you help me look for it? That's my first time here. <SYSTEM> Sure. It's my pleasure. I'd like to help you look for the missing keys. <USER> It's very kind of you. <SYSTEM> It's not a big deal.Hey, I found them.",
|
191 |
+
"original user side information": {
|
192 |
+
"speaker": "Person1"
|
193 |
+
},
|
194 |
+
"original system side information": {
|
195 |
+
"speaker": "Person2"
|
196 |
+
}
|
197 |
+
}
|
198 |
+
]
|
199 |
+
},
|
200 |
+
"DialogSum--train--4": {
|
201 |
+
"original dialog id": "train_3",
|
202 |
+
"dialog index": 4,
|
203 |
+
"original dialog info": {
|
204 |
+
"summary": "#Person1#'s angry because #Person2# didn't tell #Person1# that #Person2# had a girlfriend and would marry her.",
|
205 |
+
"topic": "have a girlfriend"
|
206 |
+
},
|
207 |
+
"log": [
|
208 |
+
{
|
209 |
+
"turn id": 1,
|
210 |
+
"user utterance": "Why didn't you tell me you had a girlfriend?",
|
211 |
+
"system response": "Sorry, I thought you knew.",
|
212 |
+
"dialog history": "",
|
213 |
+
"original user side information": {
|
214 |
+
"speaker": "Person1"
|
215 |
+
},
|
216 |
+
"original system side information": {
|
217 |
+
"speaker": "Person2"
|
218 |
+
}
|
219 |
+
},
|
220 |
+
{
|
221 |
+
"turn id": 2,
|
222 |
+
"user utterance": "But you should tell me you were in love with her.",
|
223 |
+
"system response": "Didn't I?",
|
224 |
+
"dialog history": "<USER> Why didn't you tell me you had a girlfriend? <SYSTEM> Sorry, I thought you knew.",
|
225 |
+
"original user side information": {
|
226 |
+
"speaker": "Person1"
|
227 |
+
},
|
228 |
+
"original system side information": {
|
229 |
+
"speaker": "Person2"
|
230 |
+
}
|
231 |
+
},
|
232 |
+
{
|
233 |
+
"turn id": 3,
|
234 |
+
"user utterance": "You know you didn't.",
|
235 |
+
"system response": "Well, I am telling you now.",
|
236 |
+
"dialog history": "<USER> Why didn't you tell me you had a girlfriend? <SYSTEM> Sorry, I thought you knew. <USER> But you should tell me you were in love with her. <SYSTEM> Didn't I?",
|
237 |
+
"original user side information": {
|
238 |
+
"speaker": "Person1"
|
239 |
+
},
|
240 |
+
"original system side information": {
|
241 |
+
"speaker": "Person2"
|
242 |
+
}
|
243 |
+
},
|
244 |
+
{
|
245 |
+
"turn id": 4,
|
246 |
+
"user utterance": "Yes, but you might have told me before.",
|
247 |
+
"system response": "I didn't think you would be interested.",
|
248 |
+
"dialog history": "<USER> Why didn't you tell me you had a girlfriend? <SYSTEM> Sorry, I thought you knew. <USER> But you should tell me you were in love with her. <SYSTEM> Didn't I? <USER> You know you didn't. <SYSTEM> Well, I am telling you now.",
|
249 |
+
"original user side information": {
|
250 |
+
"speaker": "Person1"
|
251 |
+
},
|
252 |
+
"original system side information": {
|
253 |
+
"speaker": "Person2"
|
254 |
+
}
|
255 |
+
},
|
256 |
+
{
|
257 |
+
"turn id": 5,
|
258 |
+
"user utterance": "You can't be serious. How dare you not tell me you are going to marry her?",
|
259 |
+
"system response": "Sorry, I didn't think it mattered.",
|
260 |
+
"dialog history": "<USER> Why didn't you tell me you had a girlfriend? <SYSTEM> Sorry, I thought you knew. <USER> But you should tell me you were in love with her. <SYSTEM> Didn't I? <USER> You know you didn't. <SYSTEM> Well, I am telling you now. <USER> Yes, but you might have told me before. <SYSTEM> I didn't think you would be interested.",
|
261 |
+
"original user side information": {
|
262 |
+
"speaker": "Person1"
|
263 |
+
},
|
264 |
+
"original system side information": {
|
265 |
+
"speaker": "Person2"
|
266 |
+
}
|
267 |
+
}
|
268 |
+
]
|
269 |
+
},
|
270 |
+
"DialogSum--train--5": {
|
271 |
+
"original dialog id": "train_4",
|
272 |
+
"dialog index": 5,
|
273 |
+
"original dialog info": {
|
274 |
+
"summary": "Malik invites Nikki to dance. Nikki agrees if Malik doesn't mind getting his feet stepped on.",
|
275 |
+
"topic": "dance"
|
276 |
+
},
|
277 |
+
"log": [
|
278 |
+
{
|
279 |
+
"turn id": 1,
|
280 |
+
"user utterance": "Watsup, ladies! Y'll looking'fine tonight. May I have this dance?",
|
281 |
+
"system response": "He's cute! He looks like Tiger Woods! But, I can't dance. . .",
|
282 |
+
"dialog history": "",
|
283 |
+
"original user side information": {
|
284 |
+
"speaker": "Person1"
|
285 |
+
},
|
286 |
+
"original system side information": {
|
287 |
+
"speaker": "Person2"
|
288 |
+
}
|
289 |
+
},
|
290 |
+
{
|
291 |
+
"turn id": 2,
|
292 |
+
"user utterance": "It's all good. I'll show you all the right moves. My name's Malik.",
|
293 |
+
"system response": "Nice to meet you. I'm Wen, and this is Nikki.",
|
294 |
+
"dialog history": "<USER> Watsup, ladies! Y'll looking'fine tonight. May I have this dance? <SYSTEM> He's cute! He looks like Tiger Woods! But, I can't dance. . .",
|
295 |
+
"original user side information": {
|
296 |
+
"speaker": "Person1"
|
297 |
+
},
|
298 |
+
"original system side information": {
|
299 |
+
"speaker": "Person2"
|
300 |
+
}
|
301 |
+
},
|
302 |
+
{
|
303 |
+
"turn id": 3,
|
304 |
+
"user utterance": "How you feeling', vista? Mind if I take your friend'round the dance floor?",
|
305 |
+
"system response": "She doesn't mind if you don't mind getting your feet stepped on.",
|
306 |
+
"dialog history": "<USER> Watsup, ladies! Y'll looking'fine tonight. May I have this dance? <SYSTEM> He's cute! He looks like Tiger Woods! But, I can't dance. . . <USER> It's all good. I'll show you all the right moves. My name's Malik. <SYSTEM> Nice to meet you. I'm Wen, and this is Nikki.",
|
307 |
+
"original user side information": {
|
308 |
+
"speaker": "Person1"
|
309 |
+
},
|
310 |
+
"original system side information": {
|
311 |
+
"speaker": "Person2"
|
312 |
+
}
|
313 |
+
}
|
314 |
+
]
|
315 |
+
}
|
316 |
+
}
|
dialogue-summarization/DialogSum/original_examples.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"fname": "train_0",
|
4 |
+
"dialogue": "#Person1#: Hi, Mr. Smith. I'm Doctor Hawkins. Why are you here today?\n#Person2#: I found it would be a good idea to get a check-up.\n#Person1#: Yes, well, you haven't had one for 5 years. You should have one every year.\n#Person2#: I know. I figure as long as there is nothing wrong, why go see the doctor?\n#Person1#: Well, the best way to avoid serious illnesses is to find out about them early. So try to come at least once a year for your own good.\n#Person2#: Ok.\n#Person1#: Let me see here. Your eyes and ears look fine. Take a deep breath, please. Do you smoke, Mr. Smith?\n#Person2#: Yes.\n#Person1#: Smoking is the leading cause of lung cancer and heart disease, you know. You really should quit.\n#Person2#: I've tried hundreds of times, but I just can't seem to kick the habit.\n#Person1#: Well, we have classes and some medications that might help. I'll give you more information before you leave.\n#Person2#: Ok, thanks doctor.",
|
5 |
+
"summary": "Mr. Smith's getting a check-up, and Doctor Hawkins advises him to have one every year. Hawkins'll give some information about their classes and medications to help Mr. Smith quit smoking.",
|
6 |
+
"topic": "get a check-up"
|
7 |
+
},
|
8 |
+
{
|
9 |
+
"fname": "train_1",
|
10 |
+
"dialogue": "#Person1#: Hello Mrs. Parker, how have you been?\n#Person2#: Hello Dr. Peters. Just fine thank you. Ricky and I are here for his vaccines.\n#Person1#: Very well. Let's see, according to his vaccination record, Ricky has received his Polio, Tetanus and Hepatitis B shots. He is 14 months old, so he is due for Hepatitis A, Chickenpox and Measles shots.\n#Person2#: What about Rubella and Mumps?\n#Person1#: Well, I can only give him these for now, and after a couple of weeks I can administer the rest.\n#Person2#: OK, great. Doctor, I think I also may need a Tetanus booster. Last time I got it was maybe fifteen years ago!\n#Person1#: We will check our records and I'll have the nurse administer and the booster as well. Now, please hold Ricky's arm tight, this may sting a little.",
|
11 |
+
"summary": "Mrs Parker takes Ricky for his vaccines. Dr. Peters checks the record and then gives Ricky a vaccine.",
|
12 |
+
"topic": "vaccines"
|
13 |
+
},
|
14 |
+
{
|
15 |
+
"fname": "train_2",
|
16 |
+
"dialogue": "#Person1#: Excuse me, did you see a set of keys?\n#Person2#: What kind of keys?\n#Person1#: Five keys and a small foot ornament.\n#Person2#: What a shame! I didn't see them.\n#Person1#: Well, can you help me look for it? That's my first time here.\n#Person2#: Sure. It's my pleasure. I'd like to help you look for the missing keys.\n#Person1#: It's very kind of you.\n#Person2#: It's not a big deal.Hey, I found them.\n#Person1#: Oh, thank God! I don't know how to thank you, guys.\n#Person2#: You're welcome.",
|
17 |
+
"summary": "#Person1#'s looking for a set of keys and asks for #Person2#'s help to find them.",
|
18 |
+
"topic": "find keys"
|
19 |
+
},
|
20 |
+
{
|
21 |
+
"fname": "train_3",
|
22 |
+
"dialogue": "#Person1#: Why didn't you tell me you had a girlfriend?\n#Person2#: Sorry, I thought you knew.\n#Person1#: But you should tell me you were in love with her.\n#Person2#: Didn't I?\n#Person1#: You know you didn't.\n#Person2#: Well, I am telling you now.\n#Person1#: Yes, but you might have told me before.\n#Person2#: I didn't think you would be interested.\n#Person1#: You can't be serious. How dare you not tell me you are going to marry her?\n#Person2#: Sorry, I didn't think it mattered.\n#Person1#: Oh, you men! You are all the same.",
|
23 |
+
"summary": "#Person1#'s angry because #Person2# didn't tell #Person1# that #Person2# had a girlfriend and would marry her.",
|
24 |
+
"topic": "have a girlfriend"
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"fname": "train_4",
|
28 |
+
"dialogue": "#Person1#: Watsup, ladies! Y'll looking'fine tonight. May I have this dance?\n#Person2#: He's cute! He looks like Tiger Woods! But, I can't dance. . .\n#Person1#: It's all good. I'll show you all the right moves. My name's Malik.\n#Person2#: Nice to meet you. I'm Wen, and this is Nikki.\n#Person1#: How you feeling', vista? Mind if I take your friend'round the dance floor?\n#Person2#: She doesn't mind if you don't mind getting your feet stepped on.\n#Person1#: Right. Cool! Let's go!",
|
29 |
+
"summary": "Malik invites Nikki to dance. Nikki agrees if Malik doesn't mind getting his feet stepped on.",
|
30 |
+
"topic": "dance"
|
31 |
+
}
|
32 |
+
]
|
dialogue-summarization/ECTSum/README.md
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ECTSum: A New Benchmark Dataset For Bullet Point Summarization of Long Earnings Call Transcripts
|
2 |
+
|
3 |
+
Long Paper Accepted at the <b> EMNLP 2022 Main Conference! </b> <br />
|
4 |
+
<li> Paper: https://aclanthology.org/2022.emnlp-main.748/ </li>
|
5 |
+
<li> Poster: https://rajdeep345.github.io/files/pdf/research/ECTSum_EMNLP2022_Poster.pdf </li>
|
6 |
+
<li> Pre-recorded Video: https://drive.google.com/file/d/1DW2i2ApgiE6V7ViiayX5zdJSRXdAEbsy/view </li>
|
7 |
+
|
8 |
+
## Dataset
|
9 |
+
The <b> <i> ECTSum </b> </i> dataset can be found under the `data` folder.
|
10 |
+
|
11 |
+
## Codes
|
12 |
+
Codes and instructions for our proposed model <b> <i> ECT-BPS </b> </i> can be found under `codes/ECT-BPS` <br />
|
13 |
+
Codes and instructions for our baseline models can be found under `codes/baselines`
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
## Data Preparation for ECT-BPS
|
18 |
+
### Preparing the data for training the <i> Extractive Module </i>
|
19 |
+
|
20 |
+
#### Imports
|
21 |
+
`pip install sentence-transformers` </br>
|
22 |
+
`pip install num2words` </br>
|
23 |
+
`pip install word2number` </br>
|
24 |
+
|
25 |
+
#### Prepare the data
|
26 |
+
`python prepare_data_ectbps_ext.py`
|
27 |
+
|
28 |
+
#### Data Location
|
29 |
+
The data is saved at `codes/ECT-BPS/ectbps_ext/data/`. </br>
|
30 |
+
Processed data is already uploaded at this location.
|
31 |
+
|
32 |
+
|
33 |
+
### Preparing the data for training the <i> Paraphrasing Module </i>
|
34 |
+
|
35 |
+
#### Imports
|
36 |
+
`pip install sentence-transformers` </br>
|
37 |
+
`pip install num2words` </br>
|
38 |
+
`pip install word2number` </br>
|
39 |
+
|
40 |
+
#### Prepare the data
|
41 |
+
`python prepare_data_ectbps_para.py`
|
42 |
+
|
43 |
+
#### Data Location
|
44 |
+
The data is saved at `codes/ECT-BPS/ectbps_para/data/para/`. </br>
|
45 |
+
Processed data is already uploaded at this location.
|
46 |
+
|
47 |
+
#### Prepare the data with numericals masked
|
48 |
+
`python prepare_data_ectbps_para_mask.py`
|
49 |
+
|
50 |
+
#### Data Location
|
51 |
+
The data is saved at `codes/ECT-BPS/ectbps_para/data/para_mask/`. </br>
|
52 |
+
Processed data is already uploaded at this location.
|
53 |
+
|
54 |
+
|
55 |
+
|
56 |
+
## Updates
|
57 |
+
<li> 1st November 2022 - ECTSum Dataset released </li>
|
58 |
+
<li> 30th November 2022 - Codes and Instructions released for training the Extractive Module of ECT-BPS </li>
|
59 |
+
<li> 3rd March 2023 - Added the Prediction Pipeline for the Extractive module. </li>
|
60 |
+
<li> 5th March 2023 - Codes released to prepare the data for training the Paraphrasing Module </li>
|
61 |
+
<li> 7th March 2023 - Codes released to train the Paraphrasing Module of ECT-BPS</li>
|
62 |
+
<li> 8th March 2023 - Google Colab Notebook released for training and testing the Paraphrasing Module </li>
|
dialogue-summarization/ECTSum/converted_examples.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
dialogue-summarization/ECTSum/original_examples.json
ADDED
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"file_name": "PNW_q3_2021.txt",
|
4 |
+
"ect": [
|
5 |
+
"First, I need to cover a few details with you.",
|
6 |
+
"We will be advancing the slides as the speakers present today.",
|
7 |
+
"It will also be available by telephone through November 12, 2021.",
|
8 |
+
"These are indeed challenging times for us.",
|
9 |
+
"But right upfront, I want to make it clear that while we may be navigating some short-term challenges, as you'll see, the mid-term prospects post 2022 are positive, and we remain confident in our ability to create renewed growth and deliver strong shareholder returns.",
|
10 |
+
"I know the conclusion of the 2019 rate case is the most significant development and everyone is interested in hearing more about that.",
|
11 |
+
"But before we cover the rate case, you can see from the four main topics we will discuss today.",
|
12 |
+
"I'll cover our third quarter results and our expectations for the remainder of 2021.",
|
13 |
+
"Finally, I will wrap up with 2022 guidance and our long-term financial outlook.",
|
14 |
+
"Focusing on the third quarter, our performance remains strong, earning $3 per share compared to $3.07 per share in third quarter of 2020.",
|
15 |
+
"Mild weather was a significant factor, largely offset by strong sales.",
|
16 |
+
"We experienced a mild July and August driven by one of the wettest monsoon seasons in recent history.",
|
17 |
+
"Residential cooling degree days in the third quarter decreased 27.5% compared to the same time a year ago, and were 10.6% lower than historical 10-year averages.",
|
18 |
+
"As a reminder, third quarter last year was the hottest on record.",
|
19 |
+
"Robust sales and usage growth in addition increased transmission sales this quarter mitigated most of the weather impacts.",
|
20 |
+
"Looking at full year, I'll provide an update to the 2021 Key Drivers and earnings guidance.",
|
21 |
+
"Customer growth and weather normalized sales growth remain important drivers for the remainder of the year.",
|
22 |
+
"We are updating weather normalized sales guidance to 3% to 4%, up from 1% to 2%, based on continued robust customer growth and strong residential usage.",
|
23 |
+
"Lastly, with the conclusion of the 2019 rate case, we're now able to provide full year guidance.",
|
24 |
+
"We expect earnings per share to be within the range of $5.25 to $5.35 per share.",
|
25 |
+
"As all of you know, after a series of open meetings and public discussions, the Commission issued a final decision in our 2019 rate case.",
|
26 |
+
"This rate case was complex and the issues were numerous.",
|
27 |
+
"I'll highlight a few of the main issues that were decided, the revenue requirement SCRs and the ROE.",
|
28 |
+
"I'll also discuss our next step and strategy coming out of this case, and then lastly as Ted mentioned, he'll provide the 2022 guidance and our long-term financial outlook.",
|
29 |
+
"This outcome was not what we wanted and the process that transpired was not constructive.",
|
30 |
+
"Everything we have said on the record with our regulators about what's so damaging and concerning about this decision holds true.",
|
31 |
+
"It is a decision that makes everything we're committed to doing more challenging and more costly for a time.",
|
32 |
+
"What this decision has not done is change our mission as a company, nor our commitment to delivering value to our customers and you our investors.",
|
33 |
+
"It has not changed the commitment of our employees to operational excellence in all that we do.",
|
34 |
+
"In fact, we're using the expertise and the track record that we've built in the areas of long-term planning, cost management, innovation and serving as an active voice and advocate for the Arizona business community to emerge from this case with a robust strategy.",
|
35 |
+
"We're not apologetic about standing up for what's right for our customers and our communities and for our investors, the owners of this company.",
|
36 |
+
"It's your confidence in us and your investment in us that makes it possible to deliver the product and services that power Arizona's economy and way of life.",
|
37 |
+
"We don't take that for granted and we'll lay out for you today how we plan to continue to create values at competitive levels, amid the headwinds and the challenges that this case has created.",
|
38 |
+
"As a reminder, this case was unique for many reasons.",
|
39 |
+
"We are compelled by the Commission to file this case under a question of whether we are over earning.",
|
40 |
+
"We are also required to fully litigate this case instead of pursuing settlement opportunities.",
|
41 |
+
"This is our first fully litigated rate case in over 15 years.",
|
42 |
+
"We still believe that rate case settlements are the standard and this case was definitely an exception.",
|
43 |
+
"And finally this case was centered around cost recovery of coal asset.",
|
44 |
+
"In contrast, our future investment recovery will be premised on infrastructure supporting Clean Energy and our customer growth.",
|
45 |
+
"Let me walk through some of the major decisions of the case.",
|
46 |
+
"First, the Commission adopted a total base rate decrease of $119 million inclusive of fuel.",
|
47 |
+
"The Commission did reverse its initial vote to move the SCR issue to a separate proceeding and instead provided partial recovery of the SCRs with the disallowance of $216 million.",
|
48 |
+
"We disagree with the Commission's decision that the SCR investment was imprudent and don't believe that the record in this case supports that conclusion.",
|
49 |
+
"As I've stated before the Four Corners Power Plant is a critically important reliability asset for the entire Southwest region.",
|
50 |
+
"It's used in useful currently serving customers and the investment in the SCRs was required to keep the plant running under federal law.",
|
51 |
+
"In addition, the Commission voted to lower the ROE from the recommended opinion orders already low ROE of 9.16% to 8.7%.",
|
52 |
+
"With this part of the decision, the Commission has adopted an ROE that's meaningfully below the national average of 9.4% for electric utilities and the company disagrees with the Commission's rationale.",
|
53 |
+
"We have embraced a culture focused on customer service and don't believe that a penalty was warranted, and the ROE granted ignores the fact that we were one of the fastest growing states in the country and we need to attract capital in order to fund the growth and economic development that we're experiencing in Arizona.",
|
54 |
+
"In addition, the Commission moved away from the long-standing practice of providing a risk premium for serving as the operator of the largest clean nuclear generating station in the country.",
|
55 |
+
"We'll continue to navigate through these challenges by leveraging our strong growth and seeking judicial review of the decision through the courts.",
|
56 |
+
"Although we are disappointed by the Commission's decision, importantly, we now have clarity of the path forward.",
|
57 |
+
"And so, let me share our next steps and strategy as we look to the future.",
|
58 |
+
"We continue to remain optimistic about our future for many reasons and I'll discuss each of these reasons in more detail.",
|
59 |
+
"First, we have a solid track record for performance and have grown earnings and our dividends steadily throughout this time, although we're looking at a reset with this rate case outcome and despite the challenges of our regulatory environment, both for Arizona and our company, we believe that we have the ability to create long-term value and steady growth from here.",
|
60 |
+
"And Ted will later share our financial outlook and the actions that we're taking as a management team to get us there.",
|
61 |
+
"In addition to our earnings track record, we've delivered on our promise to provide affordable energy to our customers and I'll share I think a great example.",
|
62 |
+
"We've seen a 6% weather normalized increase in demand for residential electricity from 2018 to 2020.",
|
63 |
+
"During that same period we've lowered the average residential customer bill by more than 7%.",
|
64 |
+
"We remain focused on customer affordability and keeping it central to our plans to provide long-term sustainable growth.",
|
65 |
+
"That focus, coupled with continued cost management creates headroom for the future.",
|
66 |
+
"The second reason that I'm optimistic about our future is our best-in-class service territory.",
|
67 |
+
"Arizona remains among the fastest growing states in the country, where other states were experiencing little or negative customer growth, we're projecting 1.5% to 2.5% retail customer growth in 2021 and 3% to 4% weather normalized sales growth.",
|
68 |
+
"We expect 43,000 housing permits this year in Maricopa County alone, levels that have not been reached since before the great recession.",
|
69 |
+
"We believe the constructive business environment and the ample job growth that it creates a competitive cost of living and a desirable climate will continue to grow the Metro Phoenix housing market and benefit the local economy.",
|
70 |
+
"Focusing on our service territory specifically, we continue to see development from a variety of sectors, which is helping to diversify our local economy more than ever.",
|
71 |
+
"In particular, Phoenix is becoming a leader in attracting high tech and data center customers.",
|
72 |
+
"As you may remember, Taiwan Semiconductor broke ground on their $12 billion investment earlier this year, cementing Phoenix is one of the top semiconductor hubs in the country.",
|
73 |
+
"More recently, KORE Power announced their intention to build a 1 million square foot lithium-ion battery manufacturing facility.",
|
74 |
+
"We'll continue to focus our economic development approach on helping to attract and expand businesses and job creators.",
|
75 |
+
"The third reason that we're confident is the clear path for our transition to Clean Energy.",
|
76 |
+
"We came out with our Clean Energy commitment in early 2020, and I'm proud that we've made significant progress toward that commitment.",
|
77 |
+
"As you know, earlier this year, we announced that our Four Corners power plant would begin seasonal operations in 2023.",
|
78 |
+
"This will reduce annual carbon emissions from the plant by an estimated 20% to 25% compared to current conditions.",
|
79 |
+
"In addition, we remain committed to end the use of coal at our remaining Cholla units by 2025 and to completely exit coal by 2031.",
|
80 |
+
"Since our Clean Energy commitments announcement we've procured nearly 1,400 megawatts of additional Clean Energy and storage.",
|
81 |
+
"Obviously, Arizona enjoys some of the best solar conditions in the world and we are well positioned to capitalize on this resource as we continue that Clean Energy transition.",
|
82 |
+
"Turning to our regulatory environment.",
|
83 |
+
"Although, this last case was not constructive, I believe we'll be able to reasonably navigate through the regulatory environment in the future.",
|
84 |
+
"I'll underscore that this last case was unique in nearly every aspect.",
|
85 |
+
"We plan on filing a new rate case as soon as practicable and be looking to improve the ROE commensurate with rising interest rates and returns.",
|
86 |
+
"Historically, outcomes achieved through settlement have delivered new and innovative customer programs and other results that benefit a broad and a diverse range of vested interest in our state's energy future.",
|
87 |
+
"We would aim to achieve a settled outcome in our next case, because we believe that the nature of that process itself yields more informed constructive and mutually beneficial results.",
|
88 |
+
"We'll work to find alignment with stakeholders and the regulators, so that we can improve things for all interested parties.",
|
89 |
+
"Finally, I'm optimistic about the future because we have a well thought out long-term strategy that my entire management team and I are committed to executing.",
|
90 |
+
"We've refocused on the customer and have built a customer-centric strategy that will allow us to deliver exceptional customer service results.",
|
91 |
+
"We are the most improved large utility in J.D. Power's 2020 residential electric service study and we're focused on making continued improvements.",
|
92 |
+
"Near term, our focus and priorities remain on improving our customer experience, customer communications, providing safe and reliable service and continuing to engage with stakeholders to advance our shared priorities of clean, reliable and affordable energy for Arizona residents and businesses.",
|
93 |
+
"Now, I'll walk through our 2022 guidance and long-term financial outlook.",
|
94 |
+
"As Jeff discussed, this last case was not the outcome we were looking for and we recognize this rate case is a regulatory reset.",
|
95 |
+
"We're providing a 2022 earnings guidance range of $3.80 to $4 per share given the full effects of the rate case.",
|
96 |
+
"We recognize this is a significant reduction compared to 2021, so we've illustrated key factors contributing to the change in earnings.",
|
97 |
+
"As you can see on Slide 19, we're starting with the midpoint of our 2021 guidance and walking through the drivers to get us to the midpoint of our 2022 guidance.",
|
98 |
+
"No surprise, the most significant driver is the recent rate case decision, with a negative $0.90 impact.",
|
99 |
+
"This reflects an additional $13 million downward adjustment beyond the $90 million net income impact estimated for the recommended opinion on order last quarter.",
|
100 |
+
"In addition, growth in depreciable plant, higher interest expense related to new financing needs and lower pension OPEB non service credits make up the remaining negative drivers.",
|
101 |
+
"We are focused on cost management and expect O&M savings to provide some positive impact to get us to our 2022 guidance range of $3.80 to $4 per share.",
|
102 |
+
"Turning to the future, we are prepared to use all levers we have available to help us mitigate the impact of this case, and we remain optimistic of our ability to provide long-term value.",
|
103 |
+
"As you can see, investors can expect seven objectives from us and I'll touch upon each one.",
|
104 |
+
"Our plan is expected to provide strong long-term earnings growth after 2022 for the next five years.",
|
105 |
+
"I want to be transparent and reemphasize that this as projected 5% to 7% earnings growth, builds on our 2022 guidance.",
|
106 |
+
"We realize the 2021 base year is a lower growth rate at about 1% to 2%.",
|
107 |
+
"However, we believe 2022 is the appropriate place to anchor our long-term outlook given the valuation reset that has already occurred and we're focused on creating shareholder value from this point going forward.",
|
108 |
+
"There are a number of factors that could provide upside potential to our growth guidance.",
|
109 |
+
"For example, we have the ability to meet -- we have the ability to invest in more Clean Energy if we achieve more constructive cost recovery.",
|
110 |
+
"In addition, robust economic development opportunities may drive increased sales and customer growth.",
|
111 |
+
"Those along with other factors could provide upside to our guidance.",
|
112 |
+
"The second objective shareholders can expect from us, is an optimized capital management plan.",
|
113 |
+
"As Jeff discussed, we continued to experience solid growth in our service territory, which is the primary driver behind our capital plan.",
|
114 |
+
"Steady population growth is expected to drive average annual customer growth in the range of 1.5% to 2.5% through 2024.",
|
115 |
+
"In addition, we expect average annual sales growth to be in the range of 3.5% to 4.5% through 2024 on a weather-normalized basis.",
|
116 |
+
"We have updated our capital plan to $4.7 billion from 2022 to 2024.",
|
117 |
+
"While this represents a modest increase from prior levels, we believe this is prudent until we're in a better place to secure timely and constructive cost recovery.",
|
118 |
+
"We are committed to taking a balanced approach in managing our capital plan to support customer growth, reliability and our clean transition, while limiting our equity needs to minimize dilution as we recover from the outcome of this case.",
|
119 |
+
"Third, as you can see from 2019 to 2024, we project that our rate base growth will remain steady at an average annual growth rate of 5% to 6%.",
|
120 |
+
"I want to highlight that our FERC jurisdictional transmission investments continue to represent a meaningful portion of that growth, that almost a quarter of the total rate base.",
|
121 |
+
"These investments benefit from superior authorized returns in a more favorable cost recovery construct than our ACC jurisdictional investments.",
|
122 |
+
"We believe the steady growth will allow us the opportunity to provide solid earnings growth from transmission in the future.",
|
123 |
+
"Next, I'd like to provide clarity on our financing plans going forward.",
|
124 |
+
"We've previously stated that we would issue equity prior to the next rate case.",
|
125 |
+
"We understand this case was not constructive and we're committed to doing everything we can to protect shareholders from further dilution.",
|
126 |
+
"Therefore, we're deferring our equity issuance and have no plans to issue equity until the conclusion of the next rate case.",
|
127 |
+
"In the meantime, we'll leverage our sales growth and the strength of our balance sheet to support our investment needs.",
|
128 |
+
"While we show equity or equity alternatives in the plan, we have no plans for this to be sourced earlier than 2024, protecting investors from dilution during this period.",
|
129 |
+
"We have a solid track record of disciplined cost management and previously announced that we have initiated additional cost savings programs.",
|
130 |
+
"We understand the importance of efficiency and instituting lean initiatives.",
|
131 |
+
"With that in mind, we're updating our O&M guidance to show one, a reduction of O&M expense from 2021 to 2022.",
|
132 |
+
"Two, a goal of keeping total O&M flat during this period.",
|
133 |
+
"And three, a goal of declining O&M per kilowatt hour.",
|
134 |
+
"Cost management and lean processes will continue to be a strong focus of our management team to mitigate both inflationary pressures and regulatory lag.",
|
135 |
+
"We anticipate another important expectation that investors can look forward to as our attractive dividend yield.",
|
136 |
+
"Yesterday, our Board of Directors announced an increase in our quarterly shareholder dividend from $0.83 to $0.85 per share.",
|
137 |
+
"We have consistently grown our dividend for 10 years straight and we are committed to dividend growth going forward.",
|
138 |
+
"Our longer term objective is to grow the dividend, commensurate with earnings growth and target a long-term dividend payout ratio of 65% to 75%.",
|
139 |
+
"We understand that we're not there now, but we are confident in our plan and that we will eventually grow back into this payout range.",
|
140 |
+
"Turning to the final item, our balance sheet.",
|
141 |
+
"We continue to maintain a strong balance sheet, providing us flexibility in our sources of capital over the next few years.",
|
142 |
+
"We have an attractive long-term debt maturity profile and no debt maturing at APS until 2024.",
|
143 |
+
"Additionally, we maintain robust and durable sources of liquidity with our $1.2 billion of credit facilities recently extended to 2026 and a well-funded and largely derisked pension.",
|
144 |
+
"Taking a closer look at our ratings.",
|
145 |
+
"We continue to have solid investment grade credit ratings.",
|
146 |
+
"Even with the recent downgrade by Fitch and the credit reviews announced by Moody's and S&P, our balance sheet targets include three key components, maintaining credit rating strength, maintaining an APS equity layer greater than 50% and an FFO to debt range of 16% to 18%.",
|
147 |
+
"In summary, we're taking action during this reset and have a plan for attractive growth going forward.",
|
148 |
+
"Importantly, we plan to defer all equity until 2024, further reduce O&M and optimize the balance sheet and capital program during this reset period.",
|
149 |
+
"In return, we have the highest dividend yield among peers, which stands today above 5%.",
|
150 |
+
"While certainly a factor of the current valuation, even at a stock price 20% higher than current levels, we offer a dividend yield more competitive than peers.",
|
151 |
+
"In addition, we announced long-term earnings per share growth guidance of 5% to 7% from 2022 for the next five years.",
|
152 |
+
"With the attractive dividend yield and solid earnings per share CAGR, we anticipate a competitive 10% to 12% total shareholder return going forward.",
|
153 |
+
"In the short-term, we are laser focused on doing everything we can to protect investors during this reset period and then transitioning to a renewed era of growth, so that we can provide a competitive return going forward.",
|
154 |
+
"We remain optimistic about the future.",
|
155 |
+
"Although the final outcome of this rate case was worse than we had expected, we have a path forward that is centered around our long-term track record of constructive rate case outcomes, our robust service territory growth, continued balance sheet strength and a focused management team that is taking action."
|
156 |
+
],
|
157 |
+
"summary": [
|
158 |
+
"sees fy earnings per share $5.25 to $5.35 from continuing operations."
|
159 |
+
]
|
160 |
+
}
|
161 |
+
]
|
dialogue-summarization/ICSI/README.md
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ICSI Corpus
|
2 |
+
|
3 |
+
[The Meeting Recorder Project](https://www1.icsi.berkeley.edu/Speech/mr/mtgrcdr.html)
|
4 |
+
|
5 |
+
Despite recent advances in speech recognition technology, successful recognition is limited to co-operative speakers using close-talking microphones. There are, however, many other situations in which speech recognition would be useful - for instance to provide transcripts of meetings or other archive audio. Speech researchers at ICSI, UW, SRI, and IBM are very interested in new application domains of this kind, and we have begun to work with recorded meeting data.
|
6 |
+
|
7 |
+
The first stage in investigating speech recognition for meetings is to collect some data. At ICSI, we have equipped a meeting room with a multichannel, studio-quality recording system and have begun to collect pilot recordings of meetings, primarily between speech group members. At the time of writing (2001 February), we have collected 40 hours of 16 channel pilot data, and ten hours has been hand-transcribed. See this information on Meeting Recorder data collection including both the mechanics of the meeting recorder setup at ICSI and some initial forays into processing the recordings. The data were then transcribed, using a set of transcription conventions designed for speed and accuracy of data input and encoding.
|
8 |
+
|
9 |
+
Transcribers used a version of the "Transcriber" interface, modified in two ways to handle multi-channel inputs and overlapping speech. For information on our modifications of the Transcriber tool, including screen shots, see here.
|
10 |
+
|
11 |
+
An example of the differences between a high-quality, near-field, head-worn microphone and a far-field, desktop microphone is also available.
|
12 |
+
A key issue in the project is to specify the goals and applications. While the basic idea is to develop recognition that could transcribe conventional meetings, this would be useful only in so far as it would support applications such as searching for particular information or producing automatic summaries. Here is an introduction to Meeting Recorder: Portable Speech Recognition, which particularly discusses applications for a meeting recorder that could be made portable i.e. like a PDA.
|
13 |
+
|
14 |
+
This project is a collaboration between the ICSI speech group (aka Realization), the SSLI lab at the University of Washington (as part of their Communicator project work), and SRI's STAR Lab. Primary funding currently comes from DARPA, and IBM will be providing further support via both collaboration and funding.
|
15 |
+
|
16 |
+
### Citation:
|
17 |
+
|
18 |
+
The data is originally from [The ICSI Meeting Corpus](https://groups.inf.ed.ac.uk/ami/icsi/index.shtml), and the corresponding website is [link](https://groups.inf.ed.ac.uk/ami/icsi/index.shtml).
|
19 |
+
|
20 |
+
We further process the data based on https://github.com/guokan-shang/ami-and-icsi-corpora.
|
21 |
+
|
22 |
+
Please cite their work accordingly if you use the dataset. Thank you!
|