Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -194,13 +194,13 @@ from datasets import load_dataset
|
|
194 |
ds = load_dataset("BramVanroy/CommonCrawl-CreativeCommons", "CC-MAIN-2019-30", split="train")
|
195 |
ds = ds.filter(
|
196 |
lambda x: (
|
197 |
-
(not x["license_disagreement"]) and
|
198 |
-
|
199 |
-
"nc" not in x["license_abbr"] and
|
200 |
-
x["license_abbr"] != "cc-unknown" and
|
201 |
-
"wiki" not in x["url"]
|
202 |
),
|
203 |
-
num_proc=
|
204 |
)
|
205 |
```
|
206 |
|
|
|
194 |
ds = load_dataset("BramVanroy/CommonCrawl-CreativeCommons", "CC-MAIN-2019-30", split="train")
|
195 |
ds = ds.filter(
|
196 |
lambda x: (
|
197 |
+
(not x["license_disagreement"]) and # Only use pages with a consistent license
|
198 |
+
x["found_in_fw"] and # Only use pages that are in FineWeb(-2)
|
199 |
+
"nc" not in x["license_abbr"] and # Exclude non-commercial licenses
|
200 |
+
x["license_abbr"] != "cc-unknown" and # Exclude unknown licenses
|
201 |
+
"wiki" not in x["url"] # Exclude Wiki-like pages (best to get those from a more reliable parser)
|
202 |
),
|
203 |
+
num_proc=16
|
204 |
)
|
205 |
```
|
206 |
|