drvenabili commited on
Commit
9b29f18
1 Parent(s): 0662be7

dataset card

Browse files
Files changed (1) hide show
  1. README.md +158 -1
README.md CHANGED
@@ -280,8 +280,165 @@ dataset_info:
280
  num_examples: 285384149
281
  download_size: 7483375536
282
  dataset_size: 18002980013
 
 
 
 
 
 
 
 
 
 
283
  ---
284
 
285
  # kubhist2
286
 
287
- Huggingface version
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
280
  num_examples: 285384149
281
  download_size: 7483375536
282
  dataset_size: 18002980013
283
+ license: cc-by-sa-4.0
284
+ task_categories:
285
+ - text-generation
286
+ language:
287
+ - sv
288
+ tags:
289
+ - newspapers
290
+ - historical
291
+ size_categories:
292
+ - 1B<n<10B
293
  ---
294
 
295
  # kubhist2
296
 
297
+ ## Dataset Description
298
+
299
+ - **Homepage: https://changeiskey.org**
300
+ - **Repository: https://github.com/ChangeIsKey/kubhist2**
301
+ - **Point of Contact: Simon Hengchen / iguanodon.ai**
302
+
303
+
304
+ ### Dataset Summary
305
+
306
+ This is a version of the Kubhist 2 dataset originally created, curated and made available by Språkbanken Text (SBX) at the University of Gothenburg (Sweden) under the CC BY 4.0 license.
307
+ This is a a corpus of OCRed newspapers from Sweden spanning the 1640s to the 1900s.
308
+ The original data is available with many types of annotation in XML at https://spraakbanken.gu.se/en/resources/kubhist2.
309
+ A good description of the original data is available in this blog entry by Dana Dannélls: https://spraakbanken.gu.se/blogg/index.php/2019/09/15/the-kubhist-corpus-of-swedish-newspapers/
310
+
311
+ In a nutshell, this hugginface dataset version offers:
312
+ - only the OCRed text
313
+ - available in decadal subsets
314
+ - one line per sentence, sentences shorter than 4 words were discarded
315
+
316
+ In total this dataset contains 2,819,065,590 tokens. A distribution of tokens per decade is available below.
317
+
318
+ License is CC BY 4.0 ShareAlike.
319
+
320
+ ```bash
321
+ (env) simon@terminus:/mnt/user/cik/kubhist2 wc -w text/*/*.txt
322
+ 39348 text/1640/1640.txt
323
+ 4700 text/1650/1650.txt
324
+ 8524 text/1660/1660.txt
325
+ 2396 text/1670/1670.txt
326
+ 199670 text/1680/1680.txt
327
+ 487943 text/1690/1690.txt
328
+ 619884 text/1700/1700.txt
329
+ 265930 text/1710/1710.txt
330
+ 355759 text/1720/1720.txt
331
+ 856218 text/1730/1730.txt
332
+ 1589508 text/1740/1740.txt
333
+ 2211316 text/1750/1750.txt
334
+ 5496545 text/1760/1760.txt
335
+ 14434932 text/1770/1770.txt
336
+ 22366170 text/1780/1780.txt
337
+ 26768856 text/1790/1790.txt
338
+ 36225842 text/1800/1800.txt
339
+ 44510588 text/1810/1810.txt
340
+ 65571094 text/1820/1820.txt
341
+ 95359730 text/1830/1830.txt
342
+ 143992956 text/1840/1840.txt
343
+ 214538699 text/1850/1850.txt
344
+ 392672066 text/1860/1860.txt
345
+ 524802728 text/1870/1870.txt
346
+ 695859650 text/1880/1880.txt
347
+ 498244203 text/1890/1890.txt
348
+ 31580335 text/1900/1900.txt
349
+ 2819065590 total
350
+
351
+ ```
352
+
353
+
354
+ ### Languages
355
+
356
+ Swedish (nysvenska)
357
+
358
+ ## Dataset Structure
359
+
360
+ One feature: `text`.
361
+ Load the whole corpus using `dataset = load_dataset("ChangeIsKey/kubhist2")`, or a decadal subset using `dataset = load_dataset("ChangeIsKey/kubhist2", "decade")`. The
362
+ `decade` must be a string, valid values are within `range(1640, 1910, 10)`.
363
+
364
+ You can combine several decades using `concatenate_datasets` like this:
365
+
366
+ ```python
367
+ from datasets import load_dataset, concatenate_datasets
368
+
369
+ ds_1800 = load_dataset("ChangeIsKey/kubhist2", "1800")
370
+ ds_1810 = load_dataset("ChangeIsKey/kubhist2", "1810")
371
+ ds_1820 = load_dataset("ChangeIsKey/kubhist2", "1820")
372
+
373
+ ds_1800_1820 = concatenate_datasets([ds_1800["train"], ds_1810["train"], ds_1820["train"]])
374
+ ```
375
+
376
+
377
+ ### Data Splits
378
+
379
+ The dataset has only one split, `train`.
380
+
381
+ ## Dataset Creation
382
+
383
+ ### Curation Rationale
384
+
385
+ The original data is in a highly-annotated XML format not ideally suited for basic NLP tasks such as unsupervised language modeling: information such as page numbers, fonts, etc. is less relevant and has thus been discarded.
386
+ Keeping only the running text of the newspaper and removing sentences shorter than 4 words further allows a 150x data size reduction (2.4TB --> 16GB).
387
+
388
+ ### Source Data
389
+
390
+ The original data is available with many types of annotation in XML at https://spraakbanken.gu.se/en/resources/kubhist2.
391
+
392
+ #### Initial Data Collection and Normalization
393
+
394
+ See on Språkbanken Text's website.
395
+
396
+ #### Who are the source language producers?
397
+
398
+ Språkbanken Text: https://spraakbanken.gu.se/en/
399
+
400
+ ### Personal and Sensitive Information
401
+
402
+ This is historical newspaper data, with the latest data published in 1909. Everyone mentioned in this dataset was probably already a public figure, and has been dead for a while.
403
+
404
+ ## Considerations for Using the Data
405
+
406
+ ### Discussion of Biases
407
+
408
+ This is historical data. As such, outdated views might be present in the data.
409
+
410
+ ### Other Known Limitations
411
+
412
+ The data comes from an OCR process. The text is thus not perfect, especially so in the earlier decades.
413
+
414
+ ## Additional Information
415
+
416
+ ### Dataset Curators
417
+
418
+ This huggingface version of the data has been carried out by Simon Hengchen.
419
+
420
+ ### Licensing Information
421
+
422
+ Creative Commons Attribution Share Alike 4.0: https://creativecommons.org/licenses/by-sa/4.0/
423
+
424
+ ### Citation Information
425
+
426
+ You should always cite the original kubhist2 release, provided below as bibtex. If you want to additionally refer to this specific version, please also add a link to the huggingface page: https://huggingface.co/datasets/ChangeIsKey/kubhist2.
427
+
428
+ ```bibtex
429
+ @misc{Kubhist2,
430
+ title = {The Kubhist Corpus, v2},
431
+ url = {https://spraakbanken.gu.se/korp/?mode=kubhist},
432
+ author = {Spr{\aa}kbanken},
433
+ year = {Downloaded in 2019},
434
+ organization = {Department of Swedish, University of Gothenburg}
435
+ }
436
+
437
+ ```
438
+
439
+ ### Acknowledgments
440
+
441
+ This dataset has been created in the context of the [ChangeIsKey!](https://www.changeiskey.org/) project funded by Riksbankens Jubileumsfond under reference number M21-0021, Change is Key! program.
442
+ The compute dedicated to the creation of the dataset has been provided by [iguanodon.ai](https://iguanodon.ai).
443
+
444
+ Many thanks got to Språkbanken Text for creating and curating this resource.