DOI: 10.5281/zenodo.8051180
title: Reddit Comments Dataset for Text Style Transfer Tasks

description: <strong>Reddit Comments Dataset for Text Style Transfer Tasks</strong> A dataset of Reddit comments prepared for Text Style Transfer Tasks. The dataset contains Reddit comments translated into a formal language. For the translation of Reddit comments into a formal language text-davinci-003 was used. To make text-davinci-003 translate the comments into a more formal version, the following prompt was used:<br> "Here is some text: {original_comment} Here is a rewrite of the text, which is more neutral: {"<br> This prompting technique was taken from A Recipe For Arbitrary Text Style Transfer with Large Language Models. The dataset contains comments from the following Subreddits: antiwork, atheism, Conservative, conspiracy, dankmemes, gaybros, leagueoflegends, lgbt, libertarian, linguistics, MensRights, news, offbeat, PoliticalCompassMemes, politics, teenagers, TrueReddit, TwoXChromosomes, wallstreetbets, worldnews. The quality of formal translations was assessed with BERTScore and chrF++: BERTScore: F1-Score: 0.89, Precision: 0.90, Recall: 0.88 chrF++: 37.16 The average perplexity of the generated formal texts was calculated using GPT-2 and is 123.77 <br> The dataset consists of 3 components. <strong>reddit_commments.csv</strong> This file contains a collection of randomly selected comments from 20 Subreddits. For each comment, the following information was collected:<br> - subreddit (name of the subreddit in which the comment was posted)<br> - id (ID of the comment)<br> - submission_id (ID of the submission to which the comment was posted)<br> - body (the comment itself)<br> - created_utc (timestamp in seconds)<br> - parent_id (The ID of the comment or submission to which the comment is a reply)<br> - permalink (The URL to the original comment)-<br> - token_size (How many tokens the comment will be split into by the standard GPT-2 tokenizer)<br> - perplexity (What perplexity does GPT-2 calculate for the comment) The comments were filtered. This file contains only comments that:<br> - have been split by GPT-2 Tokenizer into more than 10 tokens but less than 512 tokens.<br> - are not [removed] or [deleted]<br> - do not contain URLs This file was used as a source for the other two file types. <strong>Labeled Files</strong> (training_labeled.csv and eval_labeled.csv) These files contain the formal translations of the Reddit comments. The 150 comments with the highest calculated perplexity of GPT-2 from each Subreddit were translated into a formal version. This filter was used to translate as many comments as possible that have large stylistic salience. They are structured as follows:<br> - Subreddit (name of the subreddit where the comment was posted).<br> - Original Comment<br> - Formal Comment <strong>Labeled Files with Style Examples </strong>(training_labeled_with_style_samples.json and eval_labeled_with_style_samples.json) These files contain an original Reddit comment, three sample comments from the same subreddit, and the formal translation of the original Reddit comment. These files can be used to train models to perform style transfers based on given examples.<br> The task is to transform the formal translation of the Reddit comment, using the three given examples, into the style of the examples. An entry in this file is structured as follows: "data":[<br> {<br> "input_sentence":"The original Reddit comment",<br> "style_samples":[<br> "sample1",<br> "sample2",<br> "sample3"<br> ],<br> "results_sentence":"The formal translated input_sentence",<br> "subreddit":"The subreddit from which the comments originated"<br> },<br> "..."<br> ]
description: {"references": ["Reif, Emily et al. (2022) A Recipe For Arbitrary Text Style Transfer with Large Language Models"]}