Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -163,14 +163,25 @@ Posts in [upvoteweb](https://huggingface.co/datasets/OpenCo7/UpVoteWeb).
|
|
163 |
|
164 |
## configs
|
165 |
|
|
|
|
|
166 |
|
167 |
-
|
168 |
|
169 |
- `default`: largely unfiltered/unprocessed original data
|
170 |
- `eduscored`: the "eduscore" predicted on the `text` column with [huggingface's trained classifier](https://hf.co/HuggingFaceFW/fineweb-edu-classifier)
|
171 |
- `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
|
172 |
- `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
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
## lang details
|
175 |
|
176 |
Some simple counts in `default`:
|
|
|
163 |
|
164 |
## configs
|
165 |
|
166 |
+
> [!IMPORTANT]
|
167 |
+
> There are several configs representing different permutations of this dataset. Load the relevant config for the task you are interested in.
|
168 |
|
169 |
+
Overview of configs:
|
170 |
|
171 |
- `default`: largely unfiltered/unprocessed original data
|
172 |
- `eduscored`: the "eduscore" predicted on the `text` column with [huggingface's trained classifier](https://hf.co/HuggingFaceFW/fineweb-edu-classifier)
|
173 |
- `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
|
174 |
- `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
|
175 |
|
176 |
+
Pass the config name as a second fn arg when loading the dataset to load that config. For example, to load `eduscored`:
|
177 |
+
|
178 |
+
```py
|
179 |
+
from datasets import load_dataset
|
180 |
+
|
181 |
+
ds = load_dataset("BEE-spoke-data/upvoteweb-posts", "eduscored")
|
182 |
+
ds
|
183 |
+
```
|
184 |
+
|
185 |
## lang details
|
186 |
|
187 |
Some simple counts in `default`:
|