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):
Dataset Details
License
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 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 that is "sharegpt" format type.
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:
- Reddit's API was not used directly, as API license switched to a more restrictive license (see 2023 Reddit API controversy). Instead, I used older Reddit dump Subreddit comments/submissions 2005-06 to 2023-12. Inside the big torrent file are zstandard compressed ndjson files, each representing a subreddit.
- Downloaded a portion of subreddits from List of funny subreddits.
- Python script filtered .jsonl files inside .zst to include only the most upvoted thread for each submission.
- 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.
- 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.
- All filtered threads were further filtered with a local model for humor detection: Humor-Research/humor-detection-comb-23, which was selected because it performed the best on lm233/humor_train dataset. Threads not detected as funny were removed.
All code used for filtering of the dataset is available on GitHub: 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}
}