ly22010 vmfunc commited on
Commit
947c039
·
0 Parent(s):

Duplicate from vmfunc/4chan-pol-extensive

Browse files

Co-authored-by: celeste <vmfunc@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp 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
README.md ADDED
@@ -0,0 +1,223 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ task_categories:
6
+ - text-classification
7
+ - text-generation
8
+ task_ids:
9
+ - multi-class-classification
10
+ - language-modeling
11
+ size_categories:
12
+ - 10K<n<100K
13
+ tags:
14
+ - 4chan
15
+ - internet-culture
16
+ - text-data
17
+ pretty_name: 4chan /pol/ Dataset
18
+ pretty: true
19
+ dataset_info:
20
+ features:
21
+ - name: id
22
+ dtype: int64
23
+ - name: thread_id
24
+ dtype: int64
25
+ - name: board
26
+ dtype: string
27
+ - name: timestamp
28
+ dtype: timestamp[ns]
29
+ - name: title
30
+ dtype: string
31
+ - name: text
32
+ dtype: string
33
+ - name: text_length
34
+ dtype: int64
35
+ - name: filename
36
+ dtype: string
37
+ - name: file_ext
38
+ dtype: string
39
+ - name: file_size
40
+ dtype: int64
41
+ - name: image_width
42
+ dtype: int64
43
+ - name: image_height
44
+ dtype: int64
45
+ - name: is_op
46
+ dtype: bool
47
+ - name: mentions
48
+ sequence: string
49
+ - name: mention_count
50
+ dtype: int64
51
+ - name: replies
52
+ dtype: int64
53
+ - name: images
54
+ dtype: int64
55
+ - name: unique_ips
56
+ dtype: int64
57
+ - name: content_hash
58
+ dtype: string
59
+ - name: archived
60
+ dtype: bool
61
+ - name: semantic_url
62
+ dtype: string
63
+ - name: hour_of_day
64
+ dtype: int32
65
+ - name: day_of_week
66
+ dtype: string
67
+ - name: is_weekend
68
+ dtype: bool
69
+ - name: post_count
70
+ dtype: int64
71
+ - name: total_images
72
+ dtype: int64
73
+ - name: avg_text_length
74
+ dtype: float64
75
+ - name: std_text_length
76
+ dtype: float64
77
+ - name: total_mentions
78
+ dtype: int64
79
+ splits:
80
+ - name: train
81
+ num_bytes: 122600567
82
+ num_examples: 317418
83
+ download_size: 56680481
84
+ dataset_size: 122600567
85
+ configs:
86
+ - config_name: default
87
+ data_files:
88
+ - split: train
89
+ path: data/train-*
90
+ ---
91
+
92
+
93
+
94
+ # 4chan /pol/ dataset
95
+
96
+ This dataset contains data from 12000+ threads from 4chan boards, collected and processed for research purposes. The data includes both active and archived threads, with extensive metadata and derived features for studying online discourse and community dynamics.
97
+ I preserved thread structure, temporal information, and user interaction patterns while maintaining anonymity and excluding sensitive content.
98
+
99
+ ## Dataset Details
100
+
101
+ ### Dataset Description
102
+
103
+ - **Curated by:** [vmfunc](https://x.com/vmfunc)
104
+ - **Language(s):** English
105
+ - **License:** MIT
106
+ - **Size:** [Dataset size]
107
+ - **Number of Records:**
108
+ - Posts: 12435
109
+
110
+ ### Dataset Sources and Creation
111
+
112
+ The dataset was collected using a custom scraper that interacts with 4chan's official API.
113
+ Active threads are collected in real-time. Only publicly available data is collected and no PII is available. This data collection adheres to 4chan's robots.txt and API guidelines.
114
+ The collection process follows these steps:
115
+
116
+ ### Collection Process
117
+ 1. **Active Threads**: First, the scraper fetches the catalog of currently active threads from the board's catalog.json endpoint.
118
+
119
+ 2. **Archive Integration**: The scraper then queries the board's archive.json endpoint to obtain a list of archived thread IDs, ensuring comprehensive coverage of both current and historical content.
120
+
121
+ 3. **Thread Processing**: For each thread (both active and archived):
122
+ - All posts within the thread are collected
123
+ - HTML entities are decoded and tags are stripped while preserving line breaks
124
+ - Mentions (>>post_numbers) are extracted and tracked
125
+ - Post metadata (timestamps, file information, etc.) is preserved
126
+ - Thread-level metrics are calculated (reply count, unique posters, etc.)
127
+ - Temporal features are derived
128
+ - Everything is processed in parallel (ThreadPoolExecutor)
129
+ - MD5 hashing is used to identify and remove duplicate posts
130
+ - All collected data is validated against a predefined schema
131
+
132
+ ## Uses
133
+
134
+ ### Direct Use
135
+
136
+ The dataset is suitable for:
137
+ - Studying online discourse patterns and community dynamics
138
+ - Analyzing temporal patterns in online discussions
139
+ - Research on thread structure and user interaction patterns
140
+ - Natural language processing tasks on informal internet communication
141
+ - Content analysis and topic modeling
142
+ - Network analysis of post references and replies
143
+
144
+ ### Out-of-Scope Use
145
+
146
+ This dataset should not be used for:
147
+ - Identifying or tracking individual users
148
+ - Generating harmful or malicious content
149
+ - Training models for harassment or abuse
150
+ - Analyzing sensitive personal information
151
+
152
+ ## Dataset Structure
153
+
154
+ ### Data Fields
155
+
156
+ #### Post-level Features
157
+ - `id`: Unique post identifier (int64)
158
+ - `thread_id`: Thread identifier (int64)
159
+ - `board`: Board identifier (string)
160
+ - `timestamp`: ISO format timestamp (timestamp[ns])
161
+ - `title`: Thread or post title (string)
162
+ - `text`: Clean post text content (string)
163
+ - `text_length`: Length of the post text (int64)
164
+ - `filename`: Original filename (string)
165
+ - `file_ext`: File extension (string)
166
+ - `file_size`: Size of attached file in bytes (int64)
167
+ - `image_width`: Width of attached image (int64)
168
+ - `image_height`: Height of attached image (int64)
169
+ - `is_op`: Boolean indicating if post is the original post (bool)
170
+ - `mentions`: List of post references (list)
171
+ - `mention_count`: Number of mentions in the post (int64)
172
+ - `replies`: Number of replies (int64)
173
+ - `images`: Number of images (int64)
174
+ - `unique_ips`: Number of unique IPs in thread (int64)
175
+ - `content_hash`: MD5 hash of post content (string)
176
+ - `archived`: Boolean indicating if thread is archived (bool)
177
+ - `semantic_url`: Thread's semantic URL (string)
178
+
179
+ #### Thread-level Features
180
+ - `post_count`: Total posts in thread (int64)
181
+ - `total_images`: Total images in thread (int64)
182
+ - `avg_text_length`: Average text length in thread (float64)
183
+ - `std_text_length`: Standard deviation of text length (float64)
184
+ - `total_mentions`: Total mentions in thread (int64)
185
+
186
+ #### Temporal Features
187
+ - `hour_of_day`: Hour when post was made (int64)
188
+ - `day_of_week`: Day of the week (string)
189
+ - `is_weekend`: Boolean indicating weekend posts (bool)
190
+
191
+ ## Personal and Sensitive Information
192
+
193
+ - All data is from public boards only
194
+ - No IP addresses or unique identifiers included
195
+ - Content hashing used for deduplication
196
+ - No personal information preserved
197
+
198
+ ## Bias, Risks, and Limitations
199
+
200
+ ### Technical Limitations
201
+ - Incomplete thread relationships due to archival
202
+ - Missing posts due to deletion
203
+ - Temporal gaps in archived content
204
+ - File contents not included
205
+
206
+ ### Biases
207
+ - Selection bias from board choice
208
+ - Survivorship bias from archived content
209
+ - Temporal bias from collection period
210
+ - Community-specific language patterns
211
+
212
+ ### Risks
213
+ - Potential for offensive content
214
+ - Risk of harmful pattern learning
215
+ - Bias in language models trained on the data
216
+
217
+ ## Dataset Card Authors
218
+
219
+ [vmfunc](https://x.com/vmfunc)
220
+
221
+ ## Dataset Card Contact
222
+
223
+ [vmfunc](https://x.com/vmfunc)
data/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f908ce3eb3fe2285bd1630e9ff6e005ba75169401c357848ff9b339661a1796
3
+ size 56680481
dataset_info.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "board": "pol",
3
+ "total_posts": 317418,
4
+ "total_threads": 12380,
5
+ "date_range": {
6
+ "start": "2017-05-05T16:07:06",
7
+ "end": "2024-12-30T08:58:26"
8
+ },
9
+ "created_at": "2024-12-30T09:00:22.186705",
10
+ "columns": [
11
+ "id",
12
+ "thread_id",
13
+ "board",
14
+ "timestamp",
15
+ "title",
16
+ "text",
17
+ "text_length",
18
+ "filename",
19
+ "file_ext",
20
+ "file_size",
21
+ "image_width",
22
+ "image_height",
23
+ "is_op",
24
+ "mentions",
25
+ "mention_count",
26
+ "replies",
27
+ "images",
28
+ "unique_ips",
29
+ "content_hash",
30
+ "archived",
31
+ "semantic_url",
32
+ "hour_of_day",
33
+ "day_of_week",
34
+ "is_weekend",
35
+ "post_count",
36
+ "total_images",
37
+ "avg_text_length",
38
+ "std_text_length",
39
+ "total_mentions"
40
+ ],
41
+ "schema": {
42
+ "id": "int64",
43
+ "thread_id": "int64",
44
+ "board": "object",
45
+ "timestamp": "datetime64[ns]",
46
+ "title": "object",
47
+ "text": "object",
48
+ "text_length": "int64",
49
+ "filename": "object",
50
+ "file_ext": "object",
51
+ "file_size": "int64",
52
+ "image_width": "int64",
53
+ "image_height": "int64",
54
+ "is_op": "bool",
55
+ "mentions": "object",
56
+ "mention_count": "int64",
57
+ "replies": "int64",
58
+ "images": "int64",
59
+ "unique_ips": "int64",
60
+ "content_hash": "object",
61
+ "archived": "bool",
62
+ "semantic_url": "object",
63
+ "hour_of_day": "int32",
64
+ "day_of_week": "object",
65
+ "is_weekend": "bool",
66
+ "post_count": "int64",
67
+ "total_images": "int64",
68
+ "avg_text_length": "float64",
69
+ "std_text_length": "float64",
70
+ "total_mentions": "int64"
71
+ },
72
+ "features": {
73
+ "text_stats": {
74
+ "avg_length": 156.553598094626,
75
+ "std_length": 217.67896651945279
76
+ },
77
+ "thread_stats": {
78
+ "avg_posts": 166.0209943985533,
79
+ "avg_images": 41.27425035757266
80
+ }
81
+ }
82
+ }