dataseek commited on
Commit
0e8a57c
·
verified ·
1 Parent(s): 556c009

Initial dataset release — MagTina350m pretrain corpus slice

Browse files
README.md ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - pt
5
+ pretty_name: PT-BR Academic Corpus (CAPES theses + SciELO abstracts/books)
6
+ size_categories:
7
+ - 1M<n<10M
8
+ task_categories:
9
+ - text-generation
10
+ tags:
11
+ - pt-br
12
+ - brazilian-portuguese
13
+ - academic
14
+ - theses
15
+ - abstracts
16
+ - pretraining
17
+ configs:
18
+ - config_name: default
19
+ data_files:
20
+ - split: train
21
+ path: data/*.parquet
22
+ ---
23
+
24
+ # PT-BR Academic Corpus (CAPES theses + SciELO abstracts/books)
25
+
26
+ Part of the **MagTina350m pretrain corpus release** by [Dataseek](https://dataseek.com.br)
27
+ under the Magestic.ai brand. This is one of nine silver-layer datasets that fed
28
+ [`dataseek/magtina350m-base`](https://huggingface.co/dataseek/magtina350m-base).
29
+
30
+ ## Summary
31
+
32
+ 1.86 M Brazilian-Portuguese academic documents combining CAPES thesis and dissertation abstracts, SciELO article abstracts and SciELO open-access books. Complements the fulltext SciELO articles corpus with broader coverage at shorter document lengths.
33
+
34
+ ## Source and collection method
35
+
36
+ Sources: chenghao/scielo_books, eduagarcia/scielo_abstracts, eduagarcia/capes_teses_dissertacoes (all HuggingFace) → NFKD → SHA-1(text[:512]) dedup → per-row `source` tag preserved.
37
+
38
+ **ETL script (in the MagTina1B repository):** [`scripts/etl/17_academic_pt_v1.py`](https://huggingface.co/dataseek/magtina350m-base) *(public release of the ETL scripts is on the roadmap; until then the data card below documents the recipe in full).*
39
+
40
+ ## Filters and deduplication
41
+
42
+ The following filters were applied before this dataset reached its silver
43
+ (release-ready) state:
44
+
45
+ - alpha_ratio ≥ 0.65
46
+ - len(text) ≥ 200 chars
47
+ - SHA-1 dedup across all three upstream sources
48
+
49
+ Global URL-normalised deduplication was applied across all web-derived corpora
50
+ (`webpages`, `news`, `blogs`) so the same article does not appear twice across
51
+ those three datasets.
52
+
53
+ ## Schema
54
+
55
+ | Column | Type | Description |
56
+ |---|---|---|
57
+ | `source` | `string` | Upstream identifier. |
58
+ | `text` | `string` | Document text. |
59
+ | `n_chars` | `int32` | Character count. |
60
+ | `n_words` | `int32` | Word count. |
61
+ | `meta_json` | `string` | JSON-encoded source-specific metadata. |
62
+
63
+ Columns dropped at export (kept private as ETL internals): *none*
64
+
65
+ ## Size statistics
66
+
67
+ | Metric | Value |
68
+ |---|---:|
69
+ | Rows | 1.86 M (1,862,793) |
70
+ | Characters | 4.45 B (4,449,658,548) |
71
+ | Estimated tokens (PT-BR, chars / 4.5) | 988.81 M |
72
+ | Compressed Parquet on disk | ~2.49 GB |
73
+
74
+ **Used in MagTina350m pretrain:** 0.989 B tokens
75
+ (5.7 % of MagTina350m's 17.39 B-token pretrain budget).
76
+
77
+ ## How to load
78
+
79
+ ```python
80
+ from datasets import load_dataset
81
+
82
+ ds = load_dataset("dataseek/ptbr-academic", split="train", streaming=True)
83
+ for row in ds.take(5):
84
+ print(row["text"][:200])
85
+ ```
86
+
87
+ Streaming is recommended for the larger configs. For the smaller datasets
88
+ (`ptbr-dou`, `ptbr-books-publicos`) eager loading is fine.
89
+
90
+ ## Licensing
91
+
92
+ Mixed CC-BY 4.0 (SciELO subset) and CC-BY-SA / institutional-academic licensing for CAPES theses & dissertations. The conservative interpretation is to treat the aggregate as CC-BY 4.0 with attribution to the per-row `source`. See `meta_json` for upstream identifiers.
93
+
94
+ **Upstream attribution:** chenghao/scielo_books, eduagarcia/scielo_abstracts, eduagarcia/capes_teses_dissertacoes (HuggingFace)
95
+
96
+ ## Citation
97
+
98
+ If you use this dataset, please cite both the upstream source and MagTina350m:
99
+
100
+ ```bibtex
101
+ @misc{magtina350m_pretrain_2026,
102
+ title = {MagTina350m pretrain corpus — PT-BR Academic Corpus (CAPES theses + SciELO abstracts/books)},
103
+ author = {Frasson, Ricardo and {Dataseek Team}},
104
+ year = 2026,
105
+ publisher = {Hugging Face},
106
+ url = {https://huggingface.co/datasets/dataseek/ptbr-academic}
107
+ }
108
+ ```
109
+
110
+ Please also honour the upstream license terms — for CC-BY-derived data,
111
+ attribution to the upstream creators is mandatory; for CC-BY-SA, downstream
112
+ derivatives must remain CC-BY-SA-compatible.
113
+
114
+ ## Intended use
115
+
116
+ - Pre-training, continued pre-training, or domain-adapting of Brazilian Portuguese
117
+ language models.
118
+ - PT-BR NLP research where statistically representative public-web / academic /
119
+ legal / encyclopedic data is needed.
120
+ - Reproducing or improving on the MagTina350m result.
121
+
122
+ ## Known limitations and PII statement
123
+
124
+ - **Text was NOT PII-scrubbed.** URLs, emails, phone numbers and personal names
125
+ that occurred in the source data may still be present. We strip zero-width
126
+ characters and normalise Unicode but we do not run an NER pass.
127
+ - **Crawled data carries upstream biases** of CommonCrawl, Wikipedia, news outlets
128
+ and academic institutions present in the source. We have not audited these.
129
+ - **No safety filtering** beyond langid and basic alpha-ratio gates. Hate-speech,
130
+ spam and adult content present in the source remain unless caught incidentally.
131
+ - **Provenance preserved at row level.** Every row has either a `url`, `source` or
132
+ `doc_id` column that points back to upstream — this is intentional, so consumers
133
+ can re-license, redact or filter.
134
+
135
+ ## Related releases
136
+
137
+ - **Model:** [`dataseek/magtina350m-base`](https://huggingface.co/dataseek/magtina350m-base) (354.6 M params, pretrained on this corpus + 8 sibling datasets)
138
+ - **Instruct model:** [`dataseek/magtina350m-instruct`](https://huggingface.co/dataseek/magtina350m-instruct)
139
+ - **Sibling datasets:** see `dataseek/ptbr-*` for all nine corpora
140
+
141
+ ## License
142
+
143
+ [cc-by-4.0](https://spdx.org/licenses/cc-by-4.0.html)
data/data_0.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:471a40b4f07b6636ff659f748061122b1890c925cec411acb86c534f98a37599
3
+ size 624659568
data/data_1.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b4b51502323af536699c2a033a0cb8e29a4e9c8edcfa9da4ce73b4a61a2ca915
3
+ size 660849090
data/data_2.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:152191e5c8bd7602f0853ecd3204721a8adce2af430b226ad46326185c0344fa
3
+ size 522925767
data/data_3.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24c6432a0f80146e52d2c8eaeec6294c742e6dcf5e91dceab7f4e8feddc9727c
3
+ size 708429434
data/data_4.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a29ea190bb359b66fc395d0d626008f65f1f6f133bbf4144346d85f00d7edcb3
3
+ size 35500552