Datasets:

Modalities:
Image
Text
Formats:
arrow
Libraries:
Datasets
License:
KennethEnevoldsen commited on
Commit
0f3268e
·
verified ·
1 Parent(s): e0866e5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +141 -138
README.md CHANGED
@@ -1,139 +1,142 @@
1
- ---
2
- license: cc0-1.0
3
- ---
4
-
5
- # open-rdl-books
6
-
7
-
8
- ## Dataset Description
9
-
10
- | | |
11
- | ----------- | ----------- |
12
- | **Language** | dan, dansk, Danish |
13
- | **License** | Public Domain, cc0-1.0 |
14
-
15
-
16
-
17
- ### Dataset Summary
18
-
19
- Documents from the [Royal Danish Library](https://www.kb.dk/en) published between 1750 and 1930.
20
-
21
- The dataset has each page of each document in image and text format. The text was extracted with [OCR](https://en.wikipedia.org/wiki/Optical_character_recognition).
22
-
23
- The documents (books of various genres) were obtained from the library. The dataset was assembled to make these public domain Danish texts more accessible.
24
-
25
- ## Dataset Structure
26
-
27
- ### Data Instances
28
-
29
- ```
30
- {
31
- "doc_id": "unique document identifier",
32
- "page_id": "unique page identifier",
33
- "page_image":"image of the page, extracted from a pdf",
34
- "page_text": "OCRed text of the page, extracted from a pdf",
35
- "author" : "name of the author. If more than one, separated by ';' ",
36
- "title" : "document title",
37
- "published" : "year of publishing",
38
- "digitalized" : "year of processing the physical document by the library",
39
- "file_name" : "file_name of the original PDF"
40
- }
41
- ```
42
-
43
- The "page_text" was obtained through OCR, and is therefore likely to contain noisy data, especially in older documents, where the original text is either handwritten or printed in fonts, which are not commonly used today, such as [Fraktur](https://en.wikipedia.org/wiki/Fraktur).
44
-
45
- "author" and "title" may be missing, especially in documents published before 1833. Those are considered public domain, as there is no probable way the authors could be dead less than 70 years, and no in-depth metadata collection was done.
46
-
47
- "digitalized" may be missing.
48
-
49
-
50
- ### Data Splits
51
-
52
- All data is in the "train" split.
53
- [Data](https://huggingface.co/datasets/chcaa/kb-books/tree/main/data) is organized by year of publication, and is segmented into <5GB chunks.
54
-
55
-
56
-
57
- ## Dataset Creation
58
-
59
- ### Curation Rationale
60
- The dataset makes public domain text data more accessible to whomever may wish to view it or use it.
61
-
62
- The dataset was created for the projects:
63
- - [Danish Foundation Models](https://www.foundationmodels.dk)
64
- - [Golden Matrix](https://chc.au.dk/research/golden-matrix)
65
-
66
- The documents were filtered to make sure no non-public domain data is added. See [pd_check.md](./pd_check/pd_check.md) for the confirming of public domain status and [scraping.md](./scrape/scraping.md) for collecting possible Danish authors in detail.
67
-
68
-
69
- ### Source Data
70
-
71
- Data consists of OCRed documents from the [Royal Danish Library](https://www.kb.dk/en) published between 1750 and 1930.
72
- These documents are mostly books of various genres. No distinction was made among the documents based on genre. Additional to the text, the original PDF pages are also added as images for potentially improving the quality of text.
73
-
74
- The source data was made by humans, chiefly danish speaking authors, poets and playwrights.
75
-
76
- ### Data Extraction
77
-
78
- #### Logic
79
- The whole python script is provided for reference as [extract_data.py](./extract_data.py)
80
- For more detailed information the other scripts see
81
- [pd_check](./pd_check/pd_check.md) and [scraping](./scrape/scraping.md)
82
-
83
- <details>
84
- <summary>General Data Extraction</summary>
85
- <br>
86
- flowchart is for a broad understanding and is not a fully accurate representation.
87
-
88
- ![Logic flowchart](./imgs/extract_flowchart.jpg)
89
-
90
- </details>
91
-
92
- <details>
93
- <summary>Confirming Public Domain Status</summary>
94
- <br>
95
- flowchart is for a broad understanding and is not a fully accurate representation.
96
-
97
- ![Logic flowchart](./imgs/simple_check.jpg)
98
-
99
- </details>
100
-
101
-
102
- ## Additional Information
103
-
104
- ### Citation
105
-
106
- If you use this work please cite:
107
- ```
108
- @report{open-rdl-books,
109
- title={Public domain books from the Danish Royal Library},
110
- author={Szabo, Balazs and Vahlstrup, Peter and Møldrup-Dalum, Per and Nielbo, Kristoffer L. and Enevoldsen, Kenneth},
111
- year={2025}
112
- }
113
- ```
114
- ### Personal and Sensitive Information
115
-
116
- This dataset is under the public domain and, to our knowledge, does not contain personally sensitive information.
117
-
118
- ### Bias, Risks, and Limitations
119
-
120
- The works in this collection are historical, and thus they reflect the linguistic, cultural, and ideological norms of their respective times. As such, it includes perspectives, assumptions, and biases characteristic of the period, likely including stances that we would now deem inappropriate.
121
-
122
- ### Notice and takedown policy
123
- We redistribute files under the public domain or with a license permitting redistribution.
124
- If you have concerns about the licensing of these files, please contact us. If you consider that the data contains material that infringes your copyright, please:
125
-
126
- Clearly identify yourself with detailed contact information, such as an address, a telephone number, or an email address at which you can be contacted.
127
- Clearly reference the original work claimed to be infringed
128
- Clearly identify the material claimed to be infringing and information reasonably sufficient to allow us to locate the material.
129
- We will comply with legitimate requests by removing the affected sources from the next release of the dataset.
130
-
131
- ### Dataset Curators
132
-
133
- The dataset was created for use in these projects by the [Center for Humanities Computing](https://chc.au.dk/) at Aarhus University:
134
- - [Danish Foundation Models](https://www.foundationmodels.dk)
135
- - [Golden Matrix](https://chc.au.dk/research/golden-matrix)
136
-
137
-
138
- ### License
 
 
 
139
  The documents in the dataset are part of the [public domain](https://creativecommons.org/public-domain/)
 
1
+ ---
2
+ license: cc0-1.0
3
+ ---
4
+
5
+ # open-rdl-books
6
+
7
+
8
+ ## Dataset Description
9
+
10
+ | | |
11
+ | ----------- | ----------- |
12
+ | **Language** | dan, dansk, Danish |
13
+ | **License** | Public Domain, cc0-1.0 |
14
+
15
+
16
+
17
+ ### Dataset Summary
18
+
19
+ Documents from the [Royal Danish Library](https://www.kb.dk/en) published between 1750 and 1930.
20
+
21
+ The dataset has each page of each document in image and text format. The text was extracted with [OCR](https://en.wikipedia.org/wiki/Optical_character_recognition).
22
+
23
+ The documents (books of various genres) were obtained from the library. The dataset was assembled to make these public domain Danish texts more accessible.
24
+
25
+ ## Dataset Structure
26
+
27
+ ### Data Instances
28
+
29
+ ```
30
+ {
31
+ "doc_id": "unique document identifier",
32
+ "page_id": "unique page identifier",
33
+ "page_image":"image of the page, extracted from a pdf",
34
+ "page_text": "OCRed text of the page, extracted from a pdf",
35
+ "author" : "name of the author. If more than one, separated by ';' ",
36
+ "title" : "document title",
37
+ "published" : "year of publishing",
38
+ "digitalized" : "year of processing the physical document by the library",
39
+ "file_name" : "file_name of the original PDF"
40
+ }
41
+ ```
42
+
43
+ The "page_text" was obtained through OCR, and is therefore likely to contain noisy data, especially in older documents, where the original text is either handwritten or printed in fonts, which are not commonly used today, such as [Fraktur](https://en.wikipedia.org/wiki/Fraktur).
44
+
45
+ "author" and "title" may be missing, especially in documents published before 1833. Those are considered public domain, as there is no probable way the authors could be dead less than 70 years, and no in-depth metadata collection was done.
46
+
47
+ "digitalized" may be missing.
48
+
49
+
50
+ ### Data Splits
51
+
52
+ All data is in the "train" split.
53
+ [Data](https://huggingface.co/datasets/chcaa/kb-books/tree/main/data) is organized by year of publication, and is segmented into <5GB chunks.
54
+
55
+
56
+
57
+ ## Dataset Creation
58
+
59
+ ### Curation Rationale
60
+ The dataset makes public domain text data more accessible to whomever may wish to view it or use it.
61
+
62
+ The dataset was created for the projects:
63
+ - [Danish Foundation Models](https://www.foundationmodels.dk)
64
+ - [Golden Matrix](https://chc.au.dk/research/golden-matrix)
65
+
66
+ The documents were filtered to make sure no non-public domain data is added. See [pd_check.md](./pd_check/pd_check.md) for the confirming of public domain status and [scraping.md](./scrape/scraping.md) for collecting possible Danish authors in detail.
67
+
68
+
69
+ ### Source Data
70
+
71
+ Data consists of OCRed documents from the [Royal Danish Library](https://www.kb.dk/en) published between 1750 and 1930.
72
+ These documents are mostly books of various genres. No distinction was made among the documents based on genre. Additional to the text, the original PDF pages are also added as images for potentially improving the quality of text.
73
+
74
+ The source data was made by humans, chiefly danish speaking authors, poets and playwrights.
75
+
76
+ ### Data Extraction
77
+
78
+ #### Logic
79
+
80
+ The initial dataset was extracted using this [script](https://github.com/centre-for-humanities-computing/golden-array-scrapers/blob/master/src/kb-search-v2/kb-search-scraper.js).
81
+
82
+ The whole python script is provided for reference as [extract_data.py](./extract_data.py)
83
+ For more detailed information the other scripts see
84
+ [pd_check](./pd_check/pd_check.md) and [scraping](./scrape/scraping.md)
85
+
86
+ <details>
87
+ <summary>General Data Extraction</summary>
88
+ <br>
89
+ flowchart is for a broad understanding and is not a fully accurate representation.
90
+
91
+ ![Logic flowchart](./imgs/extract_flowchart.jpg)
92
+
93
+ </details>
94
+
95
+ <details>
96
+ <summary>Confirming Public Domain Status</summary>
97
+ <br>
98
+ flowchart is for a broad understanding and is not a fully accurate representation.
99
+
100
+ ![Logic flowchart](./imgs/simple_check.jpg)
101
+
102
+ </details>
103
+
104
+
105
+ ## Additional Information
106
+
107
+ ### Citation
108
+
109
+ If you use this work please cite:
110
+ ```
111
+ @report{open-rdl-books,
112
+ title={Public domain books from the Danish Royal Library},
113
+ author={Szabo, Balazs and Vahlstrup, Peter and Møldrup-Dalum, Per and Nielbo, Kristoffer L. and Enevoldsen, Kenneth},
114
+ year={2025}
115
+ }
116
+ ```
117
+ ### Personal and Sensitive Information
118
+
119
+ This dataset is under the public domain and, to our knowledge, does not contain personally sensitive information.
120
+
121
+ ### Bias, Risks, and Limitations
122
+
123
+ The works in this collection are historical, and thus they reflect the linguistic, cultural, and ideological norms of their respective times. As such, it includes perspectives, assumptions, and biases characteristic of the period, likely including stances that we would now deem inappropriate.
124
+
125
+ ### Notice and takedown policy
126
+ We redistribute files under the public domain or with a license permitting redistribution.
127
+ If you have concerns about the licensing of these files, please contact us. If you consider that the data contains material that infringes your copyright, please:
128
+
129
+ Clearly identify yourself with detailed contact information, such as an address, a telephone number, or an email address at which you can be contacted.
130
+ Clearly reference the original work claimed to be infringed
131
+ Clearly identify the material claimed to be infringing and information reasonably sufficient to allow us to locate the material.
132
+ We will comply with legitimate requests by removing the affected sources from the next release of the dataset.
133
+
134
+ ### Dataset Curators
135
+
136
+ The dataset was created for use in these projects by the [Center for Humanities Computing](https://chc.au.dk/) at Aarhus University:
137
+ - [Danish Foundation Models](https://www.foundationmodels.dk)
138
+ - [Golden Matrix](https://chc.au.dk/research/golden-matrix)
139
+
140
+
141
+ ### License
142
  The documents in the dataset are part of the [public domain](https://creativecommons.org/public-domain/)