BramVanroy commited on
Commit
49dccc7
·
verified ·
1 Parent(s): 6ccbe48

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -6
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 # Only use pages with a consistent license
198
- (x["found_in_fw2"] or x["language"] == "eng") and # Only use pages that are in FineWeb-2 (non-English) or English
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=96
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