language:en license:gpl-2.0 region:us
---
license: gpl-2.0
language:
- en
---
# Short Jokes Punchline

This dataset contains information about jokes, visitors, labels, and label segments used in a joke labeling application. The data is stored in four CSV files: `joke.csv`, `visitor.csv`, `label.csv`, and `label_segment.csv`.

---

## Files

### `joke.csv`

This file contains 200 jokes randomly sampled from the Kaggle dataset "Short Jokes." Each row represents a joke with the following columns:

- **`id`**: The unique identifier for the joke.
- **`text`**: The text content of the joke.
- **`created_at`**: The timestamp when the joke was created.

---

### `visitor.csv`

This file contains information about the visitors who labeled the jokes. Each row represents a visitor with the following columns:

- **`id`**: The unique identifier for the visitor, stored as a UUID.
- **`created_at`**: The timestamp when the visitor was created.

---

### `label.csv`

This file contains the labels assigned to jokes by visitors. Each row represents a label with the following columns:

- **`id`**: The unique identifier for the label.
- **`joke_id`**: The foreign key referencing the joke being labeled.
- **`visitor_id`**: The foreign key referencing the visitor who labeled the joke.
- **`no_punchline`**: Indicates whether the joke has no punchline (`1` for true, `0` for false).
- **`created_at`**: The timestamp when the label was created.

---

### `label_segment.csv`

This file contains segments of text that have been labeled. Each row represents a label segment with the following columns:

- **`id`**: The unique identifier for the label segment.
- **`label_id`**: The foreign key referencing the label.
- **`start_index`**: The starting index of the labeled segment.
- **`end_index`**: The ending index of the labeled segment.

---

## Usage

This dataset can be used for various purposes, including:

- Analyzing the distribution of jokes and labels.
- Studying the behavior of visitors in labeling jokes.
- Developing and testing machine learning models for joke classification and labeling.

---

## License

This dataset is provided under the [GPL v2 License](LICENSE).

---

## Attribution

The jokes in `joke.csv` are randomly sampled from the Kaggle dataset "Short Jokes" by [Abhinav Moudgil](https://www.kaggle.com/abhinavmoudgil95). The original dataset is licensed under GPL v2.

---

## Citation

If you use this dataset in your research, please cite it as follows:

```bibtex
@dataset{short-jokes-punchline,
  author = {Jinglong Xiong},
  title = {Short Jokes Punchline},
  year = {year},
  publisher = {Hugging Face},
  url = {https://huggingface.co/datasets/Timxjl/short-jokes-punchline}
}
```

---

## Citation

For more information about the dataset and related tools, please visit the [GitHub repository](https://github.com/Tim-Xiong/jokelab-labler).