acul3 commited on
Commit
074f30d
·
1 Parent(s): 888d39b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -1
README.md CHANGED
@@ -20,4 +20,35 @@ paperswithcode_id: oscar
20
  KoPI (Korpus Perayapan Indonesia) is Indonesian general corpora for sequence language modelling
21
 
22
  Subset of KoPI corpora:
23
- KoPI-CC + KoPI-CC-NEWS + KoPI-Mc4 + KoPI-Wiki + KoPI-Leipzig + KoPI-Paper
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  KoPI (Korpus Perayapan Indonesia) is Indonesian general corpora for sequence language modelling
21
 
22
  Subset of KoPI corpora:
23
+ KoPI-CC + KoPI-CC-NEWS + KoPI-Mc4 + KoPI-Wiki + KoPI-Leipzig + KoPI-Paper
24
+
25
+ Prerequisite
26
+ - Zstandard
27
+ - you need to install zstandard first ( `pip install zstandard` )
28
+
29
+ Usage
30
+
31
+ ```
32
+ from datasets import load_dataset
33
+
34
+ tiny = load_dataset('acul3/KoPI','tiny') #10 files load only
35
+ #small = load_dataset('acul3/KoPI','small') #30 files load only
36
+ #medium = load_dataset('acul3/KoPI','medium') #55 files load only
37
+ #large = load_dataset('acul3/KoPI','large') #75 files load only
38
+ #full = load_dataset('acul3/KoPI','full') #107 files load only (all files)
39
+ ```
40
+
41
+ output dataset will be like
42
+
43
+ ```
44
+ DatasetDict({
45
+ train: Dataset({
46
+ features: ['text', 'url', 'timestamp', 'meta'],
47
+ num_rows: 2000000
48
+ })
49
+ validation: Dataset({
50
+ features: ['text', 'url', 'timestamp', 'meta'],
51
+ num_rows: 200000
52
+ })
53
+ })
54
+ ```