Commit
·
c7de223
verified
·
0
Parent(s):
Duplicate from Conversational-Reasoning/Topical-Chat-Enriched
Browse files- .gitattributes +57 -0
- LICENSE +91 -0
- README.md +102 -0
- README.md~ +103 -0
- corrected_test_freq.jsonl +0 -0
- corrected_test_rare.jsonl +0 -0
- corrected_train.jsonl +3 -0
- corrected_valid_freq.jsonl +0 -0
- corrected_valid_rare.jsonl +0 -0
- pre-build/corrected_test_freq.jsonl +0 -0
- pre-build/corrected_test_rare.jsonl +0 -0
- pre-build/corrected_train.jsonl +0 -0
- pre-build/corrected_valid_freq.jsonl +0 -0
- pre-build/corrected_valid_rare.jsonl +0 -0
- pre-build/test_freq.jsonl +0 -0
- pre-build/test_rare.jsonl +0 -0
- pre-build/train.jsonl +3 -0
- pre-build/valid_freq.jsonl +0 -0
- pre-build/valid_rare.jsonl +0 -0
- test_freq.jsonl +0 -0
- test_rare.jsonl +0 -0
- train.jsonl +3 -0
- valid_freq.jsonl +0 -0
- valid_rare.jsonl +0 -0
.gitattributes
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
+
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
12 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
13 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
14 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
15 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
16 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
17 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
18 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
19 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
20 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
21 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
22 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
23 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
24 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
25 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
26 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
27 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
28 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
29 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
30 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
31 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
32 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
33 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
34 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
35 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
37 |
+
# Audio files - uncompressed
|
38 |
+
*.pcm filter=lfs diff=lfs merge=lfs -text
|
39 |
+
*.sam filter=lfs diff=lfs merge=lfs -text
|
40 |
+
*.raw filter=lfs diff=lfs merge=lfs -text
|
41 |
+
# Audio files - compressed
|
42 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
43 |
+
*.flac filter=lfs diff=lfs merge=lfs -text
|
44 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
45 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
46 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
47 |
+
# Image files - uncompressed
|
48 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
49 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
50 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
51 |
+
*.tiff filter=lfs diff=lfs merge=lfs -text
|
52 |
+
# Image files - compressed
|
53 |
+
*.jpg filter=lfs diff=lfs merge=lfs -text
|
54 |
+
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
55 |
+
*.webp filter=lfs diff=lfs merge=lfs -text
|
56 |
+
train.jsonl filter=lfs diff=lfs merge=lfs -text
|
57 |
+
corrected_train.jsonl filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Copyright Amazon.com, Inc. or its affiliates
|
2 |
+
|
3 |
+
Except as otherwise noted in a Notice.md file in this repository, datasets provided in this repository are licensed under the Community Data License Agreement ñ Sharing ñ Version 1.0.
|
4 |
+
|
5 |
+
This is the Community Data License Agreement ñ Sharing, Version 1.0 (ìAgreementî). Data is provided to You under this Agreement by each of the Data Providers. Your exercise of any of the rights and permissions granted below constitutes Your acceptance and agreement to be bound by the terms and conditions of this Agreement.
|
6 |
+
|
7 |
+
The benefits that each Data Provider receives from making Data available and that You receive from Data or otherwise under these terms and conditions shall be deemed sufficient consideration for the formation of this Agreement. Accordingly, Data Provider(s) and You (the ìPartiesî) agree as follows:
|
8 |
+
|
9 |
+
Section 1. Definitions
|
10 |
+
|
11 |
+
1.1 ìAddî means to supplement Data with Your own or someone elseís Data, resulting in Your ìAdditions.î Additions do not include Results.
|
12 |
+
|
13 |
+
1.2 ìComputational Useî means Your analysis (through the use of computational devices or otherwise) or other interpretation of Data. By way of example and not limitation, ìComputational Useî includes the application of any computational analytical technique, the purpose of which is the analysis of any Data in digital form to generate information about Data such as patterns, trends, correlations, inferences, insights and attributes.
|
14 |
+
|
15 |
+
1.3 ìDataî means the information (including copyrightable information, such as images or text), collectively or individually, whether created or gathered by a Data Provider or an Entity acting on its behalf, to which rights are granted under this Agreement.
|
16 |
+
|
17 |
+
1.4 ìData Providerî means any Entity (including any employee or contractor of such Entity authorized to Publish Data on behalf of such Entity) that Publishes Data under this Agreement prior to Your Receiving it.
|
18 |
+
|
19 |
+
1.5 ìEnhanced Dataî means the subset of Data that You Publish and that is composed of (a) Your Additions and/or (b) Modifications to Data You have received under this Agreement.
|
20 |
+
|
21 |
+
1.6 ìEntityî means any natural person or organization that exists under the laws of the jurisdiction in which it is organized, together with all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, ìcontrolî means (a) the power, directly or indirectly, to cause the direction or management of such entity, whether by contract or otherwise, (b) the ownership of more than fifty percent (50%) of the outstanding shares or securities, (c) the beneficial ownership of such entity or, (d) the ability to appoint, whether by agreement or right, the majority of directors of an Entity.
|
22 |
+
|
23 |
+
1.7 ìLedgerî means a digital record of Data or grants of rights in Data governed by this Agreement, using any technology having functionality to record and store Data or grants, contributions, or licenses to Data governed by this Agreement.
|
24 |
+
|
25 |
+
1.8 ìModifyî means to delete, erase, correct or re-arrange Data, resulting in ìModifications.î Modifications do not include Results.
|
26 |
+
|
27 |
+
1.9 ìPublishî means to make all or a subset of Data (including Your Enhanced Data) available in any manner which enables its Use, including by providing a copy on physical media or remote access. For any form of Entity, that is to make the Data available to any individual who is not employed by that Entity or engaged as a contractor or agent to perform work on that Entityís behalf. A ìPublicationî occurs each time You Publish Data.
|
28 |
+
|
29 |
+
1.10 ìReceiveî or ìReceivesî means to have been given access to Data, locally or remotely.
|
30 |
+
|
31 |
+
1.11 ìResultsî means the outcomes or outputs that You obtain from Your Computational Use of Data. Results shall not include more than a de minimis portion of the Data on which the Computational Use is based.
|
32 |
+
|
33 |
+
1.12 ìSui Generis Database Rightsî means rights, other than copyright, resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other equivalent rights anywhere in the world.
|
34 |
+
|
35 |
+
1.13 ìUseî means using Data (including accessing, copying, studying, reviewing, adapting, analyzing, evaluating, or making Computational Use of it), either by machines or humans, or a combination of both.
|
36 |
+
|
37 |
+
1.14 ìYouî or ìYourî means any Entity that Receives Data under this Agreement.
|
38 |
+
|
39 |
+
Section 2. Right and License to Use and to Publish
|
40 |
+
|
41 |
+
2.1 Subject to the conditions set forth in Section 3 of this Agreement, Data Provider(s) hereby grant(s) to You a worldwide, non-exclusive, irrevocable (except as provided in Section 5) right to: (a) Use Data; and (b) Publish Data.
|
42 |
+
|
43 |
+
2.2 To the extent that the Data or the coordination, selection or arrangement of Data is protected or protectable under copyright, Sui Generis Database Rights, or other law, Data Provider(s) further agree(s) that such Data or coordination, selection or arrangement is hereby licensed to You and to anyone else who Receives Data under this Agreement for Use and Publication, subject to the conditions set forth in Section 3 of this Agreement.
|
44 |
+
|
45 |
+
2.3 Except for these rights and licenses expressly granted, no other intellectual property rights are granted or should be implied.
|
46 |
+
|
47 |
+
Section 3. Conditions on Rights Granted
|
48 |
+
|
49 |
+
3.1 If You Publish Data You Receive or Enhanced Data:
|
50 |
+
|
51 |
+
(a) The Data (including the Enhanced Data) must be Published under this Agreement in accordance with this Section 3; and
|
52 |
+
|
53 |
+
(b) You must cause any Data files containing Enhanced Data to carry prominent notices that You have changed those files; and
|
54 |
+
|
55 |
+
(c) If You Publish Data You Receive, You must preserve all credit or attribution to the Data Provider(s). Such retained credit or attribution includes any of the following to the extent they exist in Data as You have Received it: legal notices or metadata; identification of the Data Provider(s); or hyperlinks to Data to the extent it is practical to do so.
|
56 |
+
|
57 |
+
3.2 You may not restrict or deter the ability of anyone who Receives the Data (a) to Publish the Data in a publicly-accessible manner or (b) if the project has designated a Ledger for recording Data or grants of rights in Data for purposes of this Agreement, to record the Data or grants of rights in Data in the Ledger.
|
58 |
+
|
59 |
+
3.3 If You Publish Data You Receive, You must do so under an unmodified form of this Agreement and include the text of this Agreement, the name of this Agreement and/or a hyperlink or other method reasonably likely to provide a copy of the text of this Agreement. You may not modify this Agreement or impose any further restrictions on the exercise of the rights granted under this Agreement, including by adding any restriction on commercial or non-commercial Use of Data (including Your Enhanced Data) or by limiting permitted Use of such Data to any particular platform, technology or field of endeavor. Notices that purport to modify this Agreement shall be of no effect.
|
60 |
+
|
61 |
+
3.4 You and each Data Provider agree that Enhanced Data shall not be considered a work of joint authorship by virtue of its relationship to Data licensed under this Agreement and shall not require either any obligation of accounting to or the consent of any Data Provider.
|
62 |
+
|
63 |
+
3.5 This Agreement imposes no obligations or restrictions on Your Use or Publication of Results.
|
64 |
+
|
65 |
+
Section 4. Data Provider(s)í Representations
|
66 |
+
|
67 |
+
4.1 Each Data Provider represents that the Data Provider has exercised reasonable care, to assure that: (a) the Data it Publishes was created or generated by it or was obtained from others with the right to Publish the Data under this Agreement; and (b) Publication of such Data does not violate any privacy or confidentiality obligation undertaken by the Data Provider.
|
68 |
+
|
69 |
+
Section 5. Termination
|
70 |
+
|
71 |
+
5.1 All of Your rights under this Agreement will terminate, and Your right to Receive, Use or Publish the Data will be revoked or modified if You materially fail to comply with the terms and conditions of this Agreement and You do not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If Your rights under this Agreement terminate, You agree to cease Receipt, Use and Publication of Data. However, Your obligations and any rights and permissions granted by You under this Agreement relating to Data that You Published prior to such termination will continue and survive.
|
72 |
+
|
73 |
+
5.2 If You institute litigation against a Data Provider or anyone else who Receives the Data (including a cross-claim in a lawsuit) based on the Data, other than a claim asserting breach of this Agreement, then any rights previously granted to You to Receive, Use and Publish Data under this Agreement will terminate as of the date such litigation is filed.
|
74 |
+
|
75 |
+
Section 6. Disclaimer of Warranties and Limitation of Liability
|
76 |
+
|
77 |
+
6.1 EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE DATA (INCLUDING ENHANCED DATA) IS PROVIDED ON AN ìAS ISî BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
|
78 |
+
|
79 |
+
6.2 NEITHER YOU NOR ANY DATA PROVIDERS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE DATA OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
80 |
+
|
81 |
+
Section 7. Miscellaneous
|
82 |
+
|
83 |
+
7.1 You agree that it is solely Your responsibility to comply with all applicable laws with regard to Your Use or Publication of Data, including any applicable privacy, data protection, security and export laws. You agree to take reasonable steps to assist a Data Provider fulfilling responsibilities to comply with applicable laws with regard to Use or Publication of Data Received hereunder.
|
84 |
+
|
85 |
+
7.2 You and Data Provider(s), collectively and individually, waive and/or agree not to assert, to the extent permitted by law, any moral rights You or they hold in Data.
|
86 |
+
|
87 |
+
7.3 This Agreement confers no rights or remedies upon any person or entity other than the Parties and their respective heirs, executors, successors and assigns.
|
88 |
+
|
89 |
+
7.4 The Data Provider(s) reserve no right or expectation of privacy, data protection or confidentiality in any Data that they Publish under this Agreement. If You choose to Publish Data under this Agreement, You similarly do so with no reservation or expectation of any rights of privacy or confidentiality in that Data.
|
90 |
+
|
91 |
+
7.5 The Community Data License Agreement workgroup under The Linux Foundation is the steward of this Agreement (ìStewardî). No one other than the Steward has the right to modify or publish new versions of this Agreement. Each version will be given a distinguishing version number. You may Use and Publish Data Received hereunder under the terms of the version of the Agreement under which You originally Received the Data, or under the terms of any subsequent version published by the Steward.
|
README.md
ADDED
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Enriched Topical-Chat: A Dialogue Act and Knowledge Sentence annotated version of Topical-Chat
|
2 |
+
|
3 |
+
This README describes Enriched Topical-Chat, an augmentation of Topical-Chat that contains dialogue act and knowledge sentence annotations for each turn in the dataset. Each annotation is automatically annotated using off-the-shelf models.
|
4 |
+
|
5 |
+
## Knowledge Sentence Annoations
|
6 |
+
|
7 |
+
Each conversation in Topical-Chat has a pair of reading sets which consists of a set of knowledge sentences. For every turn and knowledge sentence in the Topical-Chat dataset, we computed a TFIDF vector. We then computed the cosine similarity between a turn in the conversation and selected the top-1 knowledge sentence. In the new data release, for each conversation turn, we will present the knowledge sentences selected along with the similarity score.
|
8 |
+
|
9 |
+
## Dialogue Act Annoations
|
10 |
+
|
11 |
+
We obtain the dialogue acts for each turn by running an off-the-shelf SVM dialogue act tagger released by (https://github.com/ColingPaper2018/DialogueAct-Tagger).
|
12 |
+
This tagger was trained on five datasets (Switchboard, Oasis BT, Maptask, VerbMobil2, AMI).
|
13 |
+
|
14 |
+
## Prerequisites
|
15 |
+
|
16 |
+
After cloning the repo you must first follow the instructions in https://github.com/alexa/Topical-Chat/blob/master/README.md. This includes building the original dataset along with the reading sets. Look at the Build Section for the exact steps. Once the original dataset is built each .json file will contain pointers to the knowledge sentences in the reading sets.
|
17 |
+
|
18 |
+
### Conversations:
|
19 |
+
The data is hosted on s3. To pull the data run these commands:
|
20 |
+
```
|
21 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/train.json
|
22 |
+
|
23 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/valid_freq.json
|
24 |
+
|
25 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/valid_rare.json
|
26 |
+
|
27 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/test_freq.json
|
28 |
+
|
29 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/test_rare.json
|
30 |
+
```
|
31 |
+
|
32 |
+
Each .json file has the specified format:
|
33 |
+
|
34 |
+
```
|
35 |
+
{
|
36 |
+
"t_d004c097-424d-45d4-8f91-833d85c2da31": {
|
37 |
+
"article_url": "<link to washington post article>",
|
38 |
+
"config": "C",
|
39 |
+
"content": [
|
40 |
+
{
|
41 |
+
"message": ["Did you know that the University of Iowa's locker room is
|
42 |
+
painted pink?", "I wonder why?"],
|
43 |
+
"agent": "agent_1",
|
44 |
+
"segmented_annotations": [
|
45 |
+
{
|
46 |
+
"da": "PropQ",
|
47 |
+
"gt_ks": {"score": 0.73,"ds": "wiki",
|
48 |
+
"section": "FS1", "start_index": 0, "end_index": 100},
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"da": "ChoiceQ",
|
52 |
+
"gt_ks": {"score": 0.0, "ds": "article", "section": "AS4",
|
53 |
+
"start_index": 0, "end_index": 100},
|
54 |
+
}
|
55 |
+
],
|
56 |
+
"gt_turn_ks": {"score": 0.67, "ds": "fun_facts",
|
57 |
+
"section": "FS1", "index": 0}
|
58 |
+
},
|
59 |
+
```
|
60 |
+
```
|
61 |
+
The additional fields are:
|
62 |
+
|
63 |
+
message: a list containing the segments of each turn
|
64 |
+
segmented_annotations: a list of annotations for each segment within a turn each.
|
65 |
+
da: ground truth dialog act associated with segmented response
|
66 |
+
gt_ks: ground truth knowledge sentence associated with segmented response
|
67 |
+
ds: data source knowledge retrieved from. wiki, fun_facts or article
|
68 |
+
fun_facts:
|
69 |
+
section: which section containing the fun facts i.e. FS1
|
70 |
+
index: which element in the list of fun facts
|
71 |
+
wiki:
|
72 |
+
section: which section containing the wikipedia sentence i.e. FS2
|
73 |
+
start_index: index of beginning character of sentence in article
|
74 |
+
end_index: index of end character
|
75 |
+
article:
|
76 |
+
section: which section of article. i.e. AS4
|
77 |
+
start_index: index of beginning character of sentence in article
|
78 |
+
end_index: index of end character
|
79 |
+
gt_turn_ks: ground truth knowlege sentence associated with turn
|
80 |
+
```
|
81 |
+
|
82 |
+
## Citation
|
83 |
+
### Enriched Topical-Chat
|
84 |
+
```
|
85 |
+
@article{hedayatnia2020policy,
|
86 |
+
title={Policy-Driven Neural Response Generation for Knowledge-Grounded Dialogue Systems},
|
87 |
+
author={Hedayatnia, Behnam and Gopalakrishnan, Karthik and Kim, Seokhwan and Liu, Yang and Eric, Mihail and Hakkani-Tur, Dilek},
|
88 |
+
journal={arXiv preprint arXiv:2005.12529},
|
89 |
+
year={2020}
|
90 |
+
}
|
91 |
+
|
92 |
+
```
|
93 |
+
### Topical-Chat
|
94 |
+
```
|
95 |
+
@inproceedings{gopalakrishnan2019topical,
|
96 |
+
author={Gopalakrishnan, Karthik and Hedayatnia, Behnam and Chen, Qinlang and Gottardi, Anna and Kwatra, Sanjeev and Venkatesh, Anu and Gabriel, Raefer and Hakkani-Tür, Dilek},
|
97 |
+
title={{Topical-Chat: Towards Knowledge-Grounded Open-Domain Conversations}},
|
98 |
+
year={2019},
|
99 |
+
booktitle={INTERSPEECH}
|
100 |
+
}
|
101 |
+
|
102 |
+
```
|
README.md~
ADDED
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Enriched Topical-Chat: A Dialogue Act and Knowledge Sentence annotated version of Topical-Chat
|
2 |
+
|
3 |
+
This README describes Enriched Topical-Chat, an augmentation of Topical-Chat that contains dialogue act and knowledge sentence annotations for each turn in the dataset. Each annotation is automatically annotated using off-the-shelf models.
|
4 |
+
|
5 |
+
## Knowledge Sentence Annoations
|
6 |
+
|
7 |
+
Each conversation in Topical-Chat has a pair of reading sets which consists of a set of knowledge sentences. For every turn and knowledge sentence in the Topical-Chat dataset, we computed a TFIDF vector. We then computed the cosine similarity between a turn in the conversation and selected the top-1 knowledge sentence. In the new data release, for each conversation turn, we will present the knowledge sentences selected along with the similarity score.
|
8 |
+
|
9 |
+
## Dialogue Act Annoations
|
10 |
+
|
11 |
+
We obtain the dialogue acts for each turn by running an off-the-shelf SVM dialogue act tagger released by (https://github.com/ColingPaper2018/DialogueAct-Tagger).
|
12 |
+
This tagger was trained on five datasets (Switchboard, Oasis BT, Maptask, VerbMobil2, AMI).
|
13 |
+
|
14 |
+
## Prerequisites
|
15 |
+
|
16 |
+
After cloning the repo you must first follow the instructions in https://github.com/alexa/Topical-Chat/blob/master/README.md. This includes building the original dataset along with the reading sets. Look at the Build Section for the exact steps. Once the original dataset is built each .json file will contain pointers to the knowledge sentences in the reading sets.
|
17 |
+
|
18 |
+
### Conversations:
|
19 |
+
The data is hosted on s3. To pull the data run these commands:
|
20 |
+
```
|
21 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/train.json
|
22 |
+
|
23 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/valid_freq.json
|
24 |
+
|
25 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/valid_rare.json
|
26 |
+
|
27 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/test_freq.json
|
28 |
+
|
29 |
+
wget https://enriched-topical-chat.s3.amazonaws.com/test_rare.json
|
30 |
+
```
|
31 |
+
|
32 |
+
Each .json file has the specified format:
|
33 |
+
|
34 |
+
```
|
35 |
+
{
|
36 |
+
"t_d004c097-424d-45d4-8f91-833d85c2da31": {
|
37 |
+
"article_url": "<link to washington post article>",
|
38 |
+
"config": "C",
|
39 |
+
"content": [
|
40 |
+
{
|
41 |
+
"message": ["Did you know that the University of Iowa's locker room is
|
42 |
+
painted pink?", "I wonder why?"],
|
43 |
+
"agent": "agent_1",
|
44 |
+
"segmented_annotations": [
|
45 |
+
{
|
46 |
+
"da": "PropQ",
|
47 |
+
"gt_ks": {"score": 0.73,"ds": "wiki",
|
48 |
+
"section": "FS1", "start_index": 0, "end_index": 100},
|
49 |
+
},
|
50 |
+
{
|
51 |
+
"da": "ChoiceQ",
|
52 |
+
"gt_ks": {"score": 0.0, "ds": "article", "section": "AS4",
|
53 |
+
"start_index": 0, "end_index": 100},
|
54 |
+
}
|
55 |
+
],
|
56 |
+
"gt_turn_ks": {"score": 0.67, "ds": "fun_facts",
|
57 |
+
"section": "FS1", "index": 0}
|
58 |
+
},
|
59 |
+
```
|
60 |
+
```
|
61 |
+
The additional fields are:
|
62 |
+
|
63 |
+
message: a list containing the segments of each turn
|
64 |
+
segmented_annotations: a list of annotations for each segment within a turn each.
|
65 |
+
da: ground truth dialog act associated with segmented response
|
66 |
+
gt_ks: ground truth knowledge sentence associated with segmented response
|
67 |
+
ds: data source knowledge retrieved from. wiki, fun_facts or article
|
68 |
+
fun_facts:
|
69 |
+
section: which section containing the fun facts i.e. FS1
|
70 |
+
index: which element in the list of fun facts
|
71 |
+
wiki:
|
72 |
+
section: which section containing the wikipedia sentence i.e. FS2
|
73 |
+
start_index: index of beginning character of sentence in article
|
74 |
+
end_index: index of end character
|
75 |
+
article:
|
76 |
+
section: which section of article. i.e. AS4
|
77 |
+
start_index: index of beginning character of sentence in article
|
78 |
+
end_index: index of end character
|
79 |
+
gt_turn_ks: ground truth knowlege sentence associated with turn
|
80 |
+
```
|
81 |
+
|
82 |
+
## Citation
|
83 |
+
If you use this dataset, please cite the following two papers:
|
84 |
+
### Enriched Topical-Chat
|
85 |
+
```
|
86 |
+
@article{hedayatnia2020policy,
|
87 |
+
title={Policy-Driven Neural Response Generation for Knowledge-Grounded Dialogue Systems},
|
88 |
+
author={Hedayatnia, Behnam and Gopalakrishnan, Karthik and Kim, Seokhwan and Liu, Yang and Eric, Mihail and Hakkani-Tur, Dilek},
|
89 |
+
journal={arXiv preprint arXiv:2005.12529},
|
90 |
+
year={2020}
|
91 |
+
}
|
92 |
+
|
93 |
+
```
|
94 |
+
### Topical-Chat
|
95 |
+
```
|
96 |
+
@inproceedings{gopalakrishnan2019topical,
|
97 |
+
author={Gopalakrishnan, Karthik and Hedayatnia, Behnam and Chen, Qinlang and Gottardi, Anna and Kwatra, Sanjeev and Venkatesh, Anu and Gabriel, Raefer and Hakkani-Tür, Dilek},
|
98 |
+
title={{Topical-Chat: Towards Knowledge-Grounded Open-Domain Conversations}},
|
99 |
+
year={2019},
|
100 |
+
booktitle={INTERSPEECH}
|
101 |
+
}
|
102 |
+
|
103 |
+
```
|
corrected_test_freq.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
corrected_test_rare.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
corrected_train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7bb456eb1858513fab56c3039750a693167fa6d94e264d93eed7b61625b25aff
|
3 |
+
size 92351991
|
corrected_valid_freq.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
corrected_valid_rare.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pre-build/corrected_test_freq.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pre-build/corrected_test_rare.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pre-build/corrected_train.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pre-build/corrected_valid_freq.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pre-build/corrected_valid_rare.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pre-build/test_freq.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pre-build/test_rare.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pre-build/train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0704f814fe16e4a814995c1691786dbf4b132b8be9fcf89ec94b0e1857616d5c
|
3 |
+
size 9904861
|
pre-build/valid_freq.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
pre-build/valid_rare.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
test_freq.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
test_rare.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
train.jsonl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7bb456eb1858513fab56c3039750a693167fa6d94e264d93eed7b61625b25aff
|
3 |
+
size 92351991
|
valid_freq.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|
valid_rare.jsonl
ADDED
The diff for this file is too large to render.
See raw diff
|
|