Skip to content
JournalsWorldThe Global Research Discovery Platform
Featured Dataset

Reddit Comments Dataset for Text Style Transfer Tasks

Reddit Comments Dataset for Text Style Transfer Tasks 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-da

👤
CreatorKopf, Fabian
📅
Published2023-06-10
🔗
DOI10.5281/zenodo.8051180
📊
Downloads1,681
⚖️
Licensecc-by-4.0
File Size19.8 MB
Data TypeDataset
Published2023
Licensecc-by-4.0
Total Views2,076
Total Downloads1,681

Reddit Comments Dataset for Text Style Transfer Tasks

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:
"Here is some text: original_comment Here is a rewrite of the text, which is more neutral: {"
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

The dataset consists of 3 components.

reddit_commments.csv

This file contains a collection of randomly selected comments from 20 Subreddits. For each comment, the following information was collected:
– subreddit (name of the subreddit in which the comment was posted)
– id (ID of the comment)
– submission_id (ID of the submission to which the comment was posted)
– body (the comment itself)
– created_utc (timestamp in seconds)
– parent_id (The ID of the comment or submission to which the comment is a reply)
– permalink (The URL to the original comment)-
– token_size (How many tokens the comment will be split into by the standard GPT-2 tokenizer)
– perplexity (What perplexity does GPT-2 calculate for the comment)

The comments were filtered. This file contains only comments that:
– have been split by GPT-2 Tokenizer into more than 10 tokens but less than 512 tokens.
– are not [removed] or [deleted]
– do not contain URLs

This file was used as a source for the other two file types.

Labeled Files (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:
– Subreddit (name of the subreddit where the comment was posted).
– Original Comment
– Formal Comment

Labeled Files with Style Examples (

📤 Share this page

Found this useful? Share it with your network.

✓ Link copied! Paste it on ResearchGate / Academia.edu
📦
Reddit Comments Dataset for Text Style Transfer Tasks (Full Dataset)19.8 MB
⬇
📄
ReadmeVia DOI record
↗

Files are hosted on the source repository. Click download to access the full dataset.

Kopf, Fabian (2023). Reddit Comments Dataset for Text Style Transfer Tasks. https://doi.org/10.5281/zenodo.8051180