nicholasKluge commited on
Commit
a452daf
1 Parent(s): f09869a

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +130 -119
README.md CHANGED
@@ -28,157 +28,168 @@ pretty_name: Pt-Corpus
28
  size_categories:
29
  - 1M<n<10M
30
  ---
31
- # Pt-Corpus
32
 
33
- Pt-Corpus is a concatenation of several portions of Brazilian Portuguese datasets found in the [Hub](https://huggingface.co/datasets?task_categories=task_categories:text-generation&language=language:pt&sort=trending). This dataset was used in the following study: [TeenyTinyLlama: open-source tiny language models trained in Brazilian Portuguese](https://arxiv.org/abs/2401.16640).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  In a tokenized format, the dataset (uncompressed) weighs 50 GB and has approximately 4.1B tokens. This version does not have instructional content.
36
 
37
- The following datasets (_only training splits are a part of the corpus_) and respective licenses form Pt-Corpus:
38
 
39
- - [Wikipedia](https://huggingface.co/datasets/graelo/wikipedia) (License: [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/))
40
 
41
- **Citation Information**
42
 
43
- ```latex
44
- @ONLINE{wikidump,
45
- author = "Wikimedia Foundation",
46
- title = "Wikimedia Downloads",
47
- url = "https://dumps.wikimedia.org"
48
- }
49
- ```
50
 
51
- - [CulturaX](https://huggingface.co/datasets/uonlp/CulturaX) (License: [ODC-By](https://opendatacommons.org/licenses/by/1-0/), [cc0-1.0](https://huggingface.co/datasets/oscar-corpus/OSCAR-2301#licensing-information))
52
 
53
- **Citation Information**
54
 
55
- ```latex
56
- @misc{nguyen2023culturax,
57
- title={CulturaX: A Cleaned, Enormous, and Multilingual Dataset for Large Language Models in 167 Languages},
58
- 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},
59
- year={2023},
60
- eprint={2309.09400},
61
- archivePrefix={arXiv},
62
- primaryClass={cs.CL}
 
 
 
63
  }
64
  ```
65
 
66
- - [OSCAR](https://huggingface.co/datasets/eduagarcia/OSCAR-2301-pt_dedup) (License: [cc0-1.0](https://huggingface.co/datasets/oscar-corpus/OSCAR-2301#licensing-information))
67
 
68
- **Citation Information**
69
 
70
- ```latex
71
- @inproceedings{ortiz-suarez-etal-2020-monolingual,
72
- title = "A Monolingual Approach to Contextualized Word Embeddings for Mid-Resource Languages",
73
- author = "Ortiz Su{'a}rez, Pedro Javier and
74
- Romary, Laurent and
75
- Sagot, Benoit",
76
- booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
77
- month = jul,
78
- year = "2020",
79
- address = "Online",
80
- publisher = "Association for Computational Linguistics",
81
- url = "https://www.aclweb.org/anthology/2020.acl-main.156",
82
- pages = "1703--1714",
83
- 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.",
84
- }
85
 
86
- @inproceedings{OrtizSuarezSagotRomary2019,
87
- author = {Pedro Javier {Ortiz Su{'a}rez} and Benoit Sagot and Laurent Romary},
88
- title = {Asynchronous pipelines for processing huge corpora on medium to low resource infrastructures},
89
- series = {Proceedings of the Workshop on Challenges in the Management of Large Corpora (CMLC-7) 2019. Cardiff, 22nd July 2019},
90
- 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},
91
- publisher = {Leibniz-Institut f{"u}r Deutsche Sprache},
92
- address = {Mannheim},
93
- doi = {10.14618/ids-pub-9021},
94
- url = {http://nbn-resolving.de/urn:nbn:de:bsz:mh39-90215},
95
- pages = {9 -- 16},
96
- year = {2019},
97
- language = {en}
98
- }
99
  ```
100
 
101
- - [CCc100](https://huggingface.co/datasets/eduagarcia/cc100-pt) (License: [Common Crawl terms of use](https://commoncrawl.org/terms-of-use/))
102
 
103
- **Citation Information**
104
 
105
- ```latex
106
- @inproceedings{conneau-etal-2020-unsupervised,
107
- title = "Unsupervised Cross-lingual Representation Learning at Scale",
108
- author = "Conneau, Alexis and
109
- Khandelwal, Kartikay and
110
- Goyal, Naman and
111
- Chaudhary, Vishrav and
112
- Wenzek, Guillaume and
113
- Guzm{\'a}n, Francisco and
114
- Grave, Edouard and
115
- Ott, Myle and
116
- Zettlemoyer, Luke and
117
- Stoyanov, Veselin",
118
- booktitle = "Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics",
119
- month = jul,
120
- year = "2020",
121
- address = "Online",
122
- publisher = "Association for Computational Linguistics",
123
- url = "https://www.aclweb.org/anthology/2020.acl-main.747",
124
- doi = "10.18653/v1/2020.acl-main.747",
125
- pages = "8440--8451",
126
- }
127
 
128
- @inproceedings{wenzek-etal-2020-ccnet,
129
- title = "{CCN}et: Extracting High Quality Monolingual Datasets from Web Crawl Data",
130
- author = "Wenzek, Guillaume and
131
- Lachaux, Marie-Anne and
132
- Conneau, Alexis and
133
- Chaudhary, Vishrav and
134
- Guzm{\'a}n, Francisco and
135
- Joulin, Armand and
136
- Grave, Edouard",
137
- booktitle = "Proceedings of the 12th Language Resources and Evaluation Conference",
138
- month = may,
139
- year = "2020",
140
- address = "Marseille, France",
141
- publisher = "European Language Resources Association",
142
- url = "https://www.aclweb.org/anthology/2020.lrec-1.494",
143
- pages = "4003--4012",
144
- language = "English",
145
- ISBN = "979-10-95546-34-4",
146
- }
147
- ```
148
 
149
- - [Roots Wikiquote](https://huggingface.co/datasets/bigscience-data/roots_pt_wikiquote) (License: [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/))
150
 
151
- - [Roots Ted Talks](https://huggingface.co/datasets/bigscience-data/roots_pt_ted_talks_iwslt) (License: [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/deed.en))
152
 
153
- **Citation Information**
154
 
155
- ```latex
156
- @article{laurenccon2022bigscience,
157
- title={The bigscience roots corpus: A 1.6 tb composite multilingual dataset},
158
- author={Lauren{\c{c}}on, Hugo and Saulnier, Lucile and Wang, Thomas and Akiki, Christopher and Villanova del Moral, Albert and Le Scao, Teven and Von Werra, Leandro and Mou, Chenghao and Gonz{\'a}lez Ponferrada, Eduardo and Nguyen, Huu and others},
159
- journal={Advances in Neural Information Processing Systems},
160
- volume={35},
161
- pages={31809--31826},
162
- year={2022}
163
- }
164
- ```
165
 
166
- ## How to use
167
 
168
- To use this dataset, use the following code snippet:
169
 
170
- ```python
171
- from datasets import load_dataset
172
 
173
- dataset = load_dataset("nicholasKluge/Pt-Corpus", split='train')
174
 
175
- # If you don't want to download the entire dataset, set streaming to `True`
176
- dataset = load_dataset("nicholasKluge/Pt-Corpus", split='train', streaming=True)
177
 
178
- ```
 
 
 
 
 
 
 
 
 
 
 
 
179
 
180
- ## Disclaimer
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
 
182
- The dataset might contain offensive content, as some parts are a subset of public Common Crawl data. This means that the dataset contains sentences that, if viewed directly, can be insulting, threatening, or might otherwise cause anxiety.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
 
 
184
 
 
 
28
  size_categories:
29
  - 1M<n<10M
30
  ---
 
31
 
32
+ # Portuguese-Corpus
33
+
34
+ ## Table of Contents
35
+
36
+ - [Table of Contents](#table-of-contents)
37
+ - [Dataset Description](#dataset-description)
38
+ - [Dataset Summary](#dataset-summary)
39
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
40
+ - [Languages](#languages)
41
+ - [Dataset Structure](#dataset-structure)
42
+ - [Data Instances](#data-instances)
43
+ - [Data Fields](#data-fields)
44
+ - [Data Splits](#data-splits)
45
+ - [Dataset Creation](#dataset-creation)
46
+ - [Curation Rationale](#curation-rationale)
47
+ - [Source Data](#source-data)
48
+ - [Annotations](#annotations)
49
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
50
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
51
+ - [Social Impact of Dataset](#social-impact-of-dataset)
52
+ - [Discussion of Biases](#discussion-of-biases)
53
+ - [Other Known Limitations](#other-known-limitations)
54
+ - [Additional Information](#additional-information)
55
+ - [Dataset Curators](#dataset-curators)
56
+ - [Licensing Information](#licensing-information)
57
+ - [Citation Information](#citation-information)
58
+ - [Contributions](#contributions)
59
+
60
+ ## Dataset Description
61
+
62
+ - **Homepage:** [Dataset](https://huggingface.co/datasets/nicholasKluge/Pt-Corpus)
63
+ - **Repository:** [GitHub](https://github.com/Nkluge-correa/TeenyTinyLlama)
64
+ - **Paper:** [TeenyTinyLlama: open-source tiny language models trained in Brazilian Portuguese](https://arxiv.org/abs/2401.16640).
65
+ - **Leaderboard:** None
66
+ - **Point of Contact:** [nicholas@airespucrs.org](nicholas@airespucrs.org)
67
+
68
+ ### Dataset Summary
69
+
70
+ Portuguese-Corpus is a concatenation of several portions of Brazilian Portuguese datasets found in the [Hub](https://huggingface.co/datasets?task_categories=task_categories:text-generation&language=language:pt&sort=trending).
71
 
72
  In a tokenized format, the dataset (uncompressed) weighs 50 GB and has approximately 4.1B tokens. This version does not have instructional content.
73
 
74
+ ### Supported Tasks and Leaderboards
75
 
76
+ This dataset can be utilized for taks involving language modeling.
77
 
78
+ ### Languages
79
 
80
+ Portuguese.
 
 
 
 
 
 
81
 
82
+ ## Dataset Structure
83
 
84
+ ### Data Instances
85
 
86
+ The dataset consists of the following features:
87
+
88
+ - **text:** a string of text in Portuguese.
89
+ - **metadata:** the source where that string originated.
90
+
91
+ ### Data Fields
92
+
93
+ ```python
94
+ {
95
+ "text": "A inteligência artificial (de sigla: IA; do inglês: artificial intelligence, de sigla: AI) é um campo de estudo multidisciplinar que abrange varias áreas do conhecimento.",
96
+ "metadata": "source: https://huggingface.co/datasets/graelo/wikipedia"
97
  }
98
  ```
99
 
100
+ ### Data Splits
101
 
102
+ Available splits are `train`.
103
 
104
+ ```python
105
+ from datasets import load_dataset
106
+
107
+ dataset = load_dataset("nicholasKluge/Pt-Corpus", split='train')
108
+
109
+ # If you don't want to download the entire dataset, set streaming to `True`
110
+ dataset = load_dataset("nicholasKluge/Pt-Corpus", split='train', streaming=True)
 
 
 
 
 
 
 
 
111
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
  ```
113
 
114
+ ## Dataset Creation
115
 
116
+ ### Curation Rationale
117
 
118
+ This dataset was developed are part of the [TeenyTinyLlama: open-source tiny language models trained in Brazilian Portuguese](https://arxiv.org/abs/2401.16640) paper. In this study, we document the development of open-foundation models tailored for use in low-resource settings, their limitations, and their benefits.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
 
120
+ ### Source Data
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
+ #### Initial Data Collection and Normalization
123
 
124
+ We utilized some of the filters used in Rae et al. ([2021](https://arxiv.org/abs/2112.11446)), besides using a [fine-tuned BERTimbau](https://huggingface.co/nicholasKluge/ToxicityModelPT) to exclude samples classified above a pre-defined toxicity threshold.
125
 
126
+ #### Who are the source language producers?
127
 
128
+ All text samples are native to Portuguese or translated from other languages to Portuguese (slight contamination of other languages should also be expected).
 
 
 
 
 
 
 
 
 
129
 
130
+ ### Annotations
131
 
132
+ #### Annotation process
133
 
134
+ Portuguese-Corpus is a concatenation of several portions of Brazilian Portuguese datasets found in the [Hub](https://huggingface.co/datasets?task_categories=task_categories:text-generation&language=language:pt&sort=trending). We utilized some of the filters used in Rae et al. ([2021](https://arxiv.org/abs/2112.11446)), besides using a [fine-tuned BERTimbau](https://huggingface.co/nicholasKluge/ToxicityModelPT) to exclude samples classified above a pre-defined toxicity threshold.
 
135
 
136
+ #### Who are the annotators?
137
 
138
+ [Nicholas Kluge Corrêa](mailto:nicholas@airespucrs.org).
 
139
 
140
+ ### Personal and Sensitive Information
141
+
142
+ This dataset, sourced from web scraping, may potentially contain personal and sensitive information, alongside offensive, toxic, and disturbing language.
143
+
144
+ ## Considerations for Using the Data
145
+
146
+ ### Social Impact of Dataset
147
+
148
+ The presence of personal and sensitive information within the dataset raises concerns about privacy and data protection, potentially leading to breaches of individuals' confidentiality and security. Furthermore, the inclusion of offensive, toxic, and disturbing language in the dataset poses risks of perpetuating harmful behaviors and attitudes, contributing to the normalization of hate speech and online toxicity. Therefore, careful handling and ethical considerations are essential to mitigate these potential social impacts and promote responsible dataset use.
149
+
150
+ ### Discussion of Biases
151
+
152
+ The inclusion of offensive, toxic, and disturbing language in the dataset poses risks of perpetuating harmful behaviors and attitudes, contributing to the normalization of hate speech and online toxicity.
153
 
154
+ ### Other Known Limitations
155
+
156
+ A significant portion of the data within the dataset has been translated using translation engines, potentially resulting in corrupted samples of both language and code. While useful for quickly converting text between languages, translation engines often struggle with accurately preserving the syntax, semantics, and context of programming languages. As a result, the translated code may contain errors, syntax inconsistencies, or even introduce vulnerabilities, rendering it unreliable or unusable for its intended purpose.
157
+
158
+ ## Additional Information
159
+
160
+ ### Dataset Curators
161
+
162
+ [Nicholas Kluge Corrêa](mailto:nicholas@airespucrs.org).
163
+
164
+ ### Licensing Information
165
+
166
+ The following datasets (_only training splits are a part of the corpus_) and respective licenses form the Portuguese-Corpus:
167
+
168
+ - [Wikipedia](https://huggingface.co/datasets/graelo/wikipedia) (License: [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/))
169
 
170
+ - [CulturaX](https://huggingface.co/datasets/uonlp/CulturaX) (License: [ODC-By](https://opendatacommons.org/licenses/by/1-0/), [cc0-1.0](https://huggingface.co/datasets/oscar-corpus/OSCAR-2301#licensing-information))
171
+
172
+ - [OSCAR](https://huggingface.co/datasets/eduagarcia/OSCAR-2301-pt_dedup) (License: [cc0-1.0](https://huggingface.co/datasets/oscar-corpus/OSCAR-2301#licensing-information))
173
+
174
+ - [CCc100](https://huggingface.co/datasets/eduagarcia/cc100-pt) (License: [Common Crawl terms of use](https://commoncrawl.org/terms-of-use/))
175
+
176
+ - [Roots Wikiquote](https://huggingface.co/datasets/bigscience-data/roots_pt_wikiquote) (License: [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/))
177
+
178
+ - [Roots Ted Talks](https://huggingface.co/datasets/bigscience-data/roots_pt_ted_talks_iwslt) (License: [CC BY-NC-ND 4.0](https://creativecommons.org/licenses/by-nc-nd/4.0/deed.en))
179
+
180
+ ### Citation Information
181
+
182
+ ```latex
183
+
184
+ @misc{correa24ttllama,
185
+ title = {TeenyTinyLlama: open-source tiny language models trained in Brazilian Portuguese},
186
+ author = {Corr{\^e}a, Nicholas Kluge and Falk, Sophia and Fatimah, Shiza and Sen, Aniket and De Oliveira, Nythamar},
187
+ journal={arXiv preprint arXiv:2401.16640},
188
+ year={2024}
189
+ }
190
+
191
+ ```
192
 
193
+ ### Contributions
194
 
195
+ If you would like to contribute, contact me at [nicholas@airespucrs.org](mailto:nicholas@airespucrs.org)!