AudreyVM commited on
Commit
319c1e2
·
verified ·
1 Parent(s): d00dcec

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +271 -0
README.md CHANGED
@@ -227,6 +227,277 @@ print("Generated Translations:", results_detokenized)
227
 
228
  ## Data
229
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
230
 
231
 
232
  ## Evaluation
 
227
 
228
  ## Data
229
 
230
+ ### Pretraining Data
231
+
232
+ The training corpus consists of 70 billion tokens of Catalan- and Spanish-centric parallel data, including all of the official European languages plus Catalan, Basque, Galician, Asturian, Aragonese and Aranese. It amounts to xxxxx parallel sentence pairs.
233
+
234
+ This highly multilingual corpus is predominantly composed of data sourced from OPUS, with additional data taken from the NTEU project and Project Aina’s existing corpora. Where little parallel Catalan <-> data could be found, synthetic Catalan data was generated from the Spanish side of the collected Spanish <-> xx corpora using Project Aina’s es-> ca model. (link and correct name). The final distribution of languages was as below:
235
+
236
+
237
+
238
+ Click the expand button below to see the full list of corpora included in the training data.
239
+
240
+ <details>
241
+ <summary>Data Sources</summary>
242
+
243
+ | Dataset | Ca-xx Languages | Es-xx Langugages | Source |
244
+ |-----------------------------------------------|----------------------------------------------------------------|-----------------------------------------------|-----------------------------------------------------------------------------------------------------|
245
+ |CCMatrix |eu | |Opus |
246
+ |DGT | |bg,cs,da,de,el ,et,fi,fr,ga,hr,hu,lt,lv,mt,nl,pl,pt,ro,sk,sl,sv | |
247
+ |ELRC-EMEA | |bg,cs,da,hu,lt,lv,mt,pl,ro,sk,sl | |
248
+ |EMEA | |bg,cs,da,el,fi,hu,lt,mt,nl,pl,ro,sk,sl,sv | |
249
+ |EUBookshop |lt,pl,pt |cs,da,de,el,fi,fr,ga,it,lv,mt,nl,pl,pt,ro,sk,sl,sv |Opus |
250
+ |Europarl | |bg,cs,da,el,fi,fr,hu,lt,lv,nl,pl,pt ,ro,sk,sl,sv |Opus |
251
+ |Europt | |hr |Opus |
252
+ |KDE4 |bg,cs,da,de,el ,et,eu,fi,fr,ga,gl,hr,it,lt,lv,nl,pl,pt,ro,sk,sl,sv |bg,ga,hr |Opus |
253
+ |Global Voices | bg,de,fr,it,nl,pl,pt |bg,de,fr,pt | Opus |
254
+ |GNOME |eu,fr,ga,gl,pt |ga |Opus |
255
+ |JRC-Arquis | |cs,da,et,fr,lt,lv,mt,nl,pl ,ro,sv| |
256
+ |MultiCCAligned |bg,cs,de,el,et,fi,fr,hr,hu,it,lt,lv,nl,pl,ro,sk,sv |bg,fi,fr,hr,it,lv,nl,pt | |
257
+ |MultiHPLT |et,fi,ga,hr,mt | |Opus |
258
+ |MultiParaCrawl |bg,da |de,fr,ga,hr,hu,it,mt,pt | | |
259
+ |MultiUN | |fr | | |
260
+ |News Commentary | |fr | |
261
+ |NLLB |bg,da,el,et,fi,fr,gl,hu,it ,lt,lv,pt,ro,sk,sl |bg,cs,da,de,el ,et,fi,fr,hu,it,lt,lv,nl,pl,pt ,ro,sk,sl,sv| |
262
+ |NTEU | |bg,cs,da,de,el ,et,fi,fr,ga,hr,hu,it,lt,lv,mt,nl,pl,pt,ro,sk,sl,sv | |
263
+ |OpenSubtitles |bg,cs,da,de,el ,et,eu,fi,gl,hr,hu,lt,lv,nl,pl,pt,ro,sk,sl,sv |da,de,fi,fr,hr,hu,it,lv,nl |Opus |
264
+ |Tatoeba |de,pt |pt |Opus |
265
+ |TildeModel | |bg |Opus |
266
+ |UNPC | |fr | |
267
+ |WikiMatrix |bg,cs,da,de,el ,et,eu,fi,fr,gl,hr,hu,it,lt,nl,pl,pt,ro,sk,sl,sv |bg,fr,hr,it,pt |Opus |
268
+ |XLENT |eu,ga,gl |ga |Opus |
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <details>
287
+ <summary>References</summary>
288
+
289
+ - to be added
290
+
291
+
292
+ </details>
293
+
294
+ </details>
295
+
296
+
297
+ We provide an extense Datasheet section following the best practices defined by [(Gebru et al., 2021)](https://arxiv.org/pdf/1803.09010).
298
+
299
+ <details>
300
+ <summary>Datasheet</summary>
301
+
302
+ #### Motivation
303
+
304
+ **For what purpose was the dataset created? Was there a specific task in mind? Was there a specific gap that needed to be filled? Please provide a description.**
305
+
306
+ The purpose of creating this dataset is to pre-train multilingual models on parallel data in a large number of European languages, with Spanish and Catalan as the pivot languages. We have found that there is a lack of high quality parallel data in the scale necessary for training models, particularly between mid to low resource languages, and so in this dataset we have attempted to compile all publicly available resources for the included smaller languages.
307
+
308
+ **Who created the dataset (e.g., which team, research group) and on behalf of which entity (e.g., company, institution, organization)?**
309
+
310
+ The dataset has been created by the Machine Translation sub-group of the Language Technologies unit (LangTech) of the Barcelona Supercomputing Center - Centro Nacional de
311
+ Supercomputación (BSC-CNS), which aims to advance the field of natural language processing through cutting-edge research and development
312
+ and the use of HPC. In particular, the main contributors were Audrey Mash and Francesca Fornaciari.
313
+
314
+ However, the creation of the dataset would not have been possible without the collaboration of a large number of collaborators, partners,
315
+ and public institutions, which can be found in detail in the acknowledgements.
316
+
317
+ **Who funded the creation of the dataset? If there is an associated grant, please provide the name of the grantor and the grant name and number.**
318
+
319
+ This work/research has been promoted and financed by the Government of Catalonia through the [Aina project](https://projecteaina.cat/).
320
+
321
+ #### Composition
322
+
323
+ **What do the instances that comprise the dataset represent (e.g., documents, photos, people, countries)? Are there multiple types of instances (e.g., movies, users, and ratings; people and interactions between them; nodes and edges)? Please provide a description.**
324
+
325
+ The dataset consists entirely of parallel text separated at sentence level. Specifically, data was mainly sourced from the following databases and
326
+ repositories:
327
+ - **Opus:** Repository which aims to provide freely available parallel datasets in order to advance work in computational linguistics and automatic translation.
328
+ - **ELRC:** Repository used for documenting, storing, browsing and accessing Language Resources that are collected through the European Language Resource Coordination,
329
+
330
+ **How many instances are there in total (of each type, if appropriate)?**
331
+
332
+ The dataset contains a diverse range of sentence pairs across multiple languages. 36.02% of the data is parallel with Catalan, 27.59% is parallel with Spanish and 0.37% is parallel with English.
333
+
334
+ **Does the dataset contain all possible instances or is it a sample (not necessarily random) of instances from a larger set? If the dataset is a sample, then what is the larger set? Is the sample representative of the larger set (e.g., geographic coverage)? If so, please describe how this representativeness was validated/verified. If it is not representative of the larger set, please describe why not (e.g., to cover a more diverse range of instances, because instances were withheld or unavailable).**
335
+
336
+ The dataset is a sample from various sources. Language pairs which had fewer than 100 million parallel sentence pairs after filtering and cleaning were taken in their entirety. A sample of 100 million sentence pairs was taken from language pairs which had more data than this after preprocessing. All sampling was random. Where very little data existed between Catalan and the target language, synthetic Catalan data was created in order to increase the sample size. This was done using Projecte Aina’s xxx model.
337
+
338
+ **What data does each instance consist of? “Raw” data (e.g., unprocessed text or images) or features? In either case, please provide a description.**
339
+
340
+ Each instance consists of a parallel sentence pair processed for deduplication, language identification, and language alignment.
341
+
342
+ **Is there a label or target associated with each instance? If so, please provide a description.**
343
+
344
+ Each instance is labelled with the two languages present in the sentence pair.
345
+
346
+ **Is any information missing from individual instances? If so, please provide a description, explaining why this information is missing (e.g., because it was unavailable). This does not include intentionally removed information, but might include, e.g., redacted text.**
347
+
348
+ No significant information is missing from the instances.
349
+
350
+ **Are relationships between individual instances made explicit (e.g., users’ movie ratings, social network links)? If so, please describe how these relationships are made explicit.**
351
+
352
+ Instances are related through shared language identifiers.
353
+
354
+ **Are there recommended data splits (e.g., training, development/validation, testing)? If so, please provide a description of these splits, explaining the rationale behind them.**
355
+
356
+ The dataset is split randomly into training, validation, and test sets.
357
+
358
+ **Are there any errors, sources of noise, or redundancies in the dataset? If so, please provide a description.**
359
+
360
+ Despite filtering for alignment and language identification, a small number of misaligned sentence pairs and incorrectly labelled languages may remain present in the data. The thresholds chosen for this task aim to achieve an optimal balance, prioritising higher accuracy.
361
+
362
+ **Is the dataset self-contained, or does it link to or otherwise rely on external resources (e.g., websites, tweets, other datasets)? If it links to or relies on external resources, a) are there guarantees that they will exist, and remain constant, over time; b) are there official archival versions of the complete dataset (i.e., including the external resources as they existed at the time the dataset was created); c) are there any restrictions (e.g., licenses, fees) associated with any of the external resources that might apply to a dataset consumer? Please provide descriptions of all external resources and any restrictions associated with them, as well as links or other access points, as appropriate.**
363
+
364
+ The dataset is self-contained and does not rely on external resources.
365
+
366
+ **Does the dataset contain data that might be considered confidential (e.g., data that is protected by legal privilege or by doctor–patient confidentiality, data that includes the content of individuals’ non-public communications)? If so, please provide a description.**
367
+
368
+ The dataset does not contain confidential data.
369
+
370
+ **Does the dataset contain data that, if viewed directly, might be offensive, insulting, threatening, or might otherwise cause anxiety? If so, please describe why. If the dataset does not relate to people, you may skip the remaining questions in this section.**
371
+
372
+ The dataset includes web-crawled content, which may overrepresent pornographic material across languages (Kreutzer et al., 2022). We have performed no filtering for toxic material.
373
+
374
+ **Does the dataset identify any subpopulations (e.g., by age, gender)? If so, please describe how these subpopulations are identified and provide a description of their respective distributions within the dataset.**
375
+
376
+ The dataset does not explicitly identify any subpopulations.
377
+
378
+ **Is it possible to identify individuals (i.e., one or more natural persons), either directly or indirectly (i.e., in combination with other data) from the dataset? If so, please describe how.**
379
+
380
+ Web-sourced instances in the dataset may contain personally identifiable information (PII) that is publicly available on the Web, such as
381
+ names, IP addresses, email addresses, and phone numbers. While it would be possible to indirectly identify individuals through the
382
+ combination of multiple data points, the nature and scale of web data makes it difficult to parse such information.
383
+
384
+ **Does the dataset contain data that might be considered sensitive in any way? If so, please provide a description.**
385
+
386
+ Given that the dataset includes web-sourced content and other publicly available documents, instances may inadvertently reveal financial
387
+ information, health-related details, or forms of government identification, such as social security numbers (Subramani et al., 2023),
388
+ especially if the content originates from less-regulated sources or user-generated platforms.
389
+
390
+ #### Collection Process
391
+
392
+ **How was the data collected?**
393
+
394
+ This dataset is constituted by combining several sources, all of which take the form of web-sourced datasets with some preprocessing available under permissive license (p.e. Common Crawl).
395
+
396
+ **What mechanisms or procedures were used to collect the data? How were these mechanisms or procedures validated?**
397
+
398
+ All datasets were acquired through open direct download and validated with data integrity tests.
399
+
400
+ **If the dataset is a sample from a larger set, what was the sampling strategy?**
401
+
402
+ The sampling strategy was to use the whole dataset resulting from the filtering explained in the ‘preprocessing/cleaning/labelling’ section,
403
+ with the particularity that language pairs consisting of over 100 million sentence pairs were randomly sampled down to 100 million.
404
+
405
+ **Who was involved in the data collection process and how were they compensated?**
406
+
407
+ This data is generally extracted, filtered and sampled by automated processes. The code required to run these processes has been developed
408
+ entirely by members of the LangTech data team, or otherwise obtained from open-source software. Furthermore, there has been no monetary
409
+ consideration for acquiring data from suppliers.
410
+
411
+ **Over what timeframe was the data collected? Does this timeframe match the creation timeframe of the data associated with the instances? If not, please describe the timeframe in which the data associated with the instances was created.**
412
+
413
+ Data were acquired and processed from April 2023 to August 2024. However, as mentioned, much data has been obtained from open projects such
414
+ as Common Crawl, which contains data from 2014, so it is the end date (04/2024) rather than the start date that is important.
415
+
416
+ **Were any ethical review processes conducted? If so, please provide a description of these review processes, including the outcomes, as well as a link or other access point to any supporting documentation.**
417
+
418
+ No particular ethical review process has been carried out as the data is mostly open and not particularly sensitive. However, we have an
419
+ internal evaluation team and a bias team to monitor ethical issues. In addition, we work closely with ‘Observatori d'Ètica en Intel·ligència
420
+ Artificial’ (OEIAC) and ‘Agencia Española de Supervisión de la Inteligencia Artificial’ (AESIA) to audit the processes we carry out from an
421
+ ethical and legal point of view, respectively.
422
+
423
+ #### Preprocessing
424
+
425
+ **Was any preprocessing/cleaning/labeling of the data done? If so, please provide a description. If not, you may skip the remaining questions in this section.**
426
+
427
+ All data was filtered according to two specific criteria:
428
+ - Alignment - sentence level alignments were calculated using LaBSE and sentence pairs with a score below 0.75 were discarded.
429
+ - Language identification - The probability of being the target language was calculated using either IdiomaCognitor or Lingua.py and sentences identified as unlikely to be the correct language were filtered out. Thresholds varied by language.
430
+
431
+ **Was the “raw” data saved in addition to the preprocessed/cleaned/labeled data? If so, please provide a link or other access point to the “raw” data.**
432
+
433
+ The original raw data was kept on the BSC servers but is not publicly available.
434
+
435
+ **Is the software that was used to preprocess/clean/label the data available? If so, please provide a link or other access point.**
436
+
437
+ No, our internal cleaning pipeline for parallel data has not been made publicly available.
438
+
439
+ #### Uses
440
+
441
+ **Has the dataset been used for any tasks already? If so, please provide a description.**
442
+
443
+ Pre-train the SalamandraTA model family.
444
+
445
+ **What (other) tasks could the dataset be used for?**
446
+
447
+ The data can be used primarily to pre-train other Machine Translation models.
448
+
449
+ **Is there anything about the composition of the dataset or the way it was collected and preprocessed/cleaned/labeled that might impact future uses? Is there anything a dataset consumer could do to mitigate these risks or harms?**
450
+
451
+ Web-crawled content is over-represented with standard language varieties, impacting language model performance for minority languages.
452
+ Language diversity in data is crucial to avoid bias, especially in encoding non-standard dialects, preventing the exclusion of demographic
453
+ groups. Moreover, despite legal uncertainties in web-scraped data, we prioritize permissive licenses and privacy protection measures,
454
+ acknowledging the challenges posed by personally identifiable information (PII) within large-scale datasets. Our ongoing efforts aim to
455
+ address privacy concerns and contribute to a more inclusive linguistic dataset.
456
+
457
+ **Are there tasks for which the dataset should not be used?**
458
+
459
+ -
460
+
461
+ #### Distribution
462
+
463
+ **Will the dataset be distributed to third parties outside of the entity on behalf of which the dataset was created? If so, please provide a description.**
464
+
465
+ The dataset will not be released or distributed to third parties. Any related question to distribution is omitted in this section.
466
+
467
+ #### Maintenance
468
+
469
+ **Who will be supporting/hosting/maintaining the dataset?**
470
+
471
+ The dataset will be hosted by the Language Technologies unit (LangTech) of the Barcelona Supercomputing Center (BSC). The team will ensure
472
+ regular updates and monitor the dataset for any issues related to content integrity, legal compliance, and bias for the sources they are
473
+ responsible for.
474
+
475
+ **How can the owner/curator/manager of the dataset be contacted?**
476
+
477
+ The data owner may be contacted with the email address [email protected].
478
+
479
+ **Will the dataset be updated?**
480
+
481
+ The dataset will not be updated.
482
+
483
+ **If the dataset relates to people, are there applicable limits on the retention of the data associated with the instances? If so, please describe these limits and explain how they will be enforced.**
484
+
485
+ The dataset does not keep sensitive data that could allow direct identification of individuals, apart from the data that is publicly
486
+ available in web-sourced content. Due to the sheer volume and diversity of web data, it is not feasible to notify individuals or manage data
487
+ retention on an individual basis. However, efforts are made to mitigate the risks associated with sensitive information through
488
+ pre-processing and filtering to remove identifiable or harmful content. Despite these measures, vigilance is maintained to address potential
489
+ privacy and ethical issues.
490
+
491
+ **Will older versions of the dataset continue to be supported/hosted/maintained? If so, please describe how. If not, please describe how its obsolescence will be communicated to dataset consumers.**
492
+
493
+ Since the dataset will not be updated, only the final version will be kept.
494
+
495
+ **If others want to extend/augment/build on/contribute to the dataset, is there a mechanism for them to do so?**
496
+
497
+ The dataset does not allow for external contributions.
498
+
499
+ </details>
500
+
501
 
502
 
503
  ## Evaluation