alimosavian commited on
Commit
4519acd
1 Parent(s): 7b93f3d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +118 -0
README.md CHANGED
@@ -70,3 +70,121 @@ size_categories:
70
  source_datasets:
71
  - uonlp/CulturaX
72
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  source_datasets:
71
  - uonlp/CulturaX
72
  ---
73
+
74
+
75
+
76
+
77
+ <div align="center">
78
+ <h1> CulturaX </h1>
79
+ <h3> Cleaned, Enormous, and Public: The Multilingual Fuel to Democratize Large Language Models for 167 Languages </h3>
80
+ </div>
81
+
82
+
83
+
84
+
85
+ ## Dataset Description
86
+
87
+ This is a subset of the CulturaX dataset, retaining just the germanic (excluding english), finnish and estonian.
88
+
89
+
90
+ - **Repository:** [https://github.com/nlp-uoregon/CulturaX](https://github.com/nlp-uoregon/CulturaX)
91
+ - **Papers:** [CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languages](https://arxiv.org/abs/2309.09400)
92
+
93
+
94
+ ## Dataset Summary
95
+
96
+ We present CulturaX, a substantial multilingual dataset with 6.3 trillion tokens in 167 languages, tailored for large language model (LLM) development. Our dataset undergoes meticulous cleaning and deduplication through a rigorous pipeline of multiple stages to accomplish the best quality for model training, including language identification, URL-based filtering, metric-based cleaning, document refinement, and data deduplication. We employ MinHash at document level to achieve fuzzy deduplication for the datasets in different languages. Our data cleaning framework includes diverse criteria and threshold selections, guided by extensive data samples, ensuring comprehensive noise filtering in various aspects. CulturaX is fully released to the public in HuggingFace to facilitate research and advancements in multilingual LLMs.
97
+
98
+ Our dataset combines the most recent iteration of mC4 (version 3.1.0) [1] with all accessible OSCAR corpora up to the present year, including 20.19, 21.09, 22.01, and 23.01 [2]. After deep cleaning and deduplication, CulturaX involves 16TB data in the parquet format (expanding to 27TB when unpacked). More than a half of our dataset is dedicated to non-English languages to significantly boost the data size and enhance the feasibility of training models in multilingual scenarios.
99
+
100
+ To obtain perplexity scores for data cleaning, we train a SentencePiece tokenizer and 5-gram Kneser-Ney language models as provided in the KenLM library [3] using the 20230501 dumps of Wikipedia. Our KenLM models are also released in HuggingFace: https://huggingface.co/uonlp/kenlm.
101
+
102
+ Details for the dataset can be found in our technical paper: [https://arxiv.org/abs/2309.09400](https://arxiv.org/abs/2309.09400)
103
+
104
+
105
+ You can download the dataset using Hugging Face datasets:
106
+
107
+ *You may need to follow these instructions to setup authentication before downloading the dataset: [https://huggingface.co/docs/huggingface_hub/quick-start#login](https://huggingface.co/docs/huggingface_hub/quick-start#login)*
108
+
109
+ ```python
110
+ from datasets import load_dataset
111
+ ds = load_dataset("uonlp/CulturaX",
112
+ "en",
113
+ use_auth_token=True)
114
+ ```
115
+
116
+
117
+ ### Languages
118
+
119
+ The supported languages and statistics for our dataset can be found below:
120
+
121
+ *(Note that the language code `als` and `eml` refer to `gsw` and `x-eml` in the OSCAR-2301 dataset.)*
122
+
123
+
124
+
125
+ | | Code | Language | # Documents | # Tokens | # Tokens (%) |
126
+ |----:|:-------|:-------------------------|:----------------|:--------------------|:------|
127
+ | 3 | deu | German | 420,017,484 | 357,030,348,021 | 64.10 |
128
+ | 10 | nld | Dutch | 117,392,666 | 80,032,209,900 | 14.37 |
129
+ | 19 | swe | Swedish | 49,709,189 | 38,486,181,494 | 6.91 |
130
+ | 21 | fin | Finnish | 30,467,667 | 28,925,009,180 | 5.19 |
131
+ | 23 | dan | Danish | 25,429,808 | 22,921,651,314 | 4.12 |
132
+ | 25 | nor | Norwegian | 18,907,310 | 18,426,628,868 | 3.31 |
133
+ | 33 | est | Estonian | 8,004,753 | 8,805,656,165 | 1.58 |
134
+ | 45 | isl | Icelandic | 2,373,560 | 2,350,592,857 | 0.42 |
135
+
136
+
137
+
138
+ ### Dataset Structure
139
+
140
+ ```json
141
+ {
142
+ "text": ...,
143
+ "timestamp": ...,
144
+ "url": ...,
145
+ "source": "mc4" | "OSCAR-xxxx",
146
+ }
147
+ ```
148
+
149
+
150
+
151
+ ## Considerations for Using the Data
152
+
153
+ As CulturaX is the cleaned version of the mC4 and OSCAR datasets, which were both extracted from CommonCrawl, personal and sensitive information might still contain personal and sensitive information.
154
+ This must be considered prior to using this dataset for any purpose, such as training deep learning models, etc.
155
+
156
+
157
+ ## License Information
158
+
159
+ The licence terms for CulturaX strictly follows those of `mC4` and `OSCAR`. Please refer to both below licenses when using this dataset.
160
+
161
+ - [mC4 license](https://huggingface.co/datasets/allenai/c4#license)
162
+ - [OSCAR license](https://huggingface.co/datasets/oscar-corpus/OSCAR-2301#licensing-information)
163
+
164
+
165
+ ## Citation
166
+
167
+ To cite CulturaX, please use:
168
+
169
+ ```
170
+ @misc{nguyen2023culturax,
171
+ title={CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languages},
172
+ author={Thuat Nguyen and Chien Van Nguyen and Viet Dac Lai and Hieu Man and Nghia Trung Ngo and Franck Dernoncourt and Ryan A. Rossi and Thien Huu Nguyen},
173
+ year={2023},
174
+ eprint={2309.09400},
175
+ archivePrefix={arXiv},
176
+ primaryClass={cs.CL}
177
+ }
178
+ ```
179
+
180
+
181
+ ## Reference
182
+
183
+ [1] Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, and Colin Raffel. 2021. mT5: A massively multilingual
184
+ pre-trained text-to-text transformer. In NAACL 2021. https://huggingface.co/datasets/mc4
185
+
186
+ [2] Pedro Javier Ortiz Suárez, Benoît Sagot, and Laurent Romary. 2019. Asynchronous pipelines for processing huge corpora on medium to low resource infrastructures. In Proceedings of the Workshop on Challenges in the Management of Large Corpora (CMLC-
187
+ 7) 2019. https://oscar-project.org/
188
+
189
+ [3] KenLM: Faster and smaller language model queries. In Proceedings of the Sixth
190
+ Workshop on Statistical Machine Translation, 2011.