vreabernardo commited on
Commit
be88e5f
·
verified ·
1 Parent(s): a2fbf35

Pessoana: cleaned Portuguese literature corpus (84 works; front matter stripped; train/validation/test/full; CC BY-SA 4.0)

Browse files
Files changed (8) hide show
  1. .gitattributes +2 -0
  2. README.md +174 -0
  3. data/full.txt +3 -0
  4. data/test.txt +0 -0
  5. data/train.txt +3 -0
  6. data/validation.txt +0 -0
  7. metadata.json +28 -0
  8. vocab.json +337 -0
.gitattributes CHANGED
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ data/full.txt filter=lfs diff=lfs merge=lfs -text
62
+ data/train.txt filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - pt
4
+ language_creators:
5
+ - found
6
+ annotations_creators:
7
+ - no-annotation
8
+ multilinguality:
9
+ - monolingual
10
+ pretty_name: Pessoana
11
+ license: cc-by-sa-4.0
12
+ task_categories:
13
+ - text-generation
14
+ size_categories:
15
+ - 10M<n<100M
16
+ tags:
17
+ - text
18
+ - portuguese
19
+ - portuguese-literature
20
+ - literature
21
+ - prose
22
+ - poetry
23
+ - public-domain
24
+ - character-level
25
+ - eca-de-queiros
26
+ - machado-de-assis
27
+ - fernando-pessoa
28
+ configs:
29
+ - config_name: default
30
+ data_files:
31
+ - split: train
32
+ path: data/train.txt
33
+ - split: validation
34
+ path: data/validation.txt
35
+ - split: test
36
+ path: data/test.txt
37
+ - config_name: full
38
+ data_files:
39
+ - split: train
40
+ path: data/full.txt
41
+ ---
42
+
43
+ # Pessoana
44
+
45
+ Pessoana is a Portuguese literary corpus of 84 public-domain works of Portuguese and
46
+ Brazilian classic literature, prepared for character-level language modeling. It is a
47
+ companion to [camoniana](https://huggingface.co/datasets/vreabernardo/camoniana), named
48
+ in homage to Fernando Pessoa (whose *Mensagem* it includes), and spans the canon from
49
+ Eça de Queirós and Machado de Assis to Florbela Espanca and Mário de Sá-Carneiro.
50
+
51
+ ## Dataset Details
52
+
53
+ - **Language:** Portuguese (`pt`) — pre-1990 orthography.
54
+ - **Authorial focus:** Portuguese and Brazilian classic literature (84 works).
55
+ - **Modality:** text (prose and poetry).
56
+ - **Primary task:** text generation / character-level language modeling.
57
+ - **Annotations:** none.
58
+ - **Tokenizer assumption:** one Unicode character is one token.
59
+
60
+ ## Files
61
+
62
+ ```text
63
+ README.md
64
+ metadata.json
65
+ vocab.json
66
+ data/full.txt
67
+ data/train.txt
68
+ data/validation.txt
69
+ data/test.txt
70
+ ```
71
+
72
+ - `data/full.txt`: full corpus text (train + validation + test).
73
+ - `data/train.txt` / `data/validation.txt` / `data/test.txt`: the splits.
74
+ - `metadata.json`: corpus statistics and split metadata.
75
+ - `vocab.json`: character vocabulary and integer mappings for character-level modeling.
76
+
77
+ ## Dataset Structure
78
+
79
+ The default configuration exposes the train, validation, and test splits:
80
+
81
+ ```python
82
+ from datasets import load_dataset
83
+
84
+ ds = load_dataset("vreabernardo/pessoana")
85
+ ```
86
+
87
+ To load the full corpus as one split:
88
+
89
+ ```python
90
+ from datasets import load_dataset
91
+
92
+ full = load_dataset("vreabernardo/pessoana", "full")
93
+ ```
94
+
95
+ For raw-file workflows, download `data/full.txt` directly.
96
+
97
+ ## Splits and Statistics
98
+
99
+ ```text
100
+ works: 84
101
+ vocab size: 165
102
+ train characters: 15,044,011
103
+ validation characters: 1,848,444
104
+ test characters: 2,269,090
105
+ full characters: 19,161,545
106
+ split: document-level, overlap-audited (no work appears in more than one split)
107
+ ```
108
+
109
+ Splits are assigned per document and overlap-audited, so no work leaks between train,
110
+ validation, and test. This keeps validation and test as honest held-out measurements
111
+ for character-level training runs.
112
+
113
+ ## Intended Uses
114
+
115
+ - Training small character-level language models for Portuguese.
116
+ - Testing Portuguese text generation experiments.
117
+ - Reproducing character-level dataset preparation.
118
+
119
+ ## Out-of-Scope Uses
120
+
121
+ - Treating the validation or test split as a benchmark for unrelated Portuguese
122
+ language modeling systems.
123
+ - Assuming the corpus represents modern Portuguese usage.
124
+ - Using generated outputs as factual or scholarly editions of the source texts.
125
+
126
+ ## Data Creation
127
+
128
+ The works were parsed from public-domain EPUBs to UTF-8 plain text and assigned to
129
+ train/validation/test at the document level with an overlap audit. Publisher front
130
+ matter — colophons (*Ficha Técnica*), tables of contents, ISBN/edition notices, and
131
+ licence statements — was stripped so the corpus is continuous literary prose and verse.
132
+ No labels or annotations were added.
133
+
134
+ ## Limitations and Biases
135
+
136
+ This is a literary corpus. It reflects the language, spelling, style, and editorial
137
+ choices of its source material (mostly 19th- and early-20th-century texts) and should
138
+ not be treated as representative of contemporary Portuguese. Light extraction artifacts
139
+ (e.g. footnote markers) may remain.
140
+
141
+ ## License and Provenance
142
+
143
+ The texts come from **Projecto Adamastor**, which publishes Portuguese-language literary
144
+ works under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)
145
+ licence. The underlying works are in the public domain by age. This compilation is
146
+ redistributed under CC BY-SA 4.0 — please keep attribution to Projecto Adamastor and the
147
+ original authors.
148
+
149
+ ## Citation
150
+
151
+ Use the exact Hugging Face revision you used. Replace `<revision-sha>` with the commit
152
+ hash shown on the dataset page.
153
+
154
+ ### APA
155
+
156
+ ```text
157
+ Vrea, B. (2026). Pessoana: A Portuguese literary corpus for character-level
158
+ language modeling [Data set]. Hugging Face.
159
+ https://huggingface.co/datasets/vreabernardo/pessoana
160
+ Revision: <revision-sha>
161
+ ```
162
+
163
+ ### BibTeX
164
+
165
+ ```bibtex
166
+ @misc{vrea2026pessoana,
167
+ title = {Pessoana: A Portuguese Literary Corpus for Character-Level Language Modeling},
168
+ author = {Vrea, Bernardo},
169
+ year = {2026},
170
+ publisher = {Hugging Face},
171
+ url = {https://huggingface.co/datasets/vreabernardo/pessoana},
172
+ note = {Revision: <revision-sha>}
173
+ }
174
+ ```
data/full.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10029cfabae266db6df4bf863a3e4e6544ef218e215acf36f170d09bf2619d95
3
+ size 19754741
data/test.txt ADDED
The diff for this file is too large to render. See raw diff
 
data/train.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:122da50e3a4deaa9d2694add6aa18c827c13b71d6e844b64b0fcef89ffb829ab
3
+ size 15511128
data/validation.txt ADDED
The diff for this file is too large to render. See raw diff
 
metadata.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "pessoana",
3
+ "description": "Portuguese classic literature corpus for character-level language modeling",
4
+ "source": "Projecto Adamastor (https://adamastor.eu/)",
5
+ "license": "CC BY-SA 4.0",
6
+ "works": 84,
7
+ "vocab_size": 165,
8
+ "split_method": "document-level, overlap-audited (no work appears in more than one split)",
9
+ "cleaning": "publisher front matter (colophon, table of contents, licence notices) stripped",
10
+ "splits": {
11
+ "train": {
12
+ "characters": 15044011,
13
+ "lines": 245681
14
+ },
15
+ "validation": {
16
+ "characters": 1848444,
17
+ "lines": 21413
18
+ },
19
+ "test": {
20
+ "characters": 2269090,
21
+ "lines": 24123
22
+ },
23
+ "full": {
24
+ "characters": 19161545,
25
+ "lines": 291215
26
+ }
27
+ }
28
+ }
vocab.json ADDED
@@ -0,0 +1,337 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 165,
3
+ "stoi": {
4
+ "\n": 0,
5
+ " ": 1,
6
+ "!": 2,
7
+ "\"": 3,
8
+ "$": 4,
9
+ "%": 5,
10
+ "&": 6,
11
+ "'": 7,
12
+ "(": 8,
13
+ ")": 9,
14
+ "*": 10,
15
+ "+": 11,
16
+ ",": 12,
17
+ "-": 13,
18
+ ".": 14,
19
+ "/": 15,
20
+ "0": 16,
21
+ "1": 17,
22
+ "2": 18,
23
+ "3": 19,
24
+ "4": 20,
25
+ "5": 21,
26
+ "6": 22,
27
+ "7": 23,
28
+ "8": 24,
29
+ "9": 25,
30
+ ":": 26,
31
+ ";": 27,
32
+ "=": 28,
33
+ ">": 29,
34
+ "?": 30,
35
+ "A": 31,
36
+ "B": 32,
37
+ "C": 33,
38
+ "D": 34,
39
+ "E": 35,
40
+ "F": 36,
41
+ "G": 37,
42
+ "H": 38,
43
+ "I": 39,
44
+ "J": 40,
45
+ "K": 41,
46
+ "L": 42,
47
+ "M": 43,
48
+ "N": 44,
49
+ "O": 45,
50
+ "P": 46,
51
+ "Q": 47,
52
+ "R": 48,
53
+ "S": 49,
54
+ "T": 50,
55
+ "U": 51,
56
+ "V": 52,
57
+ "W": 53,
58
+ "X": 54,
59
+ "Y": 55,
60
+ "Z": 56,
61
+ "[": 57,
62
+ "]": 58,
63
+ "_": 59,
64
+ "a": 60,
65
+ "b": 61,
66
+ "c": 62,
67
+ "d": 63,
68
+ "e": 64,
69
+ "f": 65,
70
+ "g": 66,
71
+ "h": 67,
72
+ "i": 68,
73
+ "j": 69,
74
+ "k": 70,
75
+ "l": 71,
76
+ "m": 72,
77
+ "n": 73,
78
+ "o": 74,
79
+ "p": 75,
80
+ "q": 76,
81
+ "r": 77,
82
+ "s": 78,
83
+ "t": 79,
84
+ "u": 80,
85
+ "v": 81,
86
+ "w": 82,
87
+ "x": 83,
88
+ "y": 84,
89
+ "z": 85,
90
+ "¡": 86,
91
+ "§": 87,
92
+ "«": 88,
93
+ "¬": 89,
94
+ "­": 90,
95
+ "°": 91,
96
+ "»": 92,
97
+ "¿": 93,
98
+ "À": 94,
99
+ "Á": 95,
100
+ "Â": 96,
101
+ "Ã": 97,
102
+ "Æ": 98,
103
+ "Ç": 99,
104
+ "È": 100,
105
+ "É": 101,
106
+ "Ê": 102,
107
+ "Í": 103,
108
+ "Ñ": 104,
109
+ "Ò": 105,
110
+ "Ó": 106,
111
+ "Ô": 107,
112
+ "Õ": 108,
113
+ "Ú": 109,
114
+ "à": 110,
115
+ "á": 111,
116
+ "â": 112,
117
+ "ã": 113,
118
+ "ä": 114,
119
+ "æ": 115,
120
+ "ç": 116,
121
+ "è": 117,
122
+ "é": 118,
123
+ "ê": 119,
124
+ "ë": 120,
125
+ "ì": 121,
126
+ "í": 122,
127
+ "î": 123,
128
+ "ï": 124,
129
+ "ñ": 125,
130
+ "ò": 126,
131
+ "ó": 127,
132
+ "ô": 128,
133
+ "õ": 129,
134
+ "ö": 130,
135
+ "ù": 131,
136
+ "ú": 132,
137
+ "û": 133,
138
+ "ü": 134,
139
+ "ĩ": 135,
140
+ "œ": 136,
141
+ "Ũ": 137,
142
+ "ũ": 138,
143
+ "ʼ": 139,
144
+ "ά": 140,
145
+ "α": 141,
146
+ "β": 142,
147
+ "γ": 143,
148
+ "δ": 144,
149
+ "ε": 145,
150
+ "ι": 146,
151
+ "μ": 147,
152
+ "ν": 148,
153
+ "ο": 149,
154
+ "π": 150,
155
+ "ρ": 151,
156
+ "ς": 152,
157
+ "τ": 153,
158
+ "χ": 154,
159
+ "О": 155,
160
+ "ẽ": 156,
161
+ "–": 157,
162
+ "—": 158,
163
+ "―": 159,
164
+ "‘": 160,
165
+ "’": 161,
166
+ "“": 162,
167
+ "”": 163,
168
+ "€": 164
169
+ },
170
+ "itos": {
171
+ "0": "\n",
172
+ "1": " ",
173
+ "2": "!",
174
+ "3": "\"",
175
+ "4": "$",
176
+ "5": "%",
177
+ "6": "&",
178
+ "7": "'",
179
+ "8": "(",
180
+ "9": ")",
181
+ "10": "*",
182
+ "11": "+",
183
+ "12": ",",
184
+ "13": "-",
185
+ "14": ".",
186
+ "15": "/",
187
+ "16": "0",
188
+ "17": "1",
189
+ "18": "2",
190
+ "19": "3",
191
+ "20": "4",
192
+ "21": "5",
193
+ "22": "6",
194
+ "23": "7",
195
+ "24": "8",
196
+ "25": "9",
197
+ "26": ":",
198
+ "27": ";",
199
+ "28": "=",
200
+ "29": ">",
201
+ "30": "?",
202
+ "31": "A",
203
+ "32": "B",
204
+ "33": "C",
205
+ "34": "D",
206
+ "35": "E",
207
+ "36": "F",
208
+ "37": "G",
209
+ "38": "H",
210
+ "39": "I",
211
+ "40": "J",
212
+ "41": "K",
213
+ "42": "L",
214
+ "43": "M",
215
+ "44": "N",
216
+ "45": "O",
217
+ "46": "P",
218
+ "47": "Q",
219
+ "48": "R",
220
+ "49": "S",
221
+ "50": "T",
222
+ "51": "U",
223
+ "52": "V",
224
+ "53": "W",
225
+ "54": "X",
226
+ "55": "Y",
227
+ "56": "Z",
228
+ "57": "[",
229
+ "58": "]",
230
+ "59": "_",
231
+ "60": "a",
232
+ "61": "b",
233
+ "62": "c",
234
+ "63": "d",
235
+ "64": "e",
236
+ "65": "f",
237
+ "66": "g",
238
+ "67": "h",
239
+ "68": "i",
240
+ "69": "j",
241
+ "70": "k",
242
+ "71": "l",
243
+ "72": "m",
244
+ "73": "n",
245
+ "74": "o",
246
+ "75": "p",
247
+ "76": "q",
248
+ "77": "r",
249
+ "78": "s",
250
+ "79": "t",
251
+ "80": "u",
252
+ "81": "v",
253
+ "82": "w",
254
+ "83": "x",
255
+ "84": "y",
256
+ "85": "z",
257
+ "86": "¡",
258
+ "87": "§",
259
+ "88": "«",
260
+ "89": "¬",
261
+ "90": "­",
262
+ "91": "°",
263
+ "92": "»",
264
+ "93": "¿",
265
+ "94": "À",
266
+ "95": "Á",
267
+ "96": "Â",
268
+ "97": "Ã",
269
+ "98": "Æ",
270
+ "99": "Ç",
271
+ "100": "È",
272
+ "101": "É",
273
+ "102": "Ê",
274
+ "103": "Í",
275
+ "104": "Ñ",
276
+ "105": "Ò",
277
+ "106": "Ó",
278
+ "107": "Ô",
279
+ "108": "Õ",
280
+ "109": "Ú",
281
+ "110": "à",
282
+ "111": "á",
283
+ "112": "â",
284
+ "113": "ã",
285
+ "114": "ä",
286
+ "115": "æ",
287
+ "116": "ç",
288
+ "117": "è",
289
+ "118": "é",
290
+ "119": "ê",
291
+ "120": "ë",
292
+ "121": "ì",
293
+ "122": "í",
294
+ "123": "î",
295
+ "124": "ï",
296
+ "125": "ñ",
297
+ "126": "ò",
298
+ "127": "ó",
299
+ "128": "ô",
300
+ "129": "õ",
301
+ "130": "ö",
302
+ "131": "ù",
303
+ "132": "ú",
304
+ "133": "û",
305
+ "134": "ü",
306
+ "135": "ĩ",
307
+ "136": "œ",
308
+ "137": "Ũ",
309
+ "138": "ũ",
310
+ "139": "ʼ",
311
+ "140": "ά",
312
+ "141": "α",
313
+ "142": "β",
314
+ "143": "γ",
315
+ "144": "δ",
316
+ "145": "ε",
317
+ "146": "ι",
318
+ "147": "μ",
319
+ "148": "ν",
320
+ "149": "ο",
321
+ "150": "π",
322
+ "151": "ρ",
323
+ "152": "ς",
324
+ "153": "τ",
325
+ "154": "χ",
326
+ "155": "О",
327
+ "156": "ẽ",
328
+ "157": "–",
329
+ "158": "—",
330
+ "159": "―",
331
+ "160": "‘",
332
+ "161": "’",
333
+ "162": "“",
334
+ "163": "”",
335
+ "164": "€"
336
+ }
337
+ }
Free AI Image Generator No sign-up. Instant results. Open Now