akhooli commited on
Commit
9cfad48
·
verified ·
1 Parent(s): 63e41c7

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -0
README.md CHANGED
@@ -43,3 +43,13 @@ Notice that language_score is not an accurate measure. Also, this did not exclud
43
  content (no editing was done to any row and all columns were kept).
44
  The main purpose of this dataset is educational and I hope it helps researchers in designing and developing pre-processing
45
  for the main FineWeb2 dataset (or any other Arabic corpora).
 
 
 
 
 
 
 
 
 
 
 
43
  content (no editing was done to any row and all columns were kept).
44
  The main purpose of this dataset is educational and I hope it helps researchers in designing and developing pre-processing
45
  for the main FineWeb2 dataset (or any other Arabic corpora).
46
+ Example:
47
+ ```python
48
+ from datasets import load_dataset
49
+ from pprint import pprint
50
+ import random
51
+ ds = load_dataset("akhooli/fineweb2_ar_24_sample")
52
+ max_n = len(ds['train'])
53
+ index = random.randint(0,max_n) # random row
54
+ pprint(ds['train'][index]['text']) # article
55
+ ```