Mahadevan PV commited on
Commit
9e51403
·
1 Parent(s): 8ebec04

added training sets

Browse files
Files changed (7) hide show
  1. .gitattributes +23 -1
  2. .idea/misc.xml +6 -0
  3. .idea/workspace.xml +44 -0
  4. README.md +89 -0
  5. test.json +3 -0
  6. train.json +3 -0
  7. valid.json +3 -0
.gitattributes CHANGED
@@ -2,12 +2,12 @@
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
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
  *.model filter=lfs diff=lfs merge=lfs -text
13
  *.msgpack filter=lfs diff=lfs merge=lfs -text
@@ -32,3 +32,25 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* 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
  *.ftz filter=lfs diff=lfs merge=lfs -text
6
  *.gz filter=lfs diff=lfs merge=lfs -text
7
  *.h5 filter=lfs diff=lfs merge=lfs -text
8
  *.joblib filter=lfs diff=lfs merge=lfs -text
9
  *.lfs.* filter=lfs diff=lfs merge=lfs -text
10
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
11
  *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
  *.model filter=lfs diff=lfs merge=lfs -text
13
  *.msgpack filter=lfs diff=lfs merge=lfs -text
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ # Audio files - uncompressed
36
+ *.pcm filter=lfs diff=lfs merge=lfs -text
37
+ *.sam filter=lfs diff=lfs merge=lfs -text
38
+ *.raw filter=lfs diff=lfs merge=lfs -text
39
+ # Audio files - compressed
40
+ *.aac filter=lfs diff=lfs merge=lfs -text
41
+ *.flac filter=lfs diff=lfs merge=lfs -text
42
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
43
+ *.ogg filter=lfs diff=lfs merge=lfs -text
44
+ *.wav filter=lfs diff=lfs merge=lfs -text
45
+ # Image files - uncompressed
46
+ *.bmp filter=lfs diff=lfs merge=lfs -text
47
+ *.gif filter=lfs diff=lfs merge=lfs -text
48
+ *.png filter=lfs diff=lfs merge=lfs -text
49
+ *.tiff filter=lfs diff=lfs merge=lfs -text
50
+ # Image files - compressed
51
+ *.jpg filter=lfs diff=lfs merge=lfs -text
52
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
53
+ *.webp filter=lfs diff=lfs merge=lfs -text
54
+ test.json filter=lfs diff=lfs merge=lfs -text
55
+ train.json filter=lfs diff=lfs merge=lfs -text
56
+ valid.json filter=lfs diff=lfs merge=lfs -text
.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_19" project-jdk-name="Python 3.9 (AutoGPT)" project-jdk-type="Python SDK">
4
+ <output url="file://$PROJECT_DIR$/out" />
5
+ </component>
6
+ </project>
.idea/workspace.xml ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="ChangeListManager">
7
+ <list default="true" id="9b61aacd-2d73-427b-bb0c-025a78dd271b" name="Changes" comment="" />
8
+ <option name="SHOW_DIALOG" value="false" />
9
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+ <option name="LAST_RESOLUTION" value="IGNORE" />
12
+ </component>
13
+ <component name="Git.Settings">
14
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
15
+ </component>
16
+ <component name="MarkdownSettingsMigration">
17
+ <option name="stateVersion" value="1" />
18
+ </component>
19
+ <component name="ProjectId" id="2OjC8klhgkK88DTEkJMXmzjIt1B" />
20
+ <component name="ProjectViewState">
21
+ <option name="hideEmptyMiddlePackages" value="true" />
22
+ <option name="showLibraryContents" value="true" />
23
+ </component>
24
+ <component name="PropertiesComponent"><![CDATA[{
25
+ "keyToString": {
26
+ "RunOnceActivity.OpenProjectViewOnStart": "true",
27
+ "RunOnceActivity.ShowReadmeOnStart": "true",
28
+ "project.structure.last.edited": "Project",
29
+ "project.structure.proportion": "0.0",
30
+ "project.structure.side.proportion": "0.0"
31
+ }
32
+ }]]></component>
33
+ <component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
34
+ <component name="TaskManager">
35
+ <task active="true" id="Default" summary="Default task">
36
+ <changelist id="9b61aacd-2d73-427b-bb0c-025a78dd271b" name="Changes" comment="" />
37
+ <created>1682064446705</created>
38
+ <option name="number" value="Default" />
39
+ <option name="presentableId" value="Default" />
40
+ <updated>1682064446705</updated>
41
+ </task>
42
+ <servers />
43
+ </component>
44
+ </project>
README.md ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - crowdsourced
4
+ language:
5
+ - en
6
+ language_creators:
7
+ - crowdsourced
8
+ - machine-generated
9
+ license: cc-by-4.0
10
+ multilinguality:
11
+ - monolingual
12
+ pretty_name: ProsocialDialog
13
+ size_categories:
14
+ - 10K<n<100K
15
+ - 100K<n<1M
16
+ source_datasets:
17
+ - original
18
+ - extended|social_bias_frames
19
+ tags:
20
+ - dialogue
21
+ - dialogue safety
22
+ - social norm
23
+ - rules-of-thumb
24
+ task_categories:
25
+ - conversational
26
+ - text-classification
27
+ task_ids:
28
+ - dialogue-generation
29
+ - multi-class-classification
30
+ ---
31
+
32
+ # Dataset Card for ProsocialDialog Dataset
33
+
34
+ ## Dataset Description
35
+ - **Repository:** [Dataset and Model](https://github.com/skywalker023/prosocial-dialog)
36
+ - **Paper:** [ProsocialDialog: A Prosocial Backbone for Conversational Agents](https://aclanthology.org/2022.emnlp-main.267/)
37
+ - **Point of Contact:** [Hyunwoo Kim](mailto:hyunwook@allenai.org)
38
+
39
+ ## Dataset Summary
40
+ ProsocialDialog is the first large-scale multi-turn English dialogue dataset to teach conversational agents to respond to problematic content following social norms. Covering diverse unethical, problematic, biased, and toxic situations, ProsocialDialog contains responses that encourage prosocial behavior, grounded in commonsense social rules (i.e., rules-of-thumb, RoTs). Created via a human-AI collaborative framework, ProsocialDialog consists of 58K dialogues, with 331K utterances, 160K unique RoTs, and 497K dialogue safety labels accompanied by free-form rationales.
41
+
42
+
43
+ ## Supported Tasks
44
+ * Dialogue response generation
45
+ * Dialogue safety prediction
46
+ * Rules-of-thumb generation
47
+
48
+ ## Languages
49
+ English
50
+
51
+ ## Dataset Structure
52
+
53
+ ### Data Attributes
54
+ attribute | type | description
55
+ --- | --- | ---
56
+ `context` | str | the potentially unsafe utterance
57
+ `response` | str | the guiding utterance grounded on rules-of-thumb (`rots`)
58
+ `rots` | list of str\|null | the relevant rules-of-thumb for `text` *not* labeled as \_\_casual\_\_
59
+ `safety_label` | str | the final verdict of the context according to `safety_annotations`: {\_\_casual\_\_, \_\_possibly\_needs\_caution\_\_, \_\_probably\_needs\_caution\_\_, \_\_needs\_caution\_\_, \_\_needs\_intervention\_\_}
60
+ `safety_annotations` | list of str | raw annotations from three workers: {casual, needs caution, needs intervention}
61
+ `safety_annotation_reasons` | list of str | the reasons behind the safety annotations in free-form text from each worker
62
+ `source` | str | the source of the seed text that was used to craft the first utterance of the dialogue: {socialchemistry, sbic, ethics_amt, ethics_reddit}
63
+ `etc` | str\|null | other information
64
+ `dialogue_id` | int | the dialogue index
65
+ `response_id` | int | the response index
66
+ `episode_done` | bool | an indicator of whether it is the end of the dialogue
67
+
68
+
69
+ ## Dataset Creation
70
+
71
+ To create ProsocialDialog, we set up a human-AI collaborative data creation framework, where GPT-3 generates the potentially unsafe utterances, and crowdworkers provide prosocial responses to them. This approach allows us to circumvent two substantial challenges: (1) there are no available large-scale corpora of multiturn prosocial conversations between humans, and (2) asking humans to write unethical, toxic, or problematic utterances could result in psychological harms (Roberts, 2017; Steiger et al., 2021).
72
+
73
+ ### Further Details, Social Impacts, and Limitations
74
+ Please refer to our [paper](https://arxiv.org/abs/2205.12688).
75
+
76
+
77
+ ## Additional Information
78
+
79
+ ### Citation
80
+
81
+ Please cite our work if you found the resources in this repository useful:
82
+ ```
83
+ @inproceedings{kim2022prosocialdialog,
84
+ title={ProsocialDialog: A Prosocial Backbone for Conversational Agents},
85
+ author={Hyunwoo Kim and Youngjae Yu and Liwei Jiang and Ximing Lu and Daniel Khashabi and Gunhee Kim and Yejin Choi and Maarten Sap},
86
+ booktitle={EMNLP},
87
+ year=2022
88
+ }
89
+ ```
test.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b6705cef4279e60bcd70b4fed3bf9a2e53283af3eda2723933d31feee220ffd
3
+ size 17644365
train.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4782f339a1f01a6962289f1c7b2c0727e340e76af95a402c569a48f5df38dc75
3
+ size 85050121
valid.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d937082c55dc9e5ce9416caba55dce0933df7ca768bfb76d65981dbfd3ecd9a
3
+ size 14421180