CristianProdius commited on
Commit
8547c04
·
verified ·
1 Parent(s): 0738826

Add comprehensive dataset card with statistics

Browse files
Files changed (1) hide show
  1. README.md +111 -21
README.md CHANGED
@@ -1,23 +1,113 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: post_text
5
- dtype: string
6
- - name: post_title
7
- dtype: string
8
- - name: comment_texts
9
- list: string
10
- - name: num_stories
11
- dtype: int64
12
- splits:
13
- - name: train
14
- num_bytes: 1547181967
15
- num_examples: 199248
16
- download_size: 927264034
17
- dataset_size: 1547181967
18
- configs:
19
- - config_name: default
20
- data_files:
21
- - split: train
22
- path: data/train-*
23
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ license: mit
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - writing
9
+ - stories
10
+ - creative-writing
11
+ - reddit
12
+ size_categories:
13
+ - 10K<n<100K
 
 
 
 
 
 
 
 
 
14
  ---
15
+
16
+ # WritingPrompts Filtered Dataset (LitBench Decontaminated)
17
+
18
+ ## Dataset Description
19
+
20
+ This dataset contains filtered and decontaminated WritingPrompts from Reddit, specifically processed to remove any overlap with the LitBench test set. This ensures clean training data for language models without test set contamination.
21
+
22
+ ## Processing Statistics
23
+
24
+ Generated: 2025-09-12
25
+
26
+ ### Dataset Size
27
+ - **Original dataset**: 265174 entries
28
+ - **After decontamination**: 199,248 entries
29
+ - **Contamination removed**: 63159 entries
30
+ - **Retention rate**: 75.14%
31
+
32
+ ### Contamination Analysis
33
+ - **Total contaminated entries**: 63159
34
+ - **Contaminated by post_title only**: 12123
35
+ - **Contaminated by post_text only**: 49671
36
+ - **Contaminated by both fields**: 1365
37
+
38
+ ### Story Quality Filtering
39
+ - **Total comments processed**: 644817
40
+ - **Valid stories kept**: 524110
41
+ - **Non-stories filtered**: 120707
42
+
43
+ ## Dataset Structure
44
+
45
+ Each entry contains:
46
+ - `post_text`: The original writing prompt text
47
+ - `post_title`: The title of the prompt (often contains [WP] tag)
48
+ - `comment_texts`: List of story responses to the prompt
49
+ - `num_stories`: Number of valid stories for this prompt
50
+
51
+ ## Decontamination Method
52
+
53
+ This dataset was processed using multiple contamination detection methods:
54
+ 1. **Exact matching**: Direct string comparison with LitBench prompts
55
+ 2. **Substring matching**: Detecting if LitBench prompts appear within WritingPrompts
56
+ 3. **Reverse containment**: Checking if WritingPrompts text contains LitBench prompts
57
+
58
+ ## Source Datasets
59
+
60
+ - **Original source**: [euclaise/WritingPrompts_preferences](https://huggingface.co/datasets/euclaise/WritingPrompts_preferences)
61
+ - **Contamination reference**: [SAA-Lab/LitBench-Train](https://huggingface.co/datasets/SAA-Lab/LitBench-Train)
62
+
63
+ ## Usage
64
+
65
+ ```python
66
+ from datasets import load_dataset
67
+
68
+ # Load the dataset
69
+ dataset = load_dataset("RLAIF/WritingPrompts-Filtered")
70
+
71
+ # Access a prompt and its stories
72
+ example = dataset['train'][0]
73
+ prompt_title = example['post_title']
74
+ prompt_text = example['post_text']
75
+ stories = example['comment_texts']
76
+ ```
77
+
78
+ ## Intended Use
79
+
80
+ This dataset is intended for:
81
+ - Training creative writing models
82
+ - Fine-tuning language models for story generation
83
+ - Research on narrative structure and creative writing
84
+ - RLAIF (Reinforcement Learning from AI Feedback) experiments
85
+
86
+ ## Limitations
87
+
88
+ - Stories are from Reddit and may contain informal language
89
+ - Quality varies as these are community-contributed stories
90
+ - Some stories may reference Reddit-specific culture or memes
91
+ - Decontamination focused on LitBench; other test sets not considered
92
+
93
+ ## Processing Code
94
+
95
+ The code used to process this dataset is available at: [synthLabs](https://github.com/RLAIF/synthLabs)
96
+
97
+ ## Citation
98
+
99
+ If you use this dataset, please cite:
100
+
101
+ ```bibtex
102
+ @dataset{writingprompts_filtered_2024,
103
+ title={WritingPrompts Filtered Dataset (LitBench Decontaminated)},
104
+ author={RLAIF Team},
105
+ year={2024},
106
+ publisher={Hugging Face},
107
+ url={https://huggingface.co/datasets/RLAIF/WritingPrompts-Filtered}
108
+ }
109
+ ```
110
+
111
+ ## License
112
+
113
+ This dataset is released under the MIT License. The original Reddit content follows Reddit's terms of service.