Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- README.md +129 -0
- reddit_threads_constructive.jsonl +3 -0
.gitattributes
CHANGED
|
@@ -57,3 +57,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
reddit_threads_constructive.jsonl filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
size_categories:
|
| 5 |
+
- 100K<n<1M
|
| 6 |
+
task_categories:
|
| 7 |
+
- text-generation
|
| 8 |
+
- conversational
|
| 9 |
+
- text-classification
|
| 10 |
+
task_ids:
|
| 11 |
+
- dialogue-generation
|
| 12 |
+
- conversational-response-selection
|
| 13 |
+
pretty_name: Reddit Constructive Conversations
|
| 14 |
+
dataset_info:
|
| 15 |
+
features:
|
| 16 |
+
- name: sdid
|
| 17 |
+
dtype: string
|
| 18 |
+
- name: text
|
| 19 |
+
dtype: string
|
| 20 |
+
config_name: default
|
| 21 |
+
download_size: 864000000
|
| 22 |
+
dataset_size: 864000000
|
| 23 |
+
tags:
|
| 24 |
+
- reddit
|
| 25 |
+
- constructive-dialogue
|
| 26 |
+
- conversations
|
| 27 |
+
- social-media
|
| 28 |
+
- discourse-analysis
|
| 29 |
+
- high-quality
|
| 30 |
+
- curated
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
+
# Reddit Constructive Conversations
|
| 34 |
+
|
| 35 |
+
A curated collection of **802,066 constructive conversations** from Reddit. This dataset contains only the constructive discussions filtered from a larger corpus.
|
| 36 |
+
|
| 37 |
+
## Dataset Description
|
| 38 |
+
|
| 39 |
+
This dataset contains Reddit conversations that have been identified as constructive through automated classification. Each sample represents a multi-author discussion thread that demonstrates positive discourse patterns like respectful disagreement, information sharing, collaborative problem-solving, and constructive engagement.
|
| 40 |
+
|
| 41 |
+
### Key Features
|
| 42 |
+
|
| 43 |
+
- **High Quality**: Only constructive conversations (filtered from 1.4M samples)
|
| 44 |
+
- **Substantial Scale**: 802,066 conversation examples
|
| 45 |
+
- **Efficient Format**: Clean JSON with just essential fields
|
| 46 |
+
- **Multi-Domain**: Reddit discussions across diverse topics
|
| 47 |
+
- **Research Ready**: Perfect for studying positive online discourse
|
| 48 |
+
- **Training Ready**: Ideal for training dialogue systems and conversation models
|
| 49 |
+
|
| 50 |
+
## Dataset Structure
|
| 51 |
+
|
| 52 |
+
### Data Fields
|
| 53 |
+
|
| 54 |
+
- **`sdid`** (string): Unique sample identifier for the Reddit discussion
|
| 55 |
+
- **`text`** (string): Multi-author conversation text with anonymized author markers (`[author0]`, `[author1]`, etc.)
|
| 56 |
+
|
| 57 |
+
### Data Format
|
| 58 |
+
|
| 59 |
+
```json
|
| 60 |
+
{
|
| 61 |
+
"sdid": "fp43zz2",
|
| 62 |
+
"text": "[author0] This is a great discussion starter. [author1] I agree, and here's some additional context that might be helpful..."
|
| 63 |
+
}
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
## Usage
|
| 67 |
+
|
| 68 |
+
### Loading the Dataset
|
| 69 |
+
|
| 70 |
+
```python
|
| 71 |
+
from datasets import load_dataset
|
| 72 |
+
import json
|
| 73 |
+
|
| 74 |
+
# Option 1: Using Hugging Face datasets
|
| 75 |
+
dataset = load_dataset("NiklasKoch/reddit-constructive")
|
| 76 |
+
|
| 77 |
+
# Option 2: Load directly from JSONL
|
| 78 |
+
conversations = []
|
| 79 |
+
with open('reddit_threads_constructive.jsonl', 'r', encoding='utf-8') as f:
|
| 80 |
+
for line in f:
|
| 81 |
+
conversations.append(json.loads(line))
|
| 82 |
+
|
| 83 |
+
print(f"Loaded {len(conversations)} constructive conversations")
|
| 84 |
+
print(f"First example: {conversations[0]}")
|
| 85 |
+
```
|
| 86 |
+
|
| 87 |
+
## Limitations and Considerations
|
| 88 |
+
|
| 89 |
+
### Data Limitations
|
| 90 |
+
- **Platform-Specific**: Reflects Reddit's culture and user demographics
|
| 91 |
+
- **Time-Bound**: Conversations from May 2020
|
| 92 |
+
- **English Only**: No multilingual coverage
|
| 93 |
+
- **Automated Selection**: Based on model predictions, not human annotation
|
| 94 |
+
- **Context Removal**: Individual threads extracted from broader discussions
|
| 95 |
+
|
| 96 |
+
### Bias Considerations
|
| 97 |
+
- **Platform Bias**: Reddit users may not represent general population
|
| 98 |
+
- **Topic Bias**: Some subjects may be over/under-represented
|
| 99 |
+
- **Model Bias**: Selection reflects training model's understanding of "constructive"
|
| 100 |
+
|
| 101 |
+
## Ethical Considerations
|
| 102 |
+
|
| 103 |
+
### Responsible Use
|
| 104 |
+
- Dataset intended for research and educational purposes
|
| 105 |
+
- Users should consider platform-specific biases
|
| 106 |
+
- Human oversight recommended for production applications
|
| 107 |
+
|
| 108 |
+
## Dataset Creation
|
| 109 |
+
|
| 110 |
+
This dataset was created by:
|
| 111 |
+
1. Starting with 1.4M Reddit conversations from the **Pushshift Reddit dataset** (https://archive.org/download/pushshift_reddit_200506_to_202212/)
|
| 112 |
+
2. Using a trained classification model (https://huggingface.co/NiklasKoch/qwen-discussion-classifier) to identify constructive discussions
|
| 113 |
+
3. Filtering for high-confidence constructive predictions (prediction = 1.0)
|
| 114 |
+
4. Retaining only essential fields (`sdid`, `text`) for clean format
|
| 115 |
+
5. Anonymizing all usernames with generic author markers
|
| 116 |
+
6. Quality validation and sample verification
|
| 117 |
+
|
| 118 |
+
**Source Data**: Public Reddit discussions collected by Pushshift (May 2020)
|
| 119 |
+
**Model Source**: https://github.com/Niklas257/Reddit-Constructiveness-Classification.git
|
| 120 |
+
**Processing**: Automated classification and quality filtering
|
| 121 |
+
**Result**: 802,066 high-quality constructive conversations (56.3% of original dataset)
|
| 122 |
+
|
| 123 |
+
## Dataset Card Authors
|
| 124 |
+
|
| 125 |
+
Niklas Koch, Georg August University of Göttingen
|
| 126 |
+
|
| 127 |
+
## Dataset Card Contact
|
| 128 |
+
|
| 129 |
reddit_threads_constructive.jsonl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24231d7d4721d796f8a9cc6f4e8e3f22c2596ea848cabb77e65c8445fb18033a
|
| 3 |
+
size 905602683
|