task_categories:text-generation task_categories:text-classification size_categories:10K<n<100K language:en license:openrail arxiv:2306.01985 arxiv:2203.09509 region:us
---
license: openrail
task_categories:
- text-generation
- text-classification
language:
- en
pretty_name: COBRA🐍
size_categories:
- 10K<n<100K
---

# Dataset Card for Dataset Name

## Dataset Description

- **Homepage: https://cobra.xuhuiz.com/** 
- **Paper: https://arxiv.org/abs/2306.01985** 

### Dataset Summary
This dataset contains COBRACOPURS and COBRACORPUS-counterfactual in this [paper](https://arxiv.org/abs/2306.01985)

### Data Splits
* `advContexts_explanations.csv` is `COBRACorpus-CF`
* `toxigen_explanations.csv` is the full `COBRACorpus`
* `toxigen_explanations_train.csv` is the training split of `COBRACorpus`
* `toxigen_explanations_val.csv` is the validation split of `COBRACorpus`

### Data Entries

For `COBRACorpus`, the relevant entries in the `csv` files are

*`situationalContext (string)`, `speakerIdentity (string)`, `listenerIdentity (string)`, `statement (string)`, 
`intent (string)`, `targetGroup (string)`, `relevantPowerDynamics (string)`, `implication (string)`, 
`targetGroupEmotionalReaction (string)`, `targetGroupCognitiveReaction (string)`, `offensiveness (string)`*

Please refer to the [paper](https://arxiv.org/abs/2306.01985) for the specific explanations of these entries.

The *`examples`* entry is the few-shot prompt that we used to generate explanations.

All other entries are from the [Toxicgen](https://arxiv.org/abs/2203.09509) dataset, which is not directly relevant to this 
work but we leave them there as the metadata in case it's useful for the future works.

### Citation Information

If you find this dataset useful, please cite:
```
@inproceedings{zhou2023cobra,
  title = {COBRA Frames: Contextual Reasoning about Effects and Harms of Offensive Statements},
  author = {Zhou, Xuhui and Zhu, Hao and Yerukola, Akhila and Davidson, Thomas and D. Hwang, Jena and Swayamdipta, Swabha and Sap, Maarten},
  year = {2023},
  booktitle = {Findings of ACL}
}
```