File size: 5,709 Bytes
dd63d6b
0b2bf98
 
dfe0955
 
 
 
0b2bf98
 
 
cbd1f12
0b2bf98
 
 
af31c5c
 
 
dd63d6b
cbd1f12
dd63d6b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d9d4f63
dd63d6b
d9d4f63
 
b28d861
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ea8016b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eaf3cc0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
997207c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
cbd1f12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
db7111b
cbd1f12
db7111b
 
dd63d6b
 
 
 
 
b28d861
 
 
 
ea8016b
 
 
 
eaf3cc0
 
 
 
997207c
 
 
 
cbd1f12
 
 
 
0b2bf98
 
 
dd63d6b
0b2bf98
 
 
 
 
 
dfe0955
5b6ac8b
dfe0955
f8a48ed
 
dfe0955
f8a48ed
5b6ac8b
 
 
 
 
 
f8a48ed
 
 
 
 
 
 
 
 
dfe0955
 
5b6ac8b
dfe0955
 
 
 
 
 
 
 
 
 
 
 
 
 
 
af31c5c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
---
language:
- en
- pt
- de
- fr
- es
license: odc-by
size_categories:
- 10M<n<100M
source_datasets: OpenCo7/UpVoteWeb
task_categories:
- text-generation
- feature-extraction
- image-to-text
- text-to-image
- fill-mask
dataset_info:
- config_name: default
  features:
  - name: post_id
    dtype: string
  - name: text
    dtype: string
  - name: url
    dtype: string
  - name: date
    dtype: string
  - name: author
    dtype: string
  - name: subreddit
    dtype: string
  - name: score
    dtype: int64
  - name: token_count
    dtype: int64
  - name: language
    dtype: string
  - name: language_score
    dtype: float64
  - name: media_urls
    dtype: string
  splits:
  - name: train
    num_bytes: 9259550876
    num_examples: 16056485
  download_size: 5885641617
  dataset_size: 9259550876
- config_name: eduscore-1
  features:
  - name: post_id
    dtype: string
  - name: text
    dtype: string
  - name: url
    dtype: string
  - name: date
    dtype: string
  - name: author
    dtype: string
  - name: subreddit
    dtype: string
  - name: eduscore
    dtype: float64
  - name: token_count
    dtype: int64
  - name: language
    dtype: string
  - name: language_score
    dtype: float64
  - name: media_urls
    dtype: string
  - name: eduscore_int
    dtype: int64
  splits:
  - name: train
    num_bytes: 1106382730.0
    num_examples: 661861
  download_size: 702006131
  dataset_size: 1106382730.0
- config_name: eduscore-2
  features:
  - name: post_id
    dtype: string
  - name: text
    dtype: string
  - name: url
    dtype: string
  - name: date
    dtype: string
  - name: author
    dtype: string
  - name: subreddit
    dtype: string
  - name: eduscore
    dtype: float64
  - name: token_count
    dtype: int64
  - name: language
    dtype: string
  - name: language_score
    dtype: float64
  - name: media_urls
    dtype: string
  - name: eduscore_int
    dtype: int64
  splits:
  - name: train
    num_bytes: 33822539.0
    num_examples: 17332
  download_size: 20729551
  dataset_size: 33822539.0
- config_name: eduscored
  features:
  - name: post_id
    dtype: string
  - name: text
    dtype: string
  - name: url
    dtype: string
  - name: date
    dtype: string
  - name: author
    dtype: string
  - name: subreddit
    dtype: string
  - name: eduscore
    dtype: float64
  - name: token_count
    dtype: int64
  - name: language
    dtype: string
  - name: language_score
    dtype: float64
  - name: media_urls
    dtype: string
  - name: eduscore_int
    dtype: int64
  splits:
  - name: train
    num_bytes: 9388002756
    num_examples: 16056485
  download_size: 5937232561
  dataset_size: 9388002756
- config_name: en-clean
  features:
  - name: post_id
    dtype: string
  - name: text
    dtype: string
  - name: url
    dtype: string
  - name: date
    dtype: string
  - name: author
    dtype: string
  - name: subreddit
    dtype: string
  - name: score
    dtype: int64
  - name: token_count
    dtype: int64
  - name: language
    dtype: string
  - name: language_score
    dtype: float64
  - name: media_urls
    dtype: string
  splits:
  - name: train
    num_bytes: 7830835057
    num_examples: 13019754
  download_size: 4956674820
  dataset_size: 7830835057
- config_name: image-dataset-sample
  features:
  - name: post_id
    dtype: string
  - name: text
    dtype: string
  - name: date
    dtype: string
  - name: author
    dtype: string
  - name: subreddit
    dtype: string
  - name: score
    dtype: int64
  - name: token_count
    dtype: int64
  - name: language
    dtype: string
  - name: language_score
    dtype: float64
  - name: image
    dtype: image
  splits:
  - name: train
    num_bytes: 97242067379.125
    num_examples: 122087
  download_size: 96955619502
  dataset_size: 97242067379.125
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
- config_name: eduscore-1
  data_files:
  - split: train
    path: eduscore-1/train-*
- config_name: eduscore-2
  data_files:
  - split: train
    path: eduscore-2/train-*
- config_name: eduscored
  data_files:
  - split: train
    path: eduscored/train-*
- config_name: en-clean
  data_files:
  - split: train
    path: en-clean/train-*
- config_name: image-dataset-sample
  data_files:
  - split: train
    path: image-dataset-sample/train-*
tags:
- reddit
- upvoteweb
---


# upvoteweb: posts


Posts in [upvoteweb](https://huggingface.co/datasets/OpenCo7/UpVoteWeb).

## configs

> [!IMPORTANT]  
> There are several configs representing different permutations of this dataset. Load the relevant config for the task you are interested in.

Overview of configs:

- `default`: largely unfiltered/unprocessed original data
- `eduscored`: the "eduscore" predicted on the `text` column with [huggingface's trained classifier](https://hf.co/HuggingFaceFW/fineweb-edu-classifier)
- `en-clean`: filter `language` for `en` and `language_score` for > `0.6`. Run [clean-text](https://pypi.org/project/clean-text/) on the `text` col, preserving casing
- `image-dataset-sample`: filter for posts with `score` > 2000, at least one URL that points to an image. Load the first image URL into a new `image` col, and resize it to have a max dim of 2048

Pass the config name as a second fn arg when loading the dataset to load that config. For example, to load `eduscored`:

```py
from datasets import load_dataset

ds = load_dataset("BEE-spoke-data/upvoteweb-posts", "eduscored")
ds
```

## lang details

Some simple counts in `default`:

```
language
en     14745361
de       271905
es       176108
pt       138175
fr       126898
         ...   
kv            2
tyv           1
myv           1
hif           1
lez           1
Name: count, Length: 171, dtype: int64
```