vreabernardo commited on
Commit
9ce6445
·
verified ·
1 Parent(s): 118e72e

Upload Camoniana dataset

Browse files
Files changed (6) hide show
  1. README.md +130 -0
  2. data/full.txt +0 -0
  3. data/train.txt +0 -0
  4. data/validation.txt +0 -0
  5. metadata.json +15 -0
  6. vocab.json +365 -0
README.md ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - pt
4
+ language_creators:
5
+ - found
6
+ annotations_creators:
7
+ - no-annotation
8
+ multilinguality:
9
+ - monolingual
10
+ pretty_name: Camoniana
11
+ task_categories:
12
+ - text-generation
13
+ size_categories:
14
+ - 10K<n<100K
15
+ tags:
16
+ - text
17
+ - portuguese
18
+ - literature
19
+ - poetry
20
+ - character-level
21
+ configs:
22
+ - config_name: default
23
+ data_files:
24
+ - split: train
25
+ path: data/train.txt
26
+ - split: validation
27
+ path: data/validation.txt
28
+ - config_name: full
29
+ data_files:
30
+ - split: train
31
+ path: data/full.txt
32
+ ---
33
+
34
+ # Camoniana
35
+
36
+ Camoniana is a small Portuguese literary corpus prepared for character-level language modeling.
37
+ It is the dataset used to train TinyCamoes.
38
+
39
+ ## Dataset Details
40
+
41
+ - **Language:** Portuguese (`pt`)
42
+ - **Modality:** text
43
+ - **Primary task:** text generation / character-level language modeling
44
+ - **Annotations:** none
45
+ - **Tokenizer assumption:** one Unicode character is one token for TinyCamoes training
46
+ - **Source in the training workspace:** `/root/tiny-camoes/input.txt`
47
+
48
+ ## Files
49
+
50
+ ```text
51
+ README.md
52
+ metadata.json
53
+ vocab.json
54
+ data/full.txt
55
+ data/train.txt
56
+ data/validation.txt
57
+ ```
58
+
59
+ - `data/full.txt`: full corpus text.
60
+ - `data/train.txt`: first 90% of the corpus by character offset.
61
+ - `data/validation.txt`: final 10% of the corpus by character offset.
62
+ - `metadata.json`: corpus statistics and split metadata.
63
+ - `vocab.json`: character vocabulary and integer mappings used by the TinyCamoes character model.
64
+
65
+ The binary `train.bin`, `val.bin`, and `meta.pkl` files used by the TinyCamoes training script are intentionally not included here. They are derived training artifacts, not the canonical dataset.
66
+
67
+ ## Dataset Structure
68
+
69
+ The default configuration exposes the training and validation splits:
70
+
71
+ ```python
72
+ from datasets import load_dataset
73
+
74
+ ds = load_dataset("vreabernardo/camoniana")
75
+ ```
76
+
77
+ To load the full corpus as one split:
78
+
79
+ ```python
80
+ from datasets import load_dataset
81
+
82
+ full = load_dataset("vreabernardo/camoniana", "full")
83
+ ```
84
+
85
+ For raw-file workflows, download `data/full.txt` directly.
86
+
87
+ ## Splits and Statistics
88
+
89
+ ```text
90
+ characters: 1,046,084
91
+ lines: 34,241
92
+ vocab size: 119
93
+ train characters: 941,475
94
+ validation characters: 104,609
95
+ split: contiguous 90/10 by character offset
96
+ ```
97
+
98
+ The split is contiguous rather than shuffled so the TinyCamoes training process can reproduce the original character-level setup exactly.
99
+
100
+ ## Intended Uses
101
+
102
+ - Training small character-level language models.
103
+ - Testing Portuguese text generation experiments.
104
+ - Reproducing TinyCamoes dataset preparation.
105
+
106
+ ## Out-of-Scope Uses
107
+
108
+ - Treating the validation split as a benchmark for unrelated Portuguese language modeling systems.
109
+ - Assuming the corpus represents modern Portuguese usage.
110
+ - Using generated outputs as factual or scholarly editions of the source text.
111
+
112
+ ## Data Creation
113
+
114
+ The corpus was taken from the local `/root/tiny-camoes/input.txt` source used in the TinyCamoes training workspace, then split by character offset into train and validation text files. No labels or annotations were added.
115
+
116
+ ## Limitations and Biases
117
+
118
+ This is a small literary corpus. It reflects the language, spelling, style, and editorial choices of its source material and should not be treated as representative of contemporary Portuguese.
119
+
120
+ ## License and Provenance
121
+
122
+ More Information Needed.
123
+
124
+ The works of Luís de Camões are historically public-domain, but the local source repository used for this upload does not include a license file or detailed provenance for the transcription/edition. Until provenance is verified, users should treat redistribution and downstream use with care.
125
+
126
+ ## Citation
127
+
128
+ More Information Needed.
129
+
130
+ If you use this dataset to reproduce TinyCamoes experiments, cite the TinyCamoes repository and include the exact dataset revision from Hugging Face.
data/full.txt ADDED
The diff for this file is too large to render. See raw diff
 
data/train.txt ADDED
The diff for this file is too large to render. See raw diff
 
data/validation.txt ADDED
The diff for this file is too large to render. See raw diff
 
metadata.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Camoniana",
3
+ "description": "Portuguese literary corpus prepared for character-level language modeling.",
4
+ "language": "pt",
5
+ "modality": "text",
6
+ "tokenization": "character-level",
7
+ "num_characters": 1046084,
8
+ "num_lines": 34241,
9
+ "vocab_size": 119,
10
+ "train_characters": 941475,
11
+ "validation_characters": 104609,
12
+ "split_method": "contiguous 90/10 split by character offset",
13
+ "source_path": "/root/tiny-camoes/input.txt",
14
+ "license_status": "More Information Needed: source repository has no license file."
15
+ }
vocab.json ADDED
@@ -0,0 +1,365 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chars": [
3
+ "\n",
4
+ " ",
5
+ "!",
6
+ "'",
7
+ "(",
8
+ ")",
9
+ ",",
10
+ "-",
11
+ ".",
12
+ "0",
13
+ "1",
14
+ "2",
15
+ "3",
16
+ "5",
17
+ "6",
18
+ "7",
19
+ "8",
20
+ ":",
21
+ ";",
22
+ "?",
23
+ "A",
24
+ "B",
25
+ "C",
26
+ "D",
27
+ "E",
28
+ "F",
29
+ "G",
30
+ "H",
31
+ "I",
32
+ "J",
33
+ "L",
34
+ "M",
35
+ "N",
36
+ "O",
37
+ "P",
38
+ "Q",
39
+ "R",
40
+ "S",
41
+ "T",
42
+ "U",
43
+ "V",
44
+ "X",
45
+ "Y",
46
+ "Z",
47
+ "[",
48
+ "\\",
49
+ "]",
50
+ "a",
51
+ "b",
52
+ "c",
53
+ "d",
54
+ "e",
55
+ "f",
56
+ "g",
57
+ "h",
58
+ "i",
59
+ "j",
60
+ "l",
61
+ "m",
62
+ "n",
63
+ "o",
64
+ "p",
65
+ "q",
66
+ "r",
67
+ "s",
68
+ "t",
69
+ "u",
70
+ "v",
71
+ "x",
72
+ "y",
73
+ "z",
74
+ "«",
75
+ "­",
76
+ "´",
77
+ "»",
78
+ "À",
79
+ "Á",
80
+ "Â",
81
+ "Ã",
82
+ "Ç",
83
+ "É",
84
+ "Í",
85
+ "Ó",
86
+ "Ô",
87
+ "Ú",
88
+ "à",
89
+ "á",
90
+ "â",
91
+ "ã",
92
+ "ç",
93
+ "è",
94
+ "é",
95
+ "ê",
96
+ "ë",
97
+ "í",
98
+ "ï",
99
+ "ñ",
100
+ "ò",
101
+ "ó",
102
+ "ô",
103
+ "õ",
104
+ "ù",
105
+ "ú",
106
+ "ü",
107
+ "ā",
108
+ "Ũ",
109
+ "ũ",
110
+ "Ū",
111
+ "ū",
112
+ "–",
113
+ "—",
114
+ "‘",
115
+ "’",
116
+ "“",
117
+ "”",
118
+ "…",
119
+ "(",
120
+ "-",
121
+ "["
122
+ ],
123
+ "stoi": {
124
+ "\n": 0,
125
+ " ": 1,
126
+ "!": 2,
127
+ "'": 3,
128
+ "(": 4,
129
+ ")": 5,
130
+ ",": 6,
131
+ "-": 7,
132
+ ".": 8,
133
+ "0": 9,
134
+ "1": 10,
135
+ "2": 11,
136
+ "3": 12,
137
+ "5": 13,
138
+ "6": 14,
139
+ "7": 15,
140
+ "8": 16,
141
+ ":": 17,
142
+ ";": 18,
143
+ "?": 19,
144
+ "A": 20,
145
+ "B": 21,
146
+ "C": 22,
147
+ "D": 23,
148
+ "E": 24,
149
+ "F": 25,
150
+ "G": 26,
151
+ "H": 27,
152
+ "I": 28,
153
+ "J": 29,
154
+ "L": 30,
155
+ "M": 31,
156
+ "N": 32,
157
+ "O": 33,
158
+ "P": 34,
159
+ "Q": 35,
160
+ "R": 36,
161
+ "S": 37,
162
+ "T": 38,
163
+ "U": 39,
164
+ "V": 40,
165
+ "X": 41,
166
+ "Y": 42,
167
+ "Z": 43,
168
+ "[": 44,
169
+ "\\": 45,
170
+ "]": 46,
171
+ "a": 47,
172
+ "b": 48,
173
+ "c": 49,
174
+ "d": 50,
175
+ "e": 51,
176
+ "f": 52,
177
+ "g": 53,
178
+ "h": 54,
179
+ "i": 55,
180
+ "j": 56,
181
+ "l": 57,
182
+ "m": 58,
183
+ "n": 59,
184
+ "o": 60,
185
+ "p": 61,
186
+ "q": 62,
187
+ "r": 63,
188
+ "s": 64,
189
+ "t": 65,
190
+ "u": 66,
191
+ "v": 67,
192
+ "x": 68,
193
+ "y": 69,
194
+ "z": 70,
195
+ "«": 71,
196
+ "­": 72,
197
+ "´": 73,
198
+ "»": 74,
199
+ "À": 75,
200
+ "Á": 76,
201
+ "Â": 77,
202
+ "Ã": 78,
203
+ "Ç": 79,
204
+ "É": 80,
205
+ "Í": 81,
206
+ "Ó": 82,
207
+ "Ô": 83,
208
+ "Ú": 84,
209
+ "à": 85,
210
+ "á": 86,
211
+ "â": 87,
212
+ "ã": 88,
213
+ "ç": 89,
214
+ "è": 90,
215
+ "é": 91,
216
+ "ê": 92,
217
+ "ë": 93,
218
+ "í": 94,
219
+ "ï": 95,
220
+ "ñ": 96,
221
+ "ò": 97,
222
+ "ó": 98,
223
+ "ô": 99,
224
+ "õ": 100,
225
+ "ù": 101,
226
+ "ú": 102,
227
+ "ü": 103,
228
+ "ā": 104,
229
+ "Ũ": 105,
230
+ "ũ": 106,
231
+ "Ū": 107,
232
+ "ū": 108,
233
+ "–": 109,
234
+ "—": 110,
235
+ "‘": 111,
236
+ "’": 112,
237
+ "“": 113,
238
+ "”": 114,
239
+ "…": 115,
240
+ "(": 116,
241
+ "-": 117,
242
+ "[": 118
243
+ },
244
+ "itos": {
245
+ "0": "\n",
246
+ "1": " ",
247
+ "2": "!",
248
+ "3": "'",
249
+ "4": "(",
250
+ "5": ")",
251
+ "6": ",",
252
+ "7": "-",
253
+ "8": ".",
254
+ "9": "0",
255
+ "10": "1",
256
+ "11": "2",
257
+ "12": "3",
258
+ "13": "5",
259
+ "14": "6",
260
+ "15": "7",
261
+ "16": "8",
262
+ "17": ":",
263
+ "18": ";",
264
+ "19": "?",
265
+ "20": "A",
266
+ "21": "B",
267
+ "22": "C",
268
+ "23": "D",
269
+ "24": "E",
270
+ "25": "F",
271
+ "26": "G",
272
+ "27": "H",
273
+ "28": "I",
274
+ "29": "J",
275
+ "30": "L",
276
+ "31": "M",
277
+ "32": "N",
278
+ "33": "O",
279
+ "34": "P",
280
+ "35": "Q",
281
+ "36": "R",
282
+ "37": "S",
283
+ "38": "T",
284
+ "39": "U",
285
+ "40": "V",
286
+ "41": "X",
287
+ "42": "Y",
288
+ "43": "Z",
289
+ "44": "[",
290
+ "45": "\\",
291
+ "46": "]",
292
+ "47": "a",
293
+ "48": "b",
294
+ "49": "c",
295
+ "50": "d",
296
+ "51": "e",
297
+ "52": "f",
298
+ "53": "g",
299
+ "54": "h",
300
+ "55": "i",
301
+ "56": "j",
302
+ "57": "l",
303
+ "58": "m",
304
+ "59": "n",
305
+ "60": "o",
306
+ "61": "p",
307
+ "62": "q",
308
+ "63": "r",
309
+ "64": "s",
310
+ "65": "t",
311
+ "66": "u",
312
+ "67": "v",
313
+ "68": "x",
314
+ "69": "y",
315
+ "70": "z",
316
+ "71": "«",
317
+ "72": "­",
318
+ "73": "´",
319
+ "74": "»",
320
+ "75": "À",
321
+ "76": "Á",
322
+ "77": "Â",
323
+ "78": "Ã",
324
+ "79": "Ç",
325
+ "80": "É",
326
+ "81": "Í",
327
+ "82": "Ó",
328
+ "83": "Ô",
329
+ "84": "Ú",
330
+ "85": "à",
331
+ "86": "á",
332
+ "87": "â",
333
+ "88": "ã",
334
+ "89": "ç",
335
+ "90": "è",
336
+ "91": "é",
337
+ "92": "ê",
338
+ "93": "ë",
339
+ "94": "í",
340
+ "95": "ï",
341
+ "96": "ñ",
342
+ "97": "ò",
343
+ "98": "ó",
344
+ "99": "ô",
345
+ "100": "õ",
346
+ "101": "ù",
347
+ "102": "ú",
348
+ "103": "ü",
349
+ "104": "ā",
350
+ "105": "Ũ",
351
+ "106": "ũ",
352
+ "107": "Ū",
353
+ "108": "ū",
354
+ "109": "–",
355
+ "110": "—",
356
+ "111": "‘",
357
+ "112": "’",
358
+ "113": "“",
359
+ "114": "”",
360
+ "115": "…",
361
+ "116": "(",
362
+ "117": "-",
363
+ "118": "["
364
+ }
365
+ }