Datasets:
parquet-converter
commited on
Commit
•
369fda3
1
Parent(s):
46ac3fc
Update parquet files
Browse files- .gitattributes +0 -27
- README.md +0 -638
- annotated_raw/blbooksgenre-train.parquet +3 -0
- blbooksgenre.py +0 -340
- dataset_infos.json +0 -1
- raw/blbooksgenre-train.parquet +3 -0
- title_genre_classifiction/blbooksgenre-train.parquet +3 -0
.gitattributes
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
*.7z filter=lfs diff=lfs merge=lfs -text
|
2 |
-
*.arrow filter=lfs diff=lfs merge=lfs -text
|
3 |
-
*.bin filter=lfs diff=lfs merge=lfs -text
|
4 |
-
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
5 |
-
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
6 |
-
*.ftz filter=lfs diff=lfs merge=lfs -text
|
7 |
-
*.gz filter=lfs diff=lfs merge=lfs -text
|
8 |
-
*.h5 filter=lfs diff=lfs merge=lfs -text
|
9 |
-
*.joblib filter=lfs diff=lfs merge=lfs -text
|
10 |
-
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
11 |
-
*.model filter=lfs diff=lfs merge=lfs -text
|
12 |
-
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
13 |
-
*.onnx filter=lfs diff=lfs merge=lfs -text
|
14 |
-
*.ot filter=lfs diff=lfs merge=lfs -text
|
15 |
-
*.parquet filter=lfs diff=lfs merge=lfs -text
|
16 |
-
*.pb filter=lfs diff=lfs merge=lfs -text
|
17 |
-
*.pt filter=lfs diff=lfs merge=lfs -text
|
18 |
-
*.pth filter=lfs diff=lfs merge=lfs -text
|
19 |
-
*.rar filter=lfs diff=lfs merge=lfs -text
|
20 |
-
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
21 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
22 |
-
*.tflite filter=lfs diff=lfs merge=lfs -text
|
23 |
-
*.tgz filter=lfs diff=lfs merge=lfs -text
|
24 |
-
*.xz filter=lfs diff=lfs merge=lfs -text
|
25 |
-
*.zip filter=lfs diff=lfs merge=lfs -text
|
26 |
-
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
27 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
DELETED
@@ -1,638 +0,0 @@
|
|
1 |
-
---
|
2 |
-
annotations_creators:
|
3 |
-
- expert-generated
|
4 |
-
language_creators:
|
5 |
-
- crowdsourced
|
6 |
-
- expert-generated
|
7 |
-
language:
|
8 |
-
- de
|
9 |
-
- en
|
10 |
-
- fr
|
11 |
-
- nl
|
12 |
-
license:
|
13 |
-
- cc0-1.0
|
14 |
-
multilinguality:
|
15 |
-
- multilingual
|
16 |
-
pretty_name: British Library Books Genre
|
17 |
-
size_categories:
|
18 |
-
- 10K<n<100K
|
19 |
-
- 1K<n<10K
|
20 |
-
source_datasets:
|
21 |
-
- original
|
22 |
-
task_categories:
|
23 |
-
- text-classification
|
24 |
-
- text-generation
|
25 |
-
- fill-mask
|
26 |
-
task_ids:
|
27 |
-
- topic-classification
|
28 |
-
- multi-label-classification
|
29 |
-
- language-modeling
|
30 |
-
- masked-language-modeling
|
31 |
-
configs:
|
32 |
-
- annotated_raw
|
33 |
-
- raw
|
34 |
-
- title_genre_classifiction
|
35 |
-
dataset_info:
|
36 |
-
- config_name: title_genre_classifiction
|
37 |
-
features:
|
38 |
-
- name: BL record ID
|
39 |
-
dtype: string
|
40 |
-
- name: title
|
41 |
-
dtype: string
|
42 |
-
- name: label
|
43 |
-
dtype:
|
44 |
-
class_label:
|
45 |
-
names:
|
46 |
-
0: Fiction
|
47 |
-
1: Non-fiction
|
48 |
-
splits:
|
49 |
-
- name: train
|
50 |
-
num_bytes: 187600
|
51 |
-
num_examples: 1736
|
52 |
-
download_size: 20111420
|
53 |
-
dataset_size: 187600
|
54 |
-
- config_name: annotated_raw
|
55 |
-
features:
|
56 |
-
- name: BL record ID
|
57 |
-
dtype: string
|
58 |
-
- name: Name
|
59 |
-
dtype: string
|
60 |
-
- name: Dates associated with name
|
61 |
-
dtype: string
|
62 |
-
- name: Type of name
|
63 |
-
dtype: string
|
64 |
-
- name: Role
|
65 |
-
dtype: string
|
66 |
-
- name: All names
|
67 |
-
sequence: string
|
68 |
-
- name: Title
|
69 |
-
dtype: string
|
70 |
-
- name: Variant titles
|
71 |
-
dtype: string
|
72 |
-
- name: Series title
|
73 |
-
dtype: string
|
74 |
-
- name: Number within series
|
75 |
-
dtype: string
|
76 |
-
- name: Country of publication
|
77 |
-
sequence: string
|
78 |
-
- name: Place of publication
|
79 |
-
sequence: string
|
80 |
-
- name: Publisher
|
81 |
-
dtype: string
|
82 |
-
- name: Date of publication
|
83 |
-
dtype: string
|
84 |
-
- name: Edition
|
85 |
-
dtype: string
|
86 |
-
- name: Physical description
|
87 |
-
dtype: string
|
88 |
-
- name: Dewey classification
|
89 |
-
dtype: string
|
90 |
-
- name: BL shelfmark
|
91 |
-
dtype: string
|
92 |
-
- name: Topics
|
93 |
-
dtype: string
|
94 |
-
- name: Genre
|
95 |
-
dtype: string
|
96 |
-
- name: Languages
|
97 |
-
sequence: string
|
98 |
-
- name: Notes
|
99 |
-
dtype: string
|
100 |
-
- name: BL record ID for physical resource
|
101 |
-
dtype: string
|
102 |
-
- name: classification_id
|
103 |
-
dtype: string
|
104 |
-
- name: user_id
|
105 |
-
dtype: string
|
106 |
-
- name: subject_ids
|
107 |
-
dtype: string
|
108 |
-
- name: annotator_date_pub
|
109 |
-
dtype: string
|
110 |
-
- name: annotator_normalised_date_pub
|
111 |
-
dtype: string
|
112 |
-
- name: annotator_edition_statement
|
113 |
-
dtype: string
|
114 |
-
- name: annotator_FAST_genre_terms
|
115 |
-
dtype: string
|
116 |
-
- name: annotator_FAST_subject_terms
|
117 |
-
dtype: string
|
118 |
-
- name: annotator_comments
|
119 |
-
dtype: string
|
120 |
-
- name: annotator_main_language
|
121 |
-
dtype: string
|
122 |
-
- name: annotator_other_languages_summaries
|
123 |
-
dtype: string
|
124 |
-
- name: annotator_summaries_language
|
125 |
-
dtype: string
|
126 |
-
- name: annotator_translation
|
127 |
-
dtype: string
|
128 |
-
- name: annotator_original_language
|
129 |
-
dtype: string
|
130 |
-
- name: annotator_publisher
|
131 |
-
dtype: string
|
132 |
-
- name: annotator_place_pub
|
133 |
-
dtype: string
|
134 |
-
- name: annotator_country
|
135 |
-
dtype: string
|
136 |
-
- name: annotator_title
|
137 |
-
dtype: string
|
138 |
-
- name: Link to digitised book
|
139 |
-
dtype: string
|
140 |
-
- name: annotated
|
141 |
-
dtype: bool
|
142 |
-
- name: Type of resource
|
143 |
-
dtype:
|
144 |
-
class_label:
|
145 |
-
names:
|
146 |
-
0: Monograph
|
147 |
-
1: Serial
|
148 |
-
- name: created_at
|
149 |
-
dtype: timestamp[s]
|
150 |
-
- name: annotator_genre
|
151 |
-
dtype:
|
152 |
-
class_label:
|
153 |
-
names:
|
154 |
-
0: Fiction
|
155 |
-
1: Can't tell
|
156 |
-
2: Non-fiction
|
157 |
-
3: The book contains both Fiction and Non-Fiction
|
158 |
-
splits:
|
159 |
-
- name: train
|
160 |
-
num_bytes: 3583138
|
161 |
-
num_examples: 4398
|
162 |
-
download_size: 20111420
|
163 |
-
dataset_size: 3583138
|
164 |
-
- config_name: raw
|
165 |
-
features:
|
166 |
-
- name: BL record ID
|
167 |
-
dtype: string
|
168 |
-
- name: Name
|
169 |
-
dtype: string
|
170 |
-
- name: Dates associated with name
|
171 |
-
dtype: string
|
172 |
-
- name: Type of name
|
173 |
-
dtype: string
|
174 |
-
- name: Role
|
175 |
-
dtype: string
|
176 |
-
- name: All names
|
177 |
-
sequence: string
|
178 |
-
- name: Title
|
179 |
-
dtype: string
|
180 |
-
- name: Variant titles
|
181 |
-
dtype: string
|
182 |
-
- name: Series title
|
183 |
-
dtype: string
|
184 |
-
- name: Number within series
|
185 |
-
dtype: string
|
186 |
-
- name: Country of publication
|
187 |
-
sequence: string
|
188 |
-
- name: Place of publication
|
189 |
-
sequence: string
|
190 |
-
- name: Publisher
|
191 |
-
dtype: string
|
192 |
-
- name: Date of publication
|
193 |
-
dtype: string
|
194 |
-
- name: Edition
|
195 |
-
dtype: string
|
196 |
-
- name: Physical description
|
197 |
-
dtype: string
|
198 |
-
- name: Dewey classification
|
199 |
-
dtype: string
|
200 |
-
- name: BL shelfmark
|
201 |
-
dtype: string
|
202 |
-
- name: Topics
|
203 |
-
dtype: string
|
204 |
-
- name: Genre
|
205 |
-
dtype: string
|
206 |
-
- name: Languages
|
207 |
-
sequence: string
|
208 |
-
- name: Notes
|
209 |
-
dtype: string
|
210 |
-
- name: BL record ID for physical resource
|
211 |
-
dtype: string
|
212 |
-
- name: classification_id
|
213 |
-
dtype: string
|
214 |
-
- name: user_id
|
215 |
-
dtype: string
|
216 |
-
- name: subject_ids
|
217 |
-
dtype: string
|
218 |
-
- name: annotator_date_pub
|
219 |
-
dtype: string
|
220 |
-
- name: annotator_normalised_date_pub
|
221 |
-
dtype: string
|
222 |
-
- name: annotator_edition_statement
|
223 |
-
dtype: string
|
224 |
-
- name: annotator_FAST_genre_terms
|
225 |
-
dtype: string
|
226 |
-
- name: annotator_FAST_subject_terms
|
227 |
-
dtype: string
|
228 |
-
- name: annotator_comments
|
229 |
-
dtype: string
|
230 |
-
- name: annotator_main_language
|
231 |
-
dtype: string
|
232 |
-
- name: annotator_other_languages_summaries
|
233 |
-
dtype: string
|
234 |
-
- name: annotator_summaries_language
|
235 |
-
dtype: string
|
236 |
-
- name: annotator_translation
|
237 |
-
dtype: string
|
238 |
-
- name: annotator_original_language
|
239 |
-
dtype: string
|
240 |
-
- name: annotator_publisher
|
241 |
-
dtype: string
|
242 |
-
- name: annotator_place_pub
|
243 |
-
dtype: string
|
244 |
-
- name: annotator_country
|
245 |
-
dtype: string
|
246 |
-
- name: annotator_title
|
247 |
-
dtype: string
|
248 |
-
- name: Link to digitised book
|
249 |
-
dtype: string
|
250 |
-
- name: annotated
|
251 |
-
dtype: bool
|
252 |
-
- name: Type of resource
|
253 |
-
dtype:
|
254 |
-
class_label:
|
255 |
-
names:
|
256 |
-
0: Monograph
|
257 |
-
1: Serial
|
258 |
-
2: Monographic component part
|
259 |
-
- name: created_at
|
260 |
-
dtype: string
|
261 |
-
- name: annotator_genre
|
262 |
-
dtype: string
|
263 |
-
splits:
|
264 |
-
- name: train
|
265 |
-
num_bytes: 27518816
|
266 |
-
num_examples: 55343
|
267 |
-
download_size: 20111420
|
268 |
-
dataset_size: 27518816
|
269 |
-
---
|
270 |
-
|
271 |
-
# Dataset Card for blbooksgenre
|
272 |
-
|
273 |
-
## Table of Contents
|
274 |
-
|
275 |
-
- [Dataset Card for blbooksgenre](#dataset-card-for-blbooksgenre)
|
276 |
-
- [Table of Contents](#table-of-contents)
|
277 |
-
- [Dataset Description](#dataset-description)
|
278 |
-
- [Dataset Summary](#dataset-summary)
|
279 |
-
- [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
|
280 |
-
- [Supervised tasks](#supervised-tasks)
|
281 |
-
- [Languages](#languages)
|
282 |
-
- [Dataset Structure](#dataset-structure)
|
283 |
-
- [Data Instances](#data-instances)
|
284 |
-
- [Data Fields](#data-fields)
|
285 |
-
- [Data Splits](#data-splits)
|
286 |
-
- [Dataset Creation](#dataset-creation)
|
287 |
-
- [Curation Rationale](#curation-rationale)
|
288 |
-
- [Source Data](#source-data)
|
289 |
-
- [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
|
290 |
-
- [Who are the source language producers?](#who-are-the-source-language-producers)
|
291 |
-
- [Annotations](#annotations)
|
292 |
-
- [Annotation process](#annotation-process)
|
293 |
-
- [Who are the annotators?](#who-are-the-annotators)
|
294 |
-
- [Personal and Sensitive Information](#personal-and-sensitive-information)
|
295 |
-
- [Considerations for Using the Data](#considerations-for-using-the-data)
|
296 |
-
- [Social Impact of Dataset](#social-impact-of-dataset)
|
297 |
-
- [Discussion of Biases](#discussion-of-biases)
|
298 |
-
- [Colonialism](#colonialism)
|
299 |
-
- [Other Known Limitations](#other-known-limitations)
|
300 |
-
- [Additional Information](#additional-information)
|
301 |
-
- [Dataset Curators](#dataset-curators)
|
302 |
-
- [Licensing Information](#licensing-information)
|
303 |
-
- [Citation Information](#citation-information)
|
304 |
-
- [Contributions](#contributions)
|
305 |
-
|
306 |
-
## Dataset Description
|
307 |
-
|
308 |
-
- **Homepage:**: [https://doi.org/10.23636/BKHQ-0312](https://doi.org/10.23636/BKHQ-0312)
|
309 |
-
- **Repository:** [https://doi.org/10.23636/BKHQ-0312](https://doi.org/10.23636/BKHQ-0312)
|
310 |
-
- **Paper:**
|
311 |
-
- **Leaderboard:**
|
312 |
-
- **Point of Contact:**
|
313 |
-
|
314 |
-
### Dataset Summary
|
315 |
-
|
316 |
-
This dataset consists of metadata relating to books [digitised by the British Library in partnership with Microsoft](https://www.bl.uk/collection-guides/google-books-digitised-printed-heritage). Some of this metadata was exported from the British Library catalogue whilst others was generated as part of a crowdsourcing project. The text of this book and other metadata can be found on the [date.bl](https://data.bl.uk/bl_labs_datasets/#3) website.
|
317 |
-
|
318 |
-
The majority of the books in this collection were published in the 18th and 19th Century but the collection also includes a smaller number of books from earlier periods. Items within this collection cover a wide range of subject areas including geography, philosophy, history, poetry and literature and are published in a variety of languages.
|
319 |
-
|
320 |
-
For the subsection of the data which contains additional crowsourced annotations the date of publication breakdown is as follows:
|
321 |
-
|
322 |
-
| | Date of publication |
|
323 |
-
| ---- | ------------------- |
|
324 |
-
| 1630 | 8 |
|
325 |
-
| 1690 | 4 |
|
326 |
-
| 1760 | 10 |
|
327 |
-
| 1770 | 5 |
|
328 |
-
| 1780 | 5 |
|
329 |
-
| 1790 | 18 |
|
330 |
-
| 1800 | 45 |
|
331 |
-
| 1810 | 96 |
|
332 |
-
| 1820 | 152 |
|
333 |
-
| 1830 | 182 |
|
334 |
-
| 1840 | 259 |
|
335 |
-
| 1850 | 400 |
|
336 |
-
| 1860 | 377 |
|
337 |
-
| 1870 | 548 |
|
338 |
-
| 1880 | 776 |
|
339 |
-
| 1890 | 1484 |
|
340 |
-
| 1900 | 17 |
|
341 |
-
| 1910 | 1 |
|
342 |
-
| 1970 | 1 |
|
343 |
-
|
344 |
-
[More Information Needed]
|
345 |
-
|
346 |
-
|
347 |
-
### Supported Tasks and Leaderboards
|
348 |
-
|
349 |
-
The digitised books collection which this dataset describes has been used in a variety of digital history and humanities projects since being published.
|
350 |
-
|
351 |
-
This dataset is suitable for a variety of unsupervised tasks and for a 'genre classification task'.
|
352 |
-
|
353 |
-
#### Supervised tasks
|
354 |
-
|
355 |
-
The main possible use case for this dataset is to develop and evaluate 'genre classification' models. The dataset includes human generated labels for whether a book is 'fiction' or 'non-fiction'. This has been used to train models for genre classifcation which predict whether a book is 'fiction' or 'non-fiction' based on its title.
|
356 |
-
|
357 |
-
### Languages
|
358 |
-
|
359 |
-
[More Information Needed]
|
360 |
-
|
361 |
-
## Dataset Structure
|
362 |
-
|
363 |
-
The dataset currently has three configurations intended to support a range of tasks for which this dataset could be used for:
|
364 |
-
|
365 |
-
- `title_genre_classifiction` : this creates a de-duplicated version of the dataset with the `BL record`, `title` and `label`.
|
366 |
-
- `annotated_raw`: This version of the dataset includes all fields from the original dataset which are annotated. This includes duplication from different annotators"
|
367 |
-
- `raw`: This version of the dataset includes all the data from the original data including data without annotations.
|
368 |
-
|
369 |
-
### Data Instances
|
370 |
-
|
371 |
-
An example data instance from the `title_genre_classifiction` config:
|
372 |
-
|
373 |
-
```python
|
374 |
-
{'BL record ID': '014603046',
|
375 |
-
'title': 'The Canadian farmer. A missionary incident [Signed: W. J. H. Y, i.e. William J. H. Yates.]',
|
376 |
-
'label': 0}
|
377 |
-
```
|
378 |
-
|
379 |
-
An example data instance from the `annotated_raw` config:
|
380 |
-
|
381 |
-
```python
|
382 |
-
{'BL record ID': '014603046',
|
383 |
-
'Name': 'Yates, William Joseph H.',
|
384 |
-
'Dates associated with name': '',
|
385 |
-
'Type of name': 'person',
|
386 |
-
'Role': '',
|
387 |
-
'All names': ['Yates, William Joseph H. [person] ', ' Y, W. J. H. [person]'],
|
388 |
-
'Title': 'The Canadian farmer. A missionary incident [Signed: W. J. H. Y, i.e. William J. H. Yates.]',
|
389 |
-
'Variant titles': '',
|
390 |
-
'Series title': '',
|
391 |
-
'Number within series': '',
|
392 |
-
'Country of publication': ['England'],
|
393 |
-
'Place of publication': ['London'],
|
394 |
-
'Publisher': '',
|
395 |
-
'Date of publication': '1879',
|
396 |
-
'Edition': '',
|
397 |
-
'Physical description': 'pages not numbered, 21 cm',
|
398 |
-
'Dewey classification': '',
|
399 |
-
'BL shelfmark': 'Digital Store 11601.f.36. (1.)',
|
400 |
-
'Topics': '',
|
401 |
-
'Genre': '',
|
402 |
-
'Languages': ['English'],
|
403 |
-
'Notes': 'In verse',
|
404 |
-
'BL record ID for physical resource': '004079262',
|
405 |
-
'classification_id': '267476823.0',
|
406 |
-
'user_id': '15.0',
|
407 |
-
'subject_ids': '44369003.0',
|
408 |
-
'annotator_date_pub': '1879',
|
409 |
-
'annotator_normalised_date_pub': '1879',
|
410 |
-
'annotator_edition_statement': 'NONE',
|
411 |
-
'annotator_FAST_genre_terms': '655 7 ‡aPoetry‡2fast‡0(OCoLC)fst01423828',
|
412 |
-
'annotator_FAST_subject_terms': '60007 ‡aAlice,‡cGrand Duchess, consort of Ludwig IV, Grand Duke of Hesse-Darmstadt,‡d1843-1878‡2fast‡0(OCoLC)fst00093827',
|
413 |
-
'annotator_comments': '',
|
414 |
-
'annotator_main_language': '',
|
415 |
-
'annotator_other_languages_summaries': 'No',
|
416 |
-
'annotator_summaries_language': '',
|
417 |
-
'annotator_translation': 'No',
|
418 |
-
'annotator_original_language': '',
|
419 |
-
'annotator_publisher': 'NONE',
|
420 |
-
'annotator_place_pub': 'London',
|
421 |
-
'annotator_country': 'enk',
|
422 |
-
'annotator_title': 'The Canadian farmer. A missionary incident [Signed: W. J. H. Y, i.e. William J. H. Yates.]',
|
423 |
-
'Link to digitised book': 'http://access.bl.uk/item/viewer/ark:/81055/vdc_00000002842E',
|
424 |
-
'annotated': True,
|
425 |
-
'Type of resource': 0,
|
426 |
-
'created_at': datetime.datetime(2020, 8, 11, 14, 30, 33),
|
427 |
-
'annotator_genre': 0}
|
428 |
-
```
|
429 |
-
|
430 |
-
### Data Fields
|
431 |
-
|
432 |
-
The data fields differ slightly between configs. All possible fields for the `annotated_raw` config are listed below. For the `raw` version of the dataset datatypes are usually string to avoid errors when processing missing values.
|
433 |
-
|
434 |
-
- `BL record ID`: an internal ID used by the British Library, this can be useful for linking this data to other BL collections.
|
435 |
-
- `Name`: name associated with the item (usually author)
|
436 |
-
- `Dates associated with name`: dates associated with above e.g. DOB
|
437 |
-
- `Type of name`: whether `Name` is a person or an organization etc.
|
438 |
-
- `Role`: i.e. whether `Name` is `author`, `publisher` etc.
|
439 |
-
- `All names`: a fuller list of names associated with the item.
|
440 |
-
- `Title`: The title of the work
|
441 |
-
- `Variant titles`
|
442 |
-
- `Series title`
|
443 |
-
- `Number within series`
|
444 |
-
- `Country of publication`: encoded as a list of countries listed in the metadata
|
445 |
-
- `Place of publication`: encoded as a list of places listed in the metadata
|
446 |
-
- `Publisher`
|
447 |
-
- `Date of publication`: this is encoded as a string since this field can include data ranges i.e.`1850-1855`.
|
448 |
-
- `Edition`
|
449 |
-
- `Physical description`: encoded as a string since the format of this field varies
|
450 |
-
- `Dewey classification`
|
451 |
-
- `BL shelfmark`: a British Library shelf mark
|
452 |
-
- `Topics`: topics included in the catalogue record
|
453 |
-
- `Genre` the genre information included in the original catalogue record note that this is often missing
|
454 |
-
- Languages`; encoded as a list of languages
|
455 |
-
- `Notes`: notes from the catalogue record
|
456 |
-
- `BL record ID for physical resource`
|
457 |
-
|
458 |
-
The following fields are all generated via the crowdsourcing task (discussed in more detail below)
|
459 |
-
|
460 |
-
- `classification_id`: ID for the classification in the annotation task
|
461 |
-
- `user_id` ID for the annotator
|
462 |
-
- `subject_ids`: internal annotation task ID
|
463 |
-
- `annotator_date_pub`: an updated publication data
|
464 |
-
- `annotator_normalised_date_pub`: normalized version of the above
|
465 |
-
- `annotator_edition_statement` updated edition
|
466 |
-
- `annotator_FAST_genre_terms`: [FAST classification genre terms](https://www.oclc.org/research/areas/data-science/fast.html)
|
467 |
-
- `annotator_FAST_subject_terms`: [FAST subject terms](https://www.oclc.org/research/areas/data-science/fast.html)
|
468 |
-
- `annotator_comments`: free form comments
|
469 |
-
- `annotator_main_language`
|
470 |
-
- `annotator_other_languages_summaries`
|
471 |
-
- `'annotator_summaries_language`
|
472 |
-
- `annotator_translation`
|
473 |
-
- `annotator_original_language`
|
474 |
-
- `annotator_publisher`
|
475 |
-
- `annotator_place_pub`
|
476 |
-
- `annotator_country`
|
477 |
-
- `annotator_title`
|
478 |
-
- `Link to digitised book`
|
479 |
-
- `annotated`: `bool` flag to indicate if row has annotations or not
|
480 |
-
- `created_at`: when the annotation was created
|
481 |
-
- `annotator_genre`: the updated annotation for the `genre` of the book.
|
482 |
-
|
483 |
-
Finally the `label` field of the `title_genre_classifiction` configuration is a class label with values 0 (Fiction) or 1 (Non-fiction).
|
484 |
-
|
485 |
-
[More Information Needed]
|
486 |
-
|
487 |
-
### Data Splits
|
488 |
-
|
489 |
-
This dataset contains a single split `train`.
|
490 |
-
|
491 |
-
## Dataset Creation
|
492 |
-
|
493 |
-
**Note** this section is a work in progress.
|
494 |
-
|
495 |
-
### Curation Rationale
|
496 |
-
|
497 |
-
The books in this collection were digitised as part of a project partnership between the British Library and Microsoft. [Mass digitisation](https://en.wikipedia.org/wiki/Category:Mass_digitization) i.e. projects where there is a goal to quickly digitise large volumes of materials shape the selection of materials to include in a number of ways. Some consideratoins which are often involved in the decision of whether to include items for digitization include (but are not limited to):
|
498 |
-
|
499 |
-
- copyright status
|
500 |
-
- preservation needs- the size of an item, very large and very small items are often hard to digitize quickly
|
501 |
-
|
502 |
-
These criteria can have knock-on effects on the makeup of a collection. For example systematically excluding large books may result in some types of book content not being digitized. Large volumes are likely to be correlated to content to at least some extent so excluding them from digitization will mean that material is under represented. Similarly copyright status is often (but not only) determined by publication data. This can often lead to a rapid fall in the number of items in a collection after a certain cut-off date.
|
503 |
-
|
504 |
-
All of the above is largely to make clear that this collection was not curated with the aim of creating a representative sample of the British Library's holdings. Some material will be over-represented and other under-represented. Similarly, the collection should not be considered a representative sample of what was published across the time period covered by the dataset (nor that that the relative proportions of the data for each time period represent a proportional sample of publications from that period).
|
505 |
-
|
506 |
-
[More Information Needed]
|
507 |
-
|
508 |
-
### Source Data
|
509 |
-
|
510 |
-
The original source data (physical items) includes a variety of resources (predominantly monographs) held by the [British Library](bl.uk/](https://bl.uk/). The British Library is a [Legal Deposit](https://www.bl.uk/legal-deposit/about-legal-deposit) library. "Legal deposit requires publishers to provide a copy of every work they publish in the UK to the British Library. It's existed in English law since 1662."[source](https://www.bl.uk/legal-deposit/about-legal-deposit).
|
511 |
-
|
512 |
-
[More Information Needed]
|
513 |
-
|
514 |
-
#### Initial Data Collection and Normalization
|
515 |
-
|
516 |
-
This version of the dataset was created partially from data exported from British Library catalogue records and partially via data generated from a crowdsourcing task involving British Library staff.
|
517 |
-
|
518 |
-
#### Who are the source language producers?
|
519 |
-
|
520 |
-
[More Information Needed]
|
521 |
-
|
522 |
-
### Annotations
|
523 |
-
|
524 |
-
The data does includes metadata associated with the books these are produced by British Library staff. The additional annotations were carried out during 2020 as part of an internal crowdsourcing task.
|
525 |
-
|
526 |
-
#### Annotation process
|
527 |
-
|
528 |
-
New annotations were produced via a crowdsourcing tasks. Annotators have the option to pick titles from a particular language subset from the broader digitized 19th century books collection. As a result the annotations are not random and overrepresent some languages.
|
529 |
-
|
530 |
-
[More Information Needed]
|
531 |
-
|
532 |
-
#### Who are the annotators?
|
533 |
-
|
534 |
-
Staff working at the British Library. Most of these staff work with metadata as part of their jobs and so could be considered expert annotators.
|
535 |
-
|
536 |
-
[More Information Needed]
|
537 |
-
|
538 |
-
### Personal and Sensitive Information
|
539 |
-
|
540 |
-
[More Information Needed]
|
541 |
-
|
542 |
-
## Considerations for Using the Data
|
543 |
-
|
544 |
-
There a range of considerations around using the data. These include the representativeness of the dataset, the bias towards particular languages etc.
|
545 |
-
|
546 |
-
It is also important to note that library metadata is not static. The metadata held in library catalogues is updated and changed over time for a variety of reasons.
|
547 |
-
|
548 |
-
The way in which different institutions catalogue items also varies. As a result it is important to evaluate the performance of any models trained on this data before applying to a new collection.
|
549 |
-
|
550 |
-
[More Information Needed]
|
551 |
-
|
552 |
-
### Social Impact of Dataset
|
553 |
-
|
554 |
-
[More Information Needed]
|
555 |
-
|
556 |
-
### Discussion of Biases
|
557 |
-
|
558 |
-
The text in this collection is derived from historic text. As a result the text will reflect to social beliefs and attitudes of this time period. The titles of the book give some sense of their content. Examples of book titles which appear in the data (these are randomly sampled from all titles):
|
559 |
-
|
560 |
-
- 'Rhymes and Dreams, Legends of Pendle Forest, and other poems',
|
561 |
-
- "Précis of Information concerning the Zulu Country, with a map. Prepared in the Intelligence Branch of the Quarter-Master-General's Department, Horse Guards, War Office, etc",
|
562 |
-
- 'The fan. A poem',
|
563 |
-
- 'Grif; a story of Australian Life',
|
564 |
-
- 'Calypso; a masque: in three acts, etc',
|
565 |
-
- 'Tales Uncle told [With illustrative woodcuts.]',
|
566 |
-
- 'Questings',
|
567 |
-
- 'Home Life on an Ostrich Farm. With ... illustrations',
|
568 |
-
- 'Bulgarya i Bulgarowie',
|
569 |
-
- 'Εἰς τα βαθη της Ἀφρικης [In darkest Africa.] ... Μεταφρασις Γεωρ. Σ. Βουτσινα, etc',
|
570 |
-
- 'The Corsair, a tale',
|
571 |
-
'Poems ... With notes [With a portrait.]',
|
572 |
-
- 'Report of the Librarian for the year 1898 (1899, 1901, 1909)',
|
573 |
-
- "The World of Thought. A novel. By the author of 'Before I began to speak.'",
|
574 |
-
- 'Amleto; tragedia ... recata in versi italiani da M. Leoni, etc']
|
575 |
-
|
576 |
-
Whilst using titles alone, is obviously insufficient to integrate bias in this collection it gives some insight into the topics covered by books in the corpus. Further looking into the tiles highlight some particular types of bias we might find in the collection. This should in no way be considered an exhaustive list.
|
577 |
-
|
578 |
-
#### Colonialism
|
579 |
-
|
580 |
-
We can see even in the above random sample of titles examples of colonial attitudes. We can try and interrogate this further by searching for the name of countries which were part of the British Empire at the time many of these books were published.
|
581 |
-
|
582 |
-
Searching for the string `India` in the titles and randomly sampling 10 titles returns:
|
583 |
-
|
584 |
-
- "Travels in India in the Seventeenth Century: by Sir Thomas Roe and Dr. John Fryer. Reprinted from the 'Calcutta Weekly Englishman.'",
|
585 |
-
- 'A Winter in India and Malaysia among the Methodist Missions',
|
586 |
-
- "The Tourist's Guide to all the principal stations on the railways of Northern India [By W. W.] ... Fifth edition",
|
587 |
-
- 'Records of Sport and Military Life in Western India ... With an introduction by ... G. B. Malleson',
|
588 |
-
- "Lakhmi, the Rájpút's Bride. A tale of Gujarát in Western India [A poem.]",
|
589 |
-
- 'The West India Commonplace Book: compiled from parliamentary and official documents; shewing the interest of Great Britain in its Sugar Colonies',
|
590 |
-
- "From Tonkin to India : by the sources of the Irawadi, January '95-January '96",
|
591 |
-
- 'Case of the Ameers of Sinde : speeches of Mr. John Sullivan, and Captain William Eastwick, at a special court held at the India House, ... 26th January, 1844',
|
592 |
-
- 'The Andaman Islands; their colonization, etc. A correspondence addressed to the India Office',
|
593 |
-
- 'Ancient India as described by Ptolemy; being a translation of the chapters which describe India and Eastern Asia in the treatise on Geography written by Klaudios Ptolemaios ... with introduction, commentary, map of India according to Ptolemy, and ... index, by J. W. McCrindle']
|
594 |
-
|
595 |
-
Searching form the string `Africa` in the titles and randomly sampling 10 titles returns:
|
596 |
-
|
597 |
-
- ['De Benguella ás Terras de Iácca. Descripção de uma viagem na Africa Central e Occidental ... Expedição organisada nos annos de 1877-1880. Edição illustrada',
|
598 |
-
- 'To the New Geographical Society of Edinburgh [An address on Africa by H. M. Stanley.]',
|
599 |
-
- 'Diamonds and Gold in South Africa ... With maps, etc',
|
600 |
-
- 'Missionary Travels and Researches in South Africa ... With notes by F. S. Arnot. With map and illustrations. New edition',
|
601 |
-
- 'A Narrative of a Visit to the Mauritius and South Africa ... Illustrated by two maps, sixteen etchings and twenty-eight wood-cuts',
|
602 |
-
- 'Side Lights on South Africa ... With a map, etc',
|
603 |
-
- 'My Second Journey through Equatorial Africa ... in ... 1886 and 1887 ... Translated ... by M. J. A. Bergmann. With a map ... and ... illustrations, etc',
|
604 |
-
- 'Missionary Travels and Researches in South Africa ... With portrait and fullpage illustrations',
|
605 |
-
- '[African sketches.] Narrative of a residence in South Africa ... A new edition. To which is prefixed a biographical sketch of the author by J. Conder',
|
606 |
-
- 'Lake Ngami; or, Explorations and discoveries during four years wandering in the wilds of South Western Africa ... With a map, and numerous illustrations, etc']
|
607 |
-
|
608 |
-
Whilst this dataset doesn't include the underlying text it is important to consider the potential attitudes represented in the title of the books, or the full text if you are using this dataset in conjunction with the full text.
|
609 |
-
|
610 |
-
[More Information Needed]
|
611 |
-
|
612 |
-
### Other Known Limitations
|
613 |
-
|
614 |
-
[More Information Needed]
|
615 |
-
|
616 |
-
## Additional Information
|
617 |
-
|
618 |
-
### Dataset Curators
|
619 |
-
|
620 |
-
[More Information Needed]
|
621 |
-
|
622 |
-
### Licensing Information
|
623 |
-
|
624 |
-
The books are licensed under the [CC Public Domain Mark 1.0](https://creativecommons.org/publicdomain/mark/1.0/) license.
|
625 |
-
|
626 |
-
### Citation Information
|
627 |
-
|
628 |
-
```bibtex
|
629 |
-
@misc{british library_genre,
|
630 |
-
title={ 19th Century Books - metadata with additional crowdsourced annotations},
|
631 |
-
url={https://doi.org/10.23636/BKHQ-0312},
|
632 |
-
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},
|
633 |
-
year={2021}}
|
634 |
-
```
|
635 |
-
|
636 |
-
### Contributions
|
637 |
-
|
638 |
-
Thanks to [@davanstrien](https://github.com/davanstrien) for adding this dataset.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
annotated_raw/blbooksgenre-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:62caf6749944e653807cc961b89db028f7f894697295009db84d25246f057719
|
3 |
+
size 806417
|
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 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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}}
|
|
|
|
raw/blbooksgenre-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:5fb2652129b8de8b9ed3592dee66a71fb168393cdfd690d25b34dd132674ff65
|
3 |
+
size 9208983
|
title_genre_classifiction/blbooksgenre-train.parquet
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b110ec188c033168f9dfa3a9974fcba3a2d0a69d462026bf45d97a7df59f5ad5
|
3 |
+
size 120049
|