Descartes commited on
Commit
2eaec07
·
1 Parent(s): 98f19c2

update readme

Browse files
Files changed (1) hide show
  1. README.md +82 -0
README.md CHANGED
@@ -1,3 +1,85 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ task_categories:
4
+ - text-generation
5
+ language:
6
+ - en
7
+ tags:
8
+ - data-juicer
9
+ - pretraining
10
  ---
11
+
12
+ # The Pile -- EuroParl (refined by Data-Juicer)
13
+
14
+ A refined version of EuroParl dataset in The Pile by [Data-Juicer](https://github.com/alibaba/data-juicer). Removing some "bad" samples from the original dataset to make it higher-quality.
15
+
16
+ This dataset is usually used to pretrain a Large Language Model.
17
+
18
+ **Notice**: Here is a small subset for previewing. The whole dataset is available [here](https://dail-wlcb.oss-cn-wulanchabu.aliyuncs.com/LLM_data/our_refined_datasets/pretraining/the-pile-europarl-refine-result.jsonl) (About 2.2GB).
19
+
20
+ ## Dataset Information
21
+
22
+ - Number of samples: 61,601 (Keep ~88.23% from the original dataset)
23
+
24
+ ## Refining Recipe
25
+ ```yaml
26
+ # global parameters
27
+ # global parameters
28
+ project_name: 'Data-Juicer-recipes-EuroParl'
29
+ dataset_path: '/path/to/your/dataset' # path to your dataset directory or file
30
+ export_path: '/path/to/your/dataset.jsonl'
31
+
32
+ np: 50 # number of subprocess to process your dataset
33
+ open_tracer: true
34
+
35
+ # process schedule
36
+ # a list of several process operators with their arguments
37
+ process:
38
+ - clean_email_mapper:
39
+ - clean_links_mapper:
40
+ - fix_unicode_mapper:
41
+ - punctuation_normalization_mapper:
42
+ - whitespace_normalization_mapper:
43
+
44
+ - alphanumeric_filter:
45
+ tokenization: false
46
+ min_ratio: 0.75 # <3sigma (0.779)
47
+ max_ratio: 0.90 # >3sigma(0.878)
48
+ - average_line_length_filter: # for code
49
+ max_len: 588 # 3sigma
50
+ - character_repetition_filter:
51
+ rep_len: 10
52
+ max_ratio: 0.16 # >3sigma (0.114)
53
+ - flagged_words_filter:
54
+ lang: en
55
+ tokenization: true
56
+ max_ratio: 0.0007 # 3sigma
57
+ - language_id_score_filter:
58
+ min_score: 0.7
59
+ - maximum_line_length_filter: # for code
60
+ max_len: 4000 # >3sigma (3104)
61
+ - perplexity_filter:
62
+ lang: en
63
+ max_ppl: 7596 #(3sigma)
64
+ - special_characters_filter:
65
+ max_ratio: 0.3 # > 3sigma (0.243)
66
+ - text_length_filter:
67
+ max_len: 2e5
68
+ - words_num_filter:
69
+ tokenization: true
70
+ min_num: 20
71
+ max_num: 1e5 # 3sigma
72
+ - word_repetition_filter:
73
+ lang: en
74
+ tokenization: true
75
+ rep_len: 10
76
+ max_ratio: 0.2 # > 3sigma (0.185)
77
+
78
+ - document_simhash_deduplicator:
79
+ tokenization: space
80
+ window_size: 6
81
+ lowercase: true
82
+ ignore_pattern: '\p{P}'
83
+ num_blocks: 6
84
+ hamming_distance: 4
85
+ ```