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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
+
annotations_creators:
|
3 |
+
- no-annotation
|
4 |
+
language_creators:
|
5 |
+
- found
|
6 |
+
language:
|
7 |
+
- af
|
8 |
+
- am
|
9 |
+
- ar
|
10 |
+
- arz
|
11 |
+
- as
|
12 |
+
- az
|
13 |
+
- azb
|
14 |
+
- ba
|
15 |
+
- be
|
16 |
+
- bg
|
17 |
+
- bn
|
18 |
+
- bo
|
19 |
+
- br
|
20 |
+
- ca
|
21 |
+
- ce
|
22 |
+
- ceb
|
23 |
+
- ckb
|
24 |
+
- cs
|
25 |
+
- cv
|
26 |
+
- cy
|
27 |
+
- da
|
28 |
+
- de
|
29 |
+
- dv
|
30 |
+
- el
|
31 |
+
- en
|
32 |
+
- eo
|
33 |
+
- es
|
34 |
+
- et
|
35 |
+
- eu
|
36 |
+
- fa
|
37 |
+
- fi
|
38 |
+
- fr
|
39 |
+
- fy
|
40 |
+
- ga
|
41 |
+
- gl
|
42 |
+
- gu
|
43 |
+
- he
|
44 |
+
- hi
|
45 |
+
- hr
|
46 |
+
- hu
|
47 |
+
- hy
|
48 |
+
- id
|
49 |
+
- is
|
50 |
+
- it
|
51 |
+
- ja
|
52 |
+
- ka
|
53 |
+
- kk
|
54 |
+
- km
|
55 |
+
- kn
|
56 |
+
- ko
|
57 |
+
- ku
|
58 |
+
- ky
|
59 |
+
- la
|
60 |
+
- lb
|
61 |
+
- lo
|
62 |
+
- lt
|
63 |
+
- lv
|
64 |
+
- mg
|
65 |
+
- mhr
|
66 |
+
- mk
|
67 |
+
- ml
|
68 |
+
- mn
|
69 |
+
- mr
|
70 |
+
- ms
|
71 |
+
- mt
|
72 |
+
- my
|
73 |
+
- nds
|
74 |
+
- ne
|
75 |
+
- nl
|
76 |
+
- nn
|
77 |
+
- 'no'
|
78 |
+
- or
|
79 |
+
- os
|
80 |
+
- pa
|
81 |
+
- pl
|
82 |
+
- pnb
|
83 |
+
- ps
|
84 |
+
- pt
|
85 |
+
- ro
|
86 |
+
- ru
|
87 |
+
- sa
|
88 |
+
- sah
|
89 |
+
- sd
|
90 |
+
- sh
|
91 |
+
- si
|
92 |
+
- sk
|
93 |
+
- sl
|
94 |
+
- sq
|
95 |
+
- sr
|
96 |
+
- sv
|
97 |
+
- sw
|
98 |
+
- ta
|
99 |
+
- te
|
100 |
+
- tg
|
101 |
+
- th
|
102 |
+
- tk
|
103 |
+
- tl
|
104 |
+
- tr
|
105 |
+
- tt
|
106 |
+
- ug
|
107 |
+
- uk
|
108 |
+
- ur
|
109 |
+
- uz
|
110 |
+
- vi
|
111 |
+
- yi
|
112 |
+
- zh
|
113 |
+
license:
|
114 |
+
- cc0-1.0
|
115 |
+
multilinguality:
|
116 |
+
- multilingual
|
117 |
+
source_datasets:
|
118 |
+
- oscar
|
119 |
+
task_categories:
|
120 |
+
- text-generation
|
121 |
+
task_ids:
|
122 |
+
- language-modeling
|
123 |
+
paperswithcode_id: oscar
|
124 |
+
pretty_name: OSCAR
|
125 |
---
|
126 |
+
|
127 |
+
## WARNING: this dataset is an extract of the OSCAR dataset published here to simulate the use of the full dataset in low-resource contexts.
|
128 |
+
Using this dataset is equivalent to using a processed version of OSCAR legally speaking. I take no credit for the gathering of the original data and hence refer entirely to the original dataset in the card below.
|
129 |
+
|
130 |
+
# Dataset Card for "oscar"
|
131 |
+
|
132 |
+
## Table of Contents
|
133 |
+
- [Dataset Description](#dataset-description)
|
134 |
+
- [Dataset Summary](#dataset-summary)
|
135 |
+
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
136 |
+
- [Languages](#languages)
|
137 |
+
- [Dataset Structure](#dataset-structure)
|
138 |
+
- [Data Instances](#data-instances)
|
139 |
+
- [Data Fields](#data-fields)
|
140 |
+
- [Data Splits](#data-splits)
|
141 |
+
- [Dataset Creation](#dataset-creation)
|
142 |
+
- [Curation Rationale](#curation-rationale)
|
143 |
+
- [Source Data](#source-data)
|
144 |
+
- [Annotations](#annotations)
|
145 |
+
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
146 |
+
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
147 |
+
- [Social Impact of Dataset](#social-impact-of-dataset)
|
148 |
+
- [Discussion of Biases](#discussion-of-biases)
|
149 |
+
- [Other Known Limitations](#other-known-limitations)
|
150 |
+
- [Additional Information](#additional-information)
|
151 |
+
- [Dataset Curators](#dataset-curators)
|
152 |
+
- [Licensing Information](#licensing-information)
|
153 |
+
- [Citation Information](#citation-information)
|
154 |
+
- [Contributions](#contributions)
|
155 |
+
|
156 |
+
## Dataset Description
|
157 |
+
|
158 |
+
- **Homepage:** [https://oscar-corpus.com](https://oscar-corpus.com)
|
159 |
+
- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
160 |
+
- **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
161 |
+
- **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
|
162 |
+
|
163 |
+
### Dataset Summary
|
164 |
+
|
165 |
+
OSCAR or **O**pen **S**uper-large **C**rawled [**A**LMAnaCH](https://team.inria.fr/almanach/) co**R**pus is a huge multilingual corpus obtained by language classification and filtering of the [Common Crawl](https://commoncrawl.org/) corpus using the [goclassy](https://github.com/pjox/goclassy) architecture. Data is distributed by language in both original and deduplicated form.
|
166 |
+
|
167 |
+
### Supported Tasks and Leaderboards
|
168 |
+
|
169 |
+
OSCAR is mainly inteded to pretrain language models and word represantations.
|
170 |
+
|
171 |
+
### Languages
|
172 |
+
|
173 |
+
All the data is distributed by language, both the original and the deduplicated versions of the data are available. 166 different languages are available. The table in subsection [Data Splits Sample Size](#data-splits-sample-size) provides the language code for each subcorpus as well as the number of words (space separated tokens), lines and sizes for both the original and the deduplicated versions of OSCAR.
|
174 |
+
|
175 |
+
## Dataset Structure
|
176 |
+
|
177 |
+
We show detailed information for all the configurations of the dataset.
|
178 |
+
|
179 |
+
## Dataset Creation
|
180 |
+
|
181 |
+
### Curation Rationale
|
182 |
+
|
183 |
+
OSCAR was constructed new pipeline derived from the [fastText's one](https://github.com/facebookresearch/fastText), called [_goclassy_](https://github.com/pjox/goclassy). Goclassy reuses the [fastText linear classifier](https://fasttext.cc) and the pre-trained fastText model for language recognition, but it completely rewrites and parallelises their pipeline in an asynchronous manner.
|
184 |
+
|
185 |
+
The order of operations is more or less the same as in the fastText pre-processing pipeline but instead of clustering multiple operations into a single blocking process, a worker is launched for each operation but bounding the number of possible parallel operations at a given time by the number of available threads instead of the number of CPUs. Goclassy is implemented in the [Go programming language](https://golang.org/) so it lets the [Go runtime](https://golang.org/src/runtime/mprof.go) handle the scheduling of the processes. Thus the goclassy's pipeline one does not have to wait for a whole WET file to download, decompress and classify in order to start downloading and processing the next one, a new file will start downloading and processing as soon as the scheduler is able to allocate a new process.
|
186 |
+
|
187 |
+
Filtering and cleaning processes at line level are done before feeding each line to the classifier. Lines shorter than 100 UTF-8 characters and lines containing invalid UTF-8 characters are discarted and are not classified. After all files are proccesed the deduplicated versions are constructed and everything is then splitted in shards and compressed.
|
188 |
+
|
189 |
+
### Source Data
|
190 |
+
|
191 |
+
#### Initial Data Collection and Normalization
|
192 |
+
|
193 |
+
[Common Crawl](https://commoncrawl.org/) is a non-profit foundation which produces and maintains an open repository of web crawled data that is both accessible and analysable. Common Crawl's complete web archive consists of petabytes of data collected over 8 years of web crawling. The repository contains raw web page HTML data (WARC files), metdata extracts (WAT files) and plain text extracts (WET files). The organisation's crawlers has always respected [nofollow](http://microformats.org/wiki/rel-nofollow) and [robots.txt](https://www.robotstxt.org/) policies.
|
194 |
+
|
195 |
+
Each monthly Common Crawl snapshot is in itself a massive multilingual corpus, where every single file contains data coming from multiple web pages written in a large variety of languages and covering all possible types of topics.
|
196 |
+
|
197 |
+
To construct OSCAR the WET files of Common Crawl were used. These contain the extracted plain texts from the websites mostly converted to UTF-8, as well as headers containing the metatada of each crawled document. Each WET file comes compressed in gzip format and is stored on Amazon Web Services. In the case of OSCAR, the **November 2018** snapshot was used. It surpasses 20TB of uncompressed data and contains more than 50 thousand plain text files where each file consists of the plain text from multiple websites along its metadata header.
|
198 |
+
|
199 |
+
#### Who are the source language producers?
|
200 |
+
|
201 |
+
The data comes from multiple web pages in a large variety of languages.
|
202 |
+
|
203 |
+
### Annotations
|
204 |
+
|
205 |
+
The dataset does not contain any additional annotations.
|
206 |
+
|
207 |
+
#### Annotation process
|
208 |
+
|
209 |
+
N/A
|
210 |
+
|
211 |
+
#### Who are the annotators?
|
212 |
+
|
213 |
+
N/A
|
214 |
+
|
215 |
+
### Personal and Sensitive Information
|
216 |
+
|
217 |
+
Being constructed from Common Crawl, Personal and sensitive information might be present. This **must** be considered before training deep learning models with OSCAR, specially in the case of text-generation models.
|
218 |
+
|
219 |
+
## Considerations for Using the Data
|
220 |
+
|
221 |
+
### Social Impact of Dataset
|
222 |
+
|
223 |
+
OSCAR is intended to bring more data to a wide variety of lanuages, the aim of the corpus is to make large amounts of data available to lower resource languages in order to facilitate the pre-training of state-of-the-art language modeling architectures.
|
224 |
+
|
225 |
+
### Discussion of Biases
|
226 |
+
|
227 |
+
OSCAR is not properly filtered yet and this can be reflected on the models trained with it. Care is advised specially concerning biases of the resulting models.
|
228 |
+
|
229 |
+
### Other Known Limitations
|
230 |
+
|
231 |
+
The [fastText linear classifier](https://fasttext.cc) is limed both in performance and the variety of languages it can recognize, so the quality of some OSCAR sub-corpora might be lower than expected, specially for the lowest-resource langiuages. Some audits have already been done by [third parties](https://arxiv.org/abs/2010.14571).
|
232 |
+
|
233 |
+
## Additional Information
|
234 |
+
|
235 |
+
### Dataset Curators
|
236 |
+
|
237 |
+
The corpus was put together by [Pedro J. Ortiz](https://pjortiz.eu/), [Benoît Sagot](http://pauillac.inria.fr/~sagot/), and [Laurent Romary](https://cv.archives-ouvertes.fr/laurentromary), during work done at [Inria](https://www.inria.fr/en), particularly at the [ALMAnaCH team](https://team.inria.fr/almanach/).
|
238 |
+
|
239 |
+
### Licensing Information
|
240 |
+
|
241 |
+
These data are released under this licensing scheme
|
242 |
+
We do not own any of the text from which these data has been extracted.
|
243 |
+
We license the actual packaging of these data under the Creative Commons CC0 license ("no rights reserved") http://creativecommons.org/publicdomain/zero/1.0/
|
244 |
+
To the extent possible under law, Inria has waived all copyright and related or neighboring rights to OSCAR
|
245 |
+
This work is published from: France.
|
246 |
+
|
247 |
+
Should you consider that our data contains material that is owned by you and should therefore not be reproduced here, please:
|
248 |
+
* Clearly identify yourself, with detailed contact data such as an address, telephone number or email address at which you can be contacted.
|
249 |
+
* Clearly identify the copyrighted work claimed to be infringed.
|
250 |
+
* Clearly identify the material that is claimed to be infringing and information reasonably sufficient to allow us to locate the material.
|
251 |
+
|
252 |
+
We will comply to legitimate requests by removing the affected sources from the next release of the corpus.
|
253 |
+
|
254 |
+
### Citation Information
|
255 |
+
|
256 |
+
```
|
257 |
+
@inproceedings{ortiz-suarez-etal-2020-monolingual,
|
258 |
+
title = "A Monolingual Approach to Contextualized Word Embeddings for Mid-Resource Languages",
|
259 |
+
author = "Ortiz Su{'a}rez, Pedro Javier and
|
260 |
+
Romary, Laurent and
|
261 |
+
Sagot, Benoit",
|
262 |
+
booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
|
263 |
+
month = jul,
|
264 |
+
year = "2020",
|
265 |
+
address = "Online",
|
266 |
+
publisher = "Association for Computational Linguistics",
|
267 |
+
url = "https://www.aclweb.org/anthology/2020.acl-main.156",
|
268 |
+
pages = "1703--1714",
|
269 |
+
abstract = "We use the multilingual OSCAR corpus, extracted from Common Crawl via language classification, filtering and cleaning, to train monolingual contextualized word embeddings (ELMo) for five mid-resource languages. We then compare the performance of OSCAR-based and Wikipedia-based ELMo embeddings for these languages on the part-of-speech tagging and parsing tasks. We show that, despite the noise in the Common-Crawl-based OSCAR data, embeddings trained on OSCAR perform much better than monolingual embeddings trained on Wikipedia. They actually equal or improve the current state of the art in tagging and parsing for all five languages. In particular, they also improve over multilingual Wikipedia-based contextual embeddings (multilingual BERT), which almost always constitutes the previous state of the art, thereby showing that the benefit of a larger, more diverse corpus surpasses the cross-lingual benefit of multilingual embedding architectures.",
|
270 |
+
}
|
271 |
+
|
272 |
+
@inproceedings{OrtizSuarezSagotRomary2019,
|
273 |
+
author = {Pedro Javier {Ortiz Su{'a}rez} and Benoit Sagot and Laurent Romary},
|
274 |
+
title = {Asynchronous pipelines for processing huge corpora on medium to low resource infrastructures},
|
275 |
+
series = {Proceedings of the Workshop on Challenges in the Management of Large Corpora (CMLC-7) 2019. Cardiff, 22nd July 2019},
|
276 |
+
editor = {Piotr Bański and Adrien Barbaresi and Hanno Biber and Evelyn Breiteneder and Simon Clematide and Marc Kupietz and Harald L{"u}ngen and Caroline Iliadi},
|
277 |
+
publisher = {Leibniz-Institut f{"u}r Deutsche Sprache},
|
278 |
+
address = {Mannheim},
|
279 |
+
doi = {10.14618/ids-pub-9021},
|
280 |
+
url = {http://nbn-resolving.de/urn:nbn:de:bsz:mh39-90215},
|
281 |
+
pages = {9 -- 16},
|
282 |
+
year = {2019},
|
283 |
+
abstract = {Common Crawl is a considerably large, heterogeneous multilingual corpus comprised of crawled documents from the internet, surpassing 20TB of data and distributed as a set of more than 50 thousand plain text files where each contains many documents written in a wide variety of languages. Even though each document has a metadata block associated to it, this data lacks any information about the language in which each document is written, making it extremely difficult to use Common Crawl for monolingual applications. We propose a general, highly parallel, multithreaded pipeline to clean and classify Common Crawl by language; we specifically design it so that it runs efficiently on medium to low resource infrastructures where I/O speeds are the main constraint. We develop the pipeline so that it can be easily reapplied to any kind of heterogeneous corpus and so that it can be parameterised to a wide range of infrastructures. We also distribute a 6.3TB version of Common Crawl, filtered, classified by language, shuffled at line level in order to avoid copyright issues, and ready to be used for NLP applications.},
|
284 |
+
language = {en}
|
285 |
+
}
|
286 |
+
|
287 |
+
```
|
288 |
+
|
289 |
+
### Contributions
|
290 |
+
|
291 |
+
Thanks to [@pjox](https://github.com/pjox) and [@lhoestq](https://github.com/lhoestq) for adding this dataset.
|