File size: 3,793 Bytes
387cd09 f6ebb52 3ac453f 4b0efd3 387cd09 93b36d6 387cd09 93b36d6 387cd09 973f673 98f762a f92dd9a 387cd09 2f5cd99 f6ebb52 387cd09 abcd5d9 b2ca90a f6ebb52 b2ca90a 8436af1 b2ca90a 8436af1 b2ca90a ec5fa74 387cd09 d770def 973f673 ec5fa74 655f4c4 973f673 6cbaa82 9926088 973f673 655f4c4 6aba912 387cd09 1d55f6d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
---
license: cc-by-4.0
task_categories:
- text-generation
language:
- en
size_categories:
- 1K<n<10K
---
# Dataset Summary
The "humor-chains" dataset is a machine-filtered collection of the most upvoted Reddit submissions and their replies on humor-related subreddits. Generally, a humor chain is when a short post triggers a chain of one or more replies *that Redditors find entertaining*. In other words, some entries might be NSFW, topical, or internal jokes.
For example ([original thread](https://www.reddit.com/r/funny/comments/cmb3z/im_dating_a_midget/?sort=top)):
![Screenshot-reddit-chain.png](https://cdn-uploads.huggingface.co/production/uploads/6564a7606c9793d92e715f33/YKtjZD6V1auH1DVaofQo2.png)
# Dataset Details
## License
[CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/deed.en)
Note that the dataset was created from Reddit's public user-generated content.
Reddit's license states in section "2.4 User Content" that such content is [ownership of individual reddit users](https://www.redditinc.com/policies/data-api-terms#:~:text=2.4%20User%20Content,not%20by%20Reddit.) and not Reddit itself.
For privacy reasons, all usernames were removed and replaced by "human" (original submission) and "gpt" (all replies).
That format is convenient for fine-tuning GPT models, e.g., in [Axolotl](https://github.com/OpenAccess-AI-Collective/axolotl) that is ["sharegpt" format type](https://openaccess-ai-collective.github.io/axolotl/docs/dataset-formats/conversation.html#sharegpt).
UPDATE 2024-7-9: Axolotl's finetuning formats expect a single GPT reply, so dataset was reduced to include submission and a single top reply.
## Dataset Creation
The dataset was created using the following procedure:
1. Reddit's API was not used directly, as API license switched to a more restrictive license (see [2023 Reddit API controversy](https://en.wikipedia.org/wiki/2023_Reddit_API_controversy)). Instead, I used older Reddit dump [Subreddit comments/submissions 2005-06 to 2023-12](https://academictorrents.com/details/56aa49f9653ba545f48df2e33679f014d2829c10). Inside the big torrent file are zstandard compressed ndjson files, each representing a subreddit.
2. Downloaded a portion of subreddits from [List of funny subreddits](https://www.reddit.com/r/redditlists/comments/128ayc/list_of_funny_subreddits/).
3. Python script filtered .jsonl files inside .zst to include only the most upvoted thread for each submission.
4. Filtered submissions satisfy ALL of the following:
* score >= min (10 upvotes),
* total len is shorter than max_text_len (256 characters),
* title is not "[deleted by user]",
* selftext is not "[removed]" or "[deleted]",
* links to itself (Reddit link) and not an image, video, or external link,
* doesn't start with a link,
* doesn't have a thumbnail.
5. Filtered comments satisfy ALL of the following:
* score >= min (5 upvotes),
* total len is shorter than max_text_len (256 characters),
* Only top upvoted reply at each reply level is included.
6. All filtered threads were further filtered with a local model for humor detection: [Humor-Research/humor-detection-comb-23](https://huggingface.co/Humor-Research/humor-detection-comb-23/tree/main), which was selected because it performed the best on [lm233/humor_train](https://huggingface.co/datasets/lm233/humor_train?row=9) dataset. Threads not detected as funny were removed.
All code used for filtering of the dataset is available on GitHub: [reddit-filter](https://github.com/ZSvedic/reddit-filter)
## Citation
```
@misc{ZSvedic_humor_chains,
title={humor-chains},
author={Zeljko Svedic},
year={2024},
url={https://huggingface.co/datasets/ZSvedic/humor-chains/blob/main/README.md}
}
```
## Curated by
[Zeljko Svedic](https://huggingface.co/ZSvedic) |