dataseek commited on
Commit
23d9aef
·
verified ·
1 Parent(s): 48a0034

Initial dataset release — MagTina350m pretrain corpus slice

Browse files
Files changed (2) hide show
  1. README.md +154 -0
  2. data/data_0.parquet +3 -0
README.md ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc0-1.0
3
+ language:
4
+ - pt
5
+ pretty_name: Diário Oficial da União 2025-2026 (DO1 + DO1E)
6
+ size_categories:
7
+ - 10K<n<100K
8
+ task_categories:
9
+ - text-generation
10
+ tags:
11
+ - pt-br
12
+ - brazilian-portuguese
13
+ - government
14
+ - legal
15
+ - dou
16
+ - diario-oficial
17
+ - pretraining
18
+ configs:
19
+ - config_name: default
20
+ data_files:
21
+ - split: train
22
+ path: data/*.parquet
23
+ ---
24
+
25
+ # Diário Oficial da União 2025-2026 (DO1 + DO1E)
26
+
27
+ Part of the **MagTina350m pretrain corpus release** by [Dataseek](https://dataseek.com.br)
28
+ under the Magestic.ai brand. This is one of nine silver-layer datasets that fed
29
+ [`dataseek/magtina350m-base`](https://huggingface.co/dataseek/magtina350m-base).
30
+
31
+ ## Summary
32
+
33
+ 20 K articles from the Brazilian Official Federal Gazette covering 2025-2026 — sections DO1 (regular edition) and DO1E (extra edition). Rich structured metadata: publication date, edition, page, PDF URL, ementa (summary), full text. Small corpus but high signal for legal/admin PT-BR.
34
+
35
+ ## Source and collection method
36
+
37
+ Source: INLABS portal — https://inlabs.in.gov.br/ → daily ZIP downloads → XML parse → DO1 + DO1E section filter → dedup by `id_materia`.
38
+
39
+ **ETL script (in the MagTina1B repository):** [`scripts/etl/09_dou_2026_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).*
40
+
41
+ ## Filters and deduplication
42
+
43
+ The following filters were applied before this dataset reached its silver
44
+ (release-ready) state:
45
+
46
+ - Sections DO1 (regular) and DO1E (extra) only
47
+ - Dedup by `id_materia`
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
+ | `id_materia` | `string` | INLABS materia identifier. |
58
+ | `article_id` | `string` | Per-article id within materia. |
59
+ | `pub_name` | `string` | Publication identifier (e.g. 'DO1'). |
60
+ | `pub_date` | `timestamp` | Publication date. |
61
+ | `art_type` | `string` | Article type. |
62
+ | `art_category` | `string` | Article category. |
63
+ | `art_class` | `string` | Article subclass. |
64
+ | `edition_number` | `string` | Edition number. |
65
+ | `page_number` | `string` | Page in the printed edition. |
66
+ | `pdf_url` | `string` | URL to the official PDF. |
67
+ | `identifica` | `string` | Short identifier line (e.g. ato number). |
68
+ | `titulo` | `string` | Article title. |
69
+ | `ementa` | `string` | Official summary (when present). |
70
+ | `text` | `string` | Full article body. |
71
+ | `n_chars` | `int32` | Character count of `text`. |
72
+ | `n_words` | `int32` | Word count of `text`. |
73
+
74
+ Columns dropped at export (kept private as ETL internals): *none*
75
+
76
+ ## Size statistics
77
+
78
+ | Metric | Value |
79
+ |---|---:|
80
+ | Rows | 20.1 K (20,124) |
81
+ | Characters | 75.63 M (75,633,413) |
82
+ | Estimated tokens (PT-BR, chars / 4.5) | 16.81 M |
83
+ | Compressed Parquet on disk | ~0.04 GB |
84
+
85
+ **Used in MagTina350m pretrain:** 0.017 B tokens
86
+ (0.1 % of MagTina350m's 17.39 B-token pretrain budget).
87
+
88
+ ## How to load
89
+
90
+ ```python
91
+ from datasets import load_dataset
92
+
93
+ ds = load_dataset("dataseek/ptbr-dou", split="train", streaming=True)
94
+ for row in ds.take(5):
95
+ print(row["text"][:200])
96
+ ```
97
+
98
+ Streaming is recommended for the larger configs. For the smaller datasets
99
+ (`ptbr-dou`, `ptbr-books-publicos`) eager loading is fine.
100
+
101
+ ## Licensing
102
+
103
+ CC0 1.0 / Public Domain. Official acts of the Brazilian federal government are not protected by copyright (Lei 9.610/98 art. 8 § I). Freely redistributable.
104
+
105
+ **Upstream attribution:** INLABS / Imprensa Nacional — https://inlabs.in.gov.br/ (Brazilian Federal Press Office)
106
+
107
+ ## Citation
108
+
109
+ If you use this dataset, please cite both the upstream source and MagTina350m:
110
+
111
+ ```bibtex
112
+ @misc{magtina350m_pretrain_2026,
113
+ title = {MagTina350m pretrain corpus — Diário Oficial da União 2025-2026 (DO1 + DO1E)},
114
+ author = {Frasson, Ricardo and {Dataseek Team}},
115
+ year = 2026,
116
+ publisher = {Hugging Face},
117
+ url = {https://huggingface.co/datasets/dataseek/ptbr-dou}
118
+ }
119
+ ```
120
+
121
+ Please also honour the upstream license terms — for CC-BY-derived data,
122
+ attribution to the upstream creators is mandatory; for CC-BY-SA, downstream
123
+ derivatives must remain CC-BY-SA-compatible.
124
+
125
+ ## Intended use
126
+
127
+ - Pre-training, continued pre-training, or domain-adapting of Brazilian Portuguese
128
+ language models.
129
+ - PT-BR NLP research where statistically representative public-web / academic /
130
+ legal / encyclopedic data is needed.
131
+ - Reproducing or improving on the MagTina350m result.
132
+
133
+ ## Known limitations and PII statement
134
+
135
+ - **Text was NOT PII-scrubbed.** URLs, emails, phone numbers and personal names
136
+ that occurred in the source data may still be present. We strip zero-width
137
+ characters and normalise Unicode but we do not run an NER pass.
138
+ - **Crawled data carries upstream biases** of CommonCrawl, Wikipedia, news outlets
139
+ and academic institutions present in the source. We have not audited these.
140
+ - **No safety filtering** beyond langid and basic alpha-ratio gates. Hate-speech,
141
+ spam and adult content present in the source remain unless caught incidentally.
142
+ - **Provenance preserved at row level.** Every row has either a `url`, `source` or
143
+ `doc_id` column that points back to upstream — this is intentional, so consumers
144
+ can re-license, redact or filter.
145
+
146
+ ## Related releases
147
+
148
+ - **Model:** [`dataseek/magtina350m-base`](https://huggingface.co/dataseek/magtina350m-base) (354.6 M params, pretrained on this corpus + 8 sibling datasets)
149
+ - **Instruct model:** [`dataseek/magtina350m-instruct`](https://huggingface.co/dataseek/magtina350m-instruct)
150
+ - **Sibling datasets:** see `dataseek/ptbr-*` for all nine corpora
151
+
152
+ ## License
153
+
154
+ [cc0-1.0](https://spdx.org/licenses/cc0-1.0.html)
data/data_0.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44faec35a011fd9eab3aee68e4668dcdd7641bc4dfe76eb7305fac17ffe8d607
3
+ size 30169798