akhooli commited on
Commit
78b94ad
·
verified ·
1 Parent(s): 4711b6d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +17 -0
README.md CHANGED
@@ -35,3 +35,20 @@ configs:
35
  - split: train
36
  path: data/train-*
37
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  - split: train
36
  path: data/train-*
37
  ---
38
+ ## Small Arabic FineWeb2 Sample Dataset
39
+ A small extract (2.3 million rows compared to 58 million in the original:
40
+ FineWeb2 [arb_Arab subset](https://huggingface.co/datasets/HuggingFaceFW/fineweb-2/viewer/arb_Arab)).
41
+ First, I filtered for items with 95% or more Arabic (language_score is not reliable),
42
+ then I randomly sampled the 2.3M from the result.
43
+ See [this post](https://www.linkedin.com/posts/akhooli_a-small-arabic-fineweb2-sample-dataset-activity-7283099806003060736-g5cq)
44
+ Code:
45
+ ```python
46
+ from datasets import load_dataset
47
+ import pandas as pd
48
+ from pprint import pprint
49
+ ds = load_dataset("akhooli/fineweb2_ar_24_sample")
50
+ import random
51
+ max_n = len(ds['train'])
52
+ index = random.randint(0,max_n)
53
+ pprint(ds['train'][index]['text'])
54
+ ```