BritishLibrary davanstrien HF Staff commited on
Commit
5f69a1e
·
1 Parent(s): de08734

Convert to Parquet format (remove legacy loading script) (#4)

Browse files

- Add Parquet data files for all configs (519230111b28774e355edbf686b6340aa3eac70c)
- Remove legacy loading script and dataset_infos.json (28c1b80d979d0c1aafe64d0cf17c1b64027bda0b)
- Add config definitions to README frontmatter (644fcc8b98bc29cb02b6d7079a2cb4aac63aed06)


Co-authored-by: Daniel van Strien <davanstrien@users.noreply.huggingface.co>

README.md CHANGED
@@ -266,6 +266,20 @@ config_names:
266
  - annotated_raw
267
  - raw
268
  - title_genre_classifiction
 
 
 
 
 
 
 
 
 
 
 
 
 
 
269
  ---
270
 
271
  # Dataset Card for blbooksgenre
 
266
  - annotated_raw
267
  - raw
268
  - title_genre_classifiction
269
+ configs:
270
+ - config_name: title_genre_classifiction
271
+ data_files:
272
+ - split: train
273
+ path: data/title_genre_classifiction/*.parquet
274
+ - config_name: annotated_raw
275
+ data_files:
276
+ - split: train
277
+ path: data/annotated_raw/*.parquet
278
+ - config_name: raw
279
+ data_files:
280
+ - split: train
281
+ path: data/raw/*.parquet
282
+ default_config_name: title_genre_classifiction
283
  ---
284
 
285
  # Dataset Card for blbooksgenre
blbooksgenre.py DELETED
@@ -1,340 +0,0 @@
1
- # coding=utf-8
2
- # Copyright 2021 The HuggingFace Datasets Authors and the current dataset script contributor.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
- """British Library Books Genre Dataset"""
16
-
17
- import ast
18
- import csv
19
- from datetime import datetime
20
- from typing import Dict, List
21
-
22
- import datasets
23
-
24
-
25
- _CITATION = """\
26
- @misc{british library_genre,
27
- title={ 19th Century Books - metadata with additional crowdsourced annotations},
28
- url={https://doi.org/10.23636/BKHQ-0312},
29
- author={{British Library} and Morris, Victoria and van Strien, Daniel and Tolfo, Giorgia and Afric, Lora and Robertson, Stewart and Tiney, Patricia and Dogterom, Annelies and Wollner, Ildi},
30
- year={2021}}
31
- """
32
-
33
- _DESCRIPTION = """\
34
- This dataset contains metadata for resources belonging to the British Library’s digitised printed books (18th-19th century) collection (bl.uk/collection-guides/digitised-printed-books).
35
- This metadata has been extracted from British Library catalogue records.
36
- The metadata held within our main catalogue is updated regularly.
37
- This metadata dataset should be considered a snapshot of this metadata.
38
- """
39
-
40
- _HOMEPAGE = "doi.org/10.23636/BKHQ-0312"
41
-
42
- _LICENSE = "CC0 1.0 Universal Public Domain"
43
-
44
-
45
- _URL = "https://bl.iro.bl.uk/downloads/36c7cd20-c8a7-4495-acbe-469b9132c6b1?locale=en"
46
-
47
- common_features = {
48
- "BL record ID": datasets.Value("string"),
49
- "Name": datasets.Value("string"),
50
- "Dates associated with name": datasets.Value("string"),
51
- "Type of name": datasets.Value("string"),
52
- "Role": datasets.Value("string"),
53
- "All names": datasets.features.Sequence(datasets.Value("string")),
54
- "Title": datasets.Value("string"),
55
- "Variant titles": datasets.Value("string"),
56
- "Series title": datasets.Value("string"),
57
- "Number within series": datasets.Value("string"),
58
- "Country of publication": datasets.Sequence(datasets.Value("string")),
59
- "Place of publication": datasets.Sequence(datasets.Value("string")),
60
- "Publisher": datasets.Value("string"),
61
- "Date of publication": datasets.Value("string"),
62
- "Edition": datasets.Value("string"),
63
- "Physical description": datasets.Value("string"),
64
- "Dewey classification": datasets.Value("string"),
65
- "BL shelfmark": datasets.Value("string"),
66
- "Topics": datasets.Value("string"),
67
- "Genre": datasets.Value("string"),
68
- "Languages": datasets.features.Sequence(datasets.Value("string")),
69
- "Notes": datasets.Value("string"),
70
- "BL record ID for physical resource": datasets.Value("string"),
71
- "classification_id": datasets.Value("string"),
72
- "user_id": datasets.Value("string"),
73
- "subject_ids": datasets.Value("string"),
74
- "annotator_date_pub": datasets.Value("string"),
75
- "annotator_normalised_date_pub": datasets.Value("string"),
76
- "annotator_edition_statement": datasets.Value("string"),
77
- "annotator_FAST_genre_terms": datasets.Value("string"),
78
- "annotator_FAST_subject_terms": datasets.Value("string"),
79
- "annotator_comments": datasets.Value("string"),
80
- "annotator_main_language": datasets.Value("string"),
81
- "annotator_other_languages_summaries": datasets.Value("string"),
82
- "annotator_summaries_language": datasets.Value("string"),
83
- "annotator_translation": datasets.Value("string"),
84
- "annotator_original_language": datasets.Value("string"),
85
- "annotator_publisher": datasets.Value("string"),
86
- "annotator_place_pub": datasets.Value("string"),
87
- "annotator_country": datasets.Value("string"),
88
- "annotator_title": datasets.Value("string"),
89
- "Link to digitised book": datasets.Value("string"),
90
- "annotated": datasets.Value("bool"),
91
- }
92
-
93
- raw_features = datasets.Features(
94
- {
95
- **common_features,
96
- **{
97
- "Type of resource": datasets.features.ClassLabel(
98
- names=["Monograph", "Serial", "Monographic component part"]
99
- ),
100
- "created_at": datasets.Value("string"),
101
- "annotator_genre": datasets.Value("string"),
102
- },
103
- }
104
- )
105
-
106
- annotated_raw_features = datasets.Features(
107
- {
108
- **common_features,
109
- **{
110
- "Type of resource": datasets.features.ClassLabel(
111
- names=[
112
- "Monograph",
113
- "Serial",
114
- ]
115
- ),
116
- "created_at": datasets.Value("timestamp[s]"),
117
- "annotator_genre": datasets.features.ClassLabel(
118
- names=[
119
- "Fiction",
120
- "Can't tell",
121
- "Non-fiction",
122
- "The book contains both Fiction and Non-Fiction",
123
- ]
124
- ),
125
- },
126
- }
127
- )
128
-
129
-
130
- class BlBooksGenre(datasets.GeneratorBasedBuilder):
131
-
132
- VERSION = datasets.Version("1.1.0")
133
- BUILDER_CONFIGS = [
134
- datasets.BuilderConfig(
135
- name="title_genre_classifiction",
136
- version=VERSION,
137
- description="This part of my dataset covers a first domain",
138
- ),
139
- datasets.BuilderConfig(
140
- name="annotated_raw",
141
- version=VERSION,
142
- description="""\
143
- This version of the dataset includes all fields from the original dataset which are annotated.
144
- This includes duplication from different annotators""",
145
- ),
146
- datasets.BuilderConfig(
147
- name="raw",
148
- version=VERSION,
149
- description="""\
150
- This version of the dataset includes all the fields from the original dataset including rows without annotation.
151
- It includes duplications from different annotators""",
152
- ),
153
- ]
154
-
155
- DEFAULT_CONFIG_NAME = "title_genre_classifiction"
156
-
157
- def _info(self):
158
- if self.config.name == "title_genre_classifiction":
159
- features = datasets.Features(
160
- {
161
- "BL record ID": datasets.Value("string"),
162
- "title": datasets.Value("string"),
163
- "label": datasets.features.ClassLabel(names=["Fiction", "Non-fiction"]),
164
- }
165
- )
166
- if self.config.name == "annotated_raw":
167
- features = annotated_raw_features
168
- if self.config.name == "raw":
169
- features = raw_features
170
-
171
- return datasets.DatasetInfo(
172
- description=_DESCRIPTION,
173
- features=features,
174
- supervised_keys=None,
175
- homepage=_HOMEPAGE,
176
- license=_LICENSE,
177
- citation=_CITATION,
178
- )
179
-
180
- def _split_generators(self, dl_manager):
181
- """Returns SplitGenerators."""
182
-
183
- data_file = dl_manager.download(_URL)
184
- return [
185
- datasets.SplitGenerator(
186
- name=datasets.Split.TRAIN,
187
- # These kwargs will be passed to _generate_examples
188
- gen_kwargs={
189
- "filepath": data_file,
190
- "split": "train",
191
- },
192
- ),
193
- ]
194
-
195
- def _parse_language(self, row: Dict) -> List[str]:
196
- languages = row["Languages"]
197
- if not languages:
198
- return []
199
- return languages.split(";")
200
-
201
- def _parse_country(self, row: Dict) -> List[str]:
202
- return row["Country of publication"].split(";") if row["Country of publication"] else []
203
-
204
- def _parse_place_of_publication(self, row: Dict) -> List[str]:
205
- return row["Place of publication"].split(";") if row["Place of publication"] else []
206
-
207
- def _parse_all_names(self, row: Dict) -> List[str]:
208
- return row["All names"].split(";") if row["All names"] else []
209
-
210
- def _generate_examples(self, filepath, split):
211
- """Yields examples as (key, example) tuples."""
212
- with open(filepath, encoding="utf-8") as f:
213
- reader = csv.DictReader(f)
214
- if self.config.name == "title_genre_classifiction":
215
- unique = set()
216
- id_ = 0
217
- for row in reader:
218
- annotated = ast.literal_eval(row["annotated"])
219
- if not annotated:
220
- continue
221
- label = row["annotator_genre"]
222
- if label not in {"Fiction", "Non-fiction"}:
223
- continue
224
- title = row["Title"]
225
- if title in unique:
226
- continue
227
- unique.add(title)
228
- id_ += 1
229
- yield id_, {
230
- "BL record ID": row["BL record ID"],
231
- "title": title,
232
- "label": label,
233
- }
234
- if self.config.name == "annotated_raw":
235
- id_ = 0
236
- for row in reader:
237
- annotated = ast.literal_eval(row["annotated"])
238
- if not annotated:
239
- continue
240
- created_at = datetime.strptime(row["created_at"], "%Y-%m-%d %H:%M:%S %Z")
241
- id_ += 1
242
- yield id_, {
243
- "BL record ID": row["BL record ID"],
244
- "Type of resource": row["Type of resource"],
245
- "Name": row["Name"],
246
- "Dates associated with name": row["Dates associated with name"],
247
- "Type of name": row["Type of name"],
248
- "Role": row["Role"],
249
- "All names": self._parse_all_names(row),
250
- "Title": row["Title"],
251
- "Variant titles": row["Variant titles"],
252
- "Series title": row["Series title"],
253
- "Number within series": row["Number within series"],
254
- "Country of publication": self._parse_country(row),
255
- "Place of publication": self._parse_place_of_publication(row),
256
- "Publisher": row["Publisher"],
257
- "Date of publication": row["Date of publication"],
258
- "Edition": row["Edition"],
259
- "Physical description": row["Physical description"],
260
- "Dewey classification": row["Dewey classification"],
261
- "BL shelfmark": row["BL shelfmark"],
262
- "Topics": row["Topics"],
263
- "Genre": row["Genre"],
264
- "Languages": self._parse_language(row),
265
- "Notes": row["Notes"],
266
- "BL record ID for physical resource": row["BL record ID for physical resource"],
267
- "classification_id": row["classification_id"],
268
- "user_id": row["user_id"],
269
- "created_at": created_at,
270
- "subject_ids": row["subject_ids"],
271
- "annotator_date_pub": row["annotator_date_pub"],
272
- "annotator_normalised_date_pub": row["annotator_normalised_date_pub"],
273
- "annotator_edition_statement": row["annotator_edition_statement"],
274
- "annotator_genre": row["annotator_genre"],
275
- "annotator_FAST_genre_terms": row["annotator_FAST_genre_terms"],
276
- "annotator_FAST_subject_terms": row["annotator_FAST_subject_terms"],
277
- "annotator_comments": row["annotator_comments"],
278
- "annotator_main_language": row["annotator_main_language"],
279
- "annotator_other_languages_summaries": row["annotator_other_languages_summaries"],
280
- "annotator_summaries_language": row["annotator_summaries_language"],
281
- "annotator_translation": row["annotator_translation"],
282
- "annotator_original_language": row["annotator_original_language"],
283
- "annotator_publisher": row["annotator_publisher"],
284
- "annotator_place_pub": row["annotator_place_pub"],
285
- "annotator_country": row["annotator_country"],
286
- "annotator_title": row["annotator_title"],
287
- "Link to digitised book": row["Link to digitised book"],
288
- "annotated": annotated,
289
- }
290
- if self.config.name == "raw":
291
- for id_, row in enumerate(reader):
292
-
293
- yield id_, {
294
- "BL record ID": row["BL record ID"],
295
- "Type of resource": row["Type of resource"],
296
- "Name": row["Name"],
297
- "Dates associated with name": row["Dates associated with name"],
298
- "Type of name": row["Type of name"],
299
- "Role": row["Role"],
300
- "All names": self._parse_all_names(row),
301
- "Title": row["Title"],
302
- "Variant titles": row["Variant titles"],
303
- "Series title": row["Series title"],
304
- "Number within series": row["Number within series"],
305
- "Country of publication": self._parse_country(row),
306
- "Place of publication": self._parse_place_of_publication(row),
307
- "Publisher": row["Publisher"],
308
- "Date of publication": row["Date of publication"],
309
- "Edition": row["Edition"],
310
- "Physical description": row["Physical description"],
311
- "Dewey classification": row["Dewey classification"],
312
- "BL shelfmark": row["BL shelfmark"],
313
- "Topics": row["Topics"],
314
- "Genre": row["Genre"],
315
- "Languages": self._parse_language(row),
316
- "Notes": row["Notes"],
317
- "BL record ID for physical resource": row["BL record ID for physical resource"],
318
- "classification_id": row["classification_id"],
319
- "user_id": row["user_id"],
320
- "created_at": row["created_at"],
321
- "subject_ids": row["subject_ids"],
322
- "annotator_date_pub": row["annotator_date_pub"],
323
- "annotator_normalised_date_pub": row["annotator_normalised_date_pub"],
324
- "annotator_edition_statement": row["annotator_edition_statement"],
325
- "annotator_genre": row["annotator_genre"],
326
- "annotator_FAST_genre_terms": row["annotator_FAST_genre_terms"],
327
- "annotator_FAST_subject_terms": row["annotator_FAST_subject_terms"],
328
- "annotator_comments": row["annotator_comments"],
329
- "annotator_main_language": row["annotator_main_language"],
330
- "annotator_other_languages_summaries": row["annotator_other_languages_summaries"],
331
- "annotator_summaries_language": row["annotator_summaries_language"],
332
- "annotator_translation": row["annotator_translation"],
333
- "annotator_original_language": row["annotator_original_language"],
334
- "annotator_publisher": row["annotator_publisher"],
335
- "annotator_place_pub": row["annotator_place_pub"],
336
- "annotator_country": row["annotator_country"],
337
- "annotator_title": row["annotator_title"],
338
- "Link to digitised book": row["Link to digitised book"],
339
- "annotated": ast.literal_eval(row["annotated"]),
340
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data/annotated_raw/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a0daba1180ac7e817bf2699c90154058e0353e7ab19939c4ebe4b424f33b1b81
3
+ size 780619
data/raw/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:790cf28986f9c4a4f205387b58be428cd25be7f943de179733c9360a1b307eb7
3
+ size 8912992
data/title_genre_classifiction/train-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af294bab09a0e5c1daebd39e16e22073da2a7125c2281c6821da19ed69b3ab6d
3
+ size 117810
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"title_genre_classifiction": {"description": "This dataset contains metadata for resources belonging to the British Library\u2019s digitised printed books (18th-19th century) collection (bl.uk/collection-guides/digitised-printed-books).\nThis metadata has been extracted from British Library catalogue records.\nThe metadata held within our main catalogue is updated regularly.\nThis metadata dataset should be considered a snapshot of this metadata.\n", "citation": "@misc{british library_genre,\ntitle={ 19th Century Books - metadata with additional crowdsourced annotations},\nurl={https://doi.org/10.23636/BKHQ-0312},\nauthor={{British Library} and Morris, Victoria and van Strien, Daniel and Tolfo, Giorgia and Afric, Lora and Robertson, Stewart and Tiney, Patricia and Dogterom, Annelies and Wollner, Ildi},\nyear={2021}}\n", "homepage": "doi.org/10.23636/BKHQ-0312", "license": "CC0 1.0 Universal Public Domain", "features": {"BL record ID": {"dtype": "string", "id": null, "_type": "Value"}, "title": {"dtype": "string", "id": null, "_type": "Value"}, "label": {"num_classes": 2, "names": ["Fiction", "Non-fiction"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "bl_books_genre", "config_name": "title_genre_classifiction", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 187600, "num_examples": 1736, "dataset_name": "bl_books_genre"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/36c7cd20-c8a7-4495-acbe-469b9132c6b1?locale=en": {"num_bytes": 20111420, "checksum": "79b6e09e29bb41b5a5e959134d977b3408eaee786810931d5cfc949135bfcabe"}}, "download_size": 20111420, "post_processing_size": null, "dataset_size": 187600, "size_in_bytes": 20299020}, "annotated_raw": {"description": "This dataset contains metadata for resources belonging to the British Library\u2019s digitised printed books (18th-19th century) collection (bl.uk/collection-guides/digitised-printed-books).\nThis metadata has been extracted from British Library catalogue records.\nThe metadata held within our main catalogue is updated regularly.\nThis metadata dataset should be considered a snapshot of this metadata.\n", "citation": "@misc{british library_genre,\ntitle={ 19th Century Books - metadata with additional crowdsourced annotations},\nurl={https://doi.org/10.23636/BKHQ-0312},\nauthor={{British Library} and Morris, Victoria and van Strien, Daniel and Tolfo, Giorgia and Afric, Lora and Robertson, Stewart and Tiney, Patricia and Dogterom, Annelies and Wollner, Ildi},\nyear={2021}}\n", "homepage": "doi.org/10.23636/BKHQ-0312", "license": "CC0 1.0 Universal Public Domain", "features": {"BL record ID": {"dtype": "string", "id": null, "_type": "Value"}, "Name": {"dtype": "string", "id": null, "_type": "Value"}, "Dates associated with name": {"dtype": "string", "id": null, "_type": "Value"}, "Type of name": {"dtype": "string", "id": null, "_type": "Value"}, "Role": {"dtype": "string", "id": null, "_type": "Value"}, "All names": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "Title": {"dtype": "string", "id": null, "_type": "Value"}, "Variant titles": {"dtype": "string", "id": null, "_type": "Value"}, "Series title": {"dtype": "string", "id": null, "_type": "Value"}, "Number within series": {"dtype": "string", "id": null, "_type": "Value"}, "Country of publication": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "Place of publication": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "Publisher": {"dtype": "string", "id": null, "_type": "Value"}, "Date of publication": {"dtype": "string", "id": null, "_type": "Value"}, "Edition": {"dtype": "string", "id": null, "_type": "Value"}, "Physical description": {"dtype": "string", "id": null, "_type": "Value"}, "Dewey classification": {"dtype": "string", "id": null, "_type": "Value"}, "BL shelfmark": {"dtype": "string", "id": null, "_type": "Value"}, "Topics": {"dtype": "string", "id": null, "_type": "Value"}, "Genre": {"dtype": "string", "id": null, "_type": "Value"}, "Languages": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "Notes": {"dtype": "string", "id": null, "_type": "Value"}, "BL record ID for physical resource": {"dtype": "string", "id": null, "_type": "Value"}, "classification_id": {"dtype": "string", "id": null, "_type": "Value"}, "user_id": {"dtype": "string", "id": null, "_type": "Value"}, "subject_ids": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_date_pub": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_normalised_date_pub": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_edition_statement": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_FAST_genre_terms": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_FAST_subject_terms": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_comments": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_main_language": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_other_languages_summaries": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_summaries_language": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_translation": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_original_language": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_publisher": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_place_pub": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_country": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_title": {"dtype": "string", "id": null, "_type": "Value"}, "Link to digitised book": {"dtype": "string", "id": null, "_type": "Value"}, "annotated": {"dtype": "bool", "id": null, "_type": "Value"}, "Type of resource": {"num_classes": 2, "names": ["Monograph", "Serial"], "names_file": null, "id": null, "_type": "ClassLabel"}, "created_at": {"dtype": "timestamp[s]", "id": null, "_type": "Value"}, "annotator_genre": {"num_classes": 4, "names": ["Fiction", "Can't tell", "Non-fiction", "The book contains both Fiction and Non-Fiction"], "names_file": null, "id": null, "_type": "ClassLabel"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "bl_books_genre", "config_name": "annotated_raw", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 3583138, "num_examples": 4398, "dataset_name": "bl_books_genre"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/36c7cd20-c8a7-4495-acbe-469b9132c6b1?locale=en": {"num_bytes": 20111420, "checksum": "79b6e09e29bb41b5a5e959134d977b3408eaee786810931d5cfc949135bfcabe"}}, "download_size": 20111420, "post_processing_size": null, "dataset_size": 3583138, "size_in_bytes": 23694558}, "raw": {"description": "This dataset contains metadata for resources belonging to the British Library\u2019s digitised printed books (18th-19th century) collection (bl.uk/collection-guides/digitised-printed-books).\nThis metadata has been extracted from British Library catalogue records.\nThe metadata held within our main catalogue is updated regularly.\nThis metadata dataset should be considered a snapshot of this metadata.\n", "citation": "@misc{british library_genre,\ntitle={ 19th Century Books - metadata with additional crowdsourced annotations},\nurl={https://doi.org/10.23636/BKHQ-0312},\nauthor={{British Library} and Morris, Victoria and van Strien, Daniel and Tolfo, Giorgia and Afric, Lora and Robertson, Stewart and Tiney, Patricia and Dogterom, Annelies and Wollner, Ildi},\nyear={2021}}\n", "homepage": "doi.org/10.23636/BKHQ-0312", "license": "CC0 1.0 Universal Public Domain", "features": {"BL record ID": {"dtype": "string", "id": null, "_type": "Value"}, "Name": {"dtype": "string", "id": null, "_type": "Value"}, "Dates associated with name": {"dtype": "string", "id": null, "_type": "Value"}, "Type of name": {"dtype": "string", "id": null, "_type": "Value"}, "Role": {"dtype": "string", "id": null, "_type": "Value"}, "All names": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "Title": {"dtype": "string", "id": null, "_type": "Value"}, "Variant titles": {"dtype": "string", "id": null, "_type": "Value"}, "Series title": {"dtype": "string", "id": null, "_type": "Value"}, "Number within series": {"dtype": "string", "id": null, "_type": "Value"}, "Country of publication": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "Place of publication": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "Publisher": {"dtype": "string", "id": null, "_type": "Value"}, "Date of publication": {"dtype": "string", "id": null, "_type": "Value"}, "Edition": {"dtype": "string", "id": null, "_type": "Value"}, "Physical description": {"dtype": "string", "id": null, "_type": "Value"}, "Dewey classification": {"dtype": "string", "id": null, "_type": "Value"}, "BL shelfmark": {"dtype": "string", "id": null, "_type": "Value"}, "Topics": {"dtype": "string", "id": null, "_type": "Value"}, "Genre": {"dtype": "string", "id": null, "_type": "Value"}, "Languages": {"feature": {"dtype": "string", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "Notes": {"dtype": "string", "id": null, "_type": "Value"}, "BL record ID for physical resource": {"dtype": "string", "id": null, "_type": "Value"}, "classification_id": {"dtype": "string", "id": null, "_type": "Value"}, "user_id": {"dtype": "string", "id": null, "_type": "Value"}, "subject_ids": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_date_pub": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_normalised_date_pub": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_edition_statement": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_FAST_genre_terms": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_FAST_subject_terms": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_comments": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_main_language": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_other_languages_summaries": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_summaries_language": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_translation": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_original_language": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_publisher": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_place_pub": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_country": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_title": {"dtype": "string", "id": null, "_type": "Value"}, "Link to digitised book": {"dtype": "string", "id": null, "_type": "Value"}, "annotated": {"dtype": "bool", "id": null, "_type": "Value"}, "Type of resource": {"num_classes": 3, "names": ["Monograph", "Serial", "Monographic component part"], "names_file": null, "id": null, "_type": "ClassLabel"}, "created_at": {"dtype": "string", "id": null, "_type": "Value"}, "annotator_genre": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "bl_books_genre", "config_name": "raw", "version": {"version_str": "1.1.0", "description": null, "major": 1, "minor": 1, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 27518816, "num_examples": 55343, "dataset_name": "bl_books_genre"}}, "download_checksums": {"https://bl.iro.bl.uk/downloads/36c7cd20-c8a7-4495-acbe-469b9132c6b1?locale=en": {"num_bytes": 20111420, "checksum": "79b6e09e29bb41b5a5e959134d977b3408eaee786810931d5cfc949135bfcabe"}}, "download_size": 20111420, "post_processing_size": null, "dataset_size": 27518816, "size_in_bytes": 47630236}}