Update README.md
Browse files
README.md
CHANGED
|
@@ -1,67 +1,299 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
- name: isbn
|
| 21 |
-
list: string
|
| 22 |
-
- name: subjects
|
| 23 |
-
list: string
|
| 24 |
-
- name: language
|
| 25 |
-
dtype: string
|
| 26 |
-
- name: url_doab_handle
|
| 27 |
-
dtype: string
|
| 28 |
-
- name: url_pdf
|
| 29 |
-
dtype: string
|
| 30 |
-
- name: url_doi
|
| 31 |
-
dtype: 'null'
|
| 32 |
-
- name: url_oapen_viewer
|
| 33 |
-
dtype: 'null'
|
| 34 |
-
- name: url_other
|
| 35 |
-
list: string
|
| 36 |
-
- name: license_type
|
| 37 |
-
dtype: string
|
| 38 |
-
- name: license_url
|
| 39 |
-
dtype: string
|
| 40 |
-
- name: license_version
|
| 41 |
-
dtype: string
|
| 42 |
-
- name: license_text
|
| 43 |
-
dtype: string
|
| 44 |
-
- name: abstract
|
| 45 |
-
dtype: string
|
| 46 |
-
- name: series
|
| 47 |
-
dtype: string
|
| 48 |
-
- name: physical_description
|
| 49 |
-
dtype: string
|
| 50 |
-
- name: raw_marc
|
| 51 |
-
dtype: string
|
| 52 |
-
- name: pdf_path
|
| 53 |
-
dtype: string
|
| 54 |
-
- name: images
|
| 55 |
-
list: image
|
| 56 |
-
splits:
|
| 57 |
-
- name: train
|
| 58 |
-
num_bytes: 7164223000
|
| 59 |
-
num_examples: 9363
|
| 60 |
-
download_size: 6884941842
|
| 61 |
-
dataset_size: 7164223000
|
| 62 |
-
configs:
|
| 63 |
-
- config_name: default
|
| 64 |
-
data_files:
|
| 65 |
-
- split: train
|
| 66 |
-
path: data/train-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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: other
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-to-text
|
| 5 |
+
- image-text-to-text
|
| 6 |
+
tags:
|
| 7 |
+
- metadata-extraction
|
| 8 |
+
- glam
|
| 9 |
+
- MARC21
|
| 10 |
+
- library-science
|
| 11 |
+
size_categories:
|
| 12 |
+
- 1K<n<10K
|
| 13 |
+
language:
|
| 14 |
+
- en
|
| 15 |
+
- de
|
| 16 |
+
- it
|
| 17 |
+
- fr
|
| 18 |
+
- es
|
| 19 |
+
pretty_name: DOAB Open Access Books Metadata Extraction Dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
---
|
| 21 |
+
|
| 22 |
+
# DOAB Open Access Books - Metadata Extraction Dataset
|
| 23 |
+
|
| 24 |
+
## Dataset Description
|
| 25 |
+
|
| 26 |
+
This dataset contains **9,363 open access books** with page images and rich bibliographic metadata extracted from MARC21 records, curated specifically for training and evaluating Vision Language Models (VLMs) on automatic metadata extraction from scholarly monographs.
|
| 27 |
+
|
| 28 |
+
The dataset is derived from the [Penn State ScholarSphere DOAB collection](https://scholarsphere.psu.edu/resources/f917840a-5ee8-4f08-b3b0-e985e2638380) (Directory of Open Access Books), focusing on books with Creative Commons licenses that permit research and machine learning applications.
|
| 29 |
+
|
| 30 |
+
> **Note**: This version contains extracted images from the first few pages of each book to reduce dataset size and facilitate ML applications. Open an issue if a raw version with full PDFs would be of use.
|
| 31 |
+
|
| 32 |
+
### Key Features
|
| 33 |
+
|
| 34 |
+
- **9,363 open access books** with page images and metadata
|
| 35 |
+
- **Page images** extracted from the first few pages of each book
|
| 36 |
+
- **Rich metadata** including title, subtitle, authors, editors, publisher, publication year, ISBN, subjects, abstracts, and language
|
| 37 |
+
- **Full MARC21 records** preserved for comprehensive bibliographic information
|
| 38 |
+
- **License tracking** with specific Creative Commons license types (CC BY, CC BY-NC-ND, etc.) enabling filtering by usage rights
|
| 39 |
+
- **Predominantly CC BY licensed** (71.5%) - most permissive for ML applications
|
| 40 |
+
- **Predominantly English** with some German, Italian, French, and Spanish books
|
| 41 |
+
|
| 42 |
+
### Use Cases
|
| 43 |
+
|
| 44 |
+
This dataset is designed for:
|
| 45 |
+
|
| 46 |
+
1. **Training VLMs** to extract bibliographic metadata from book title pages and front matter
|
| 47 |
+
2. **Evaluating document understanding models** on structured metadata extraction tasks
|
| 48 |
+
3. **Benchmarking VLM performance** against ground-truth MARC21 catalog records
|
| 49 |
+
4. **Developing automated cataloging tools** for libraries and digital repositories
|
| 50 |
+
5. **Research in scholarly communication** and open access publishing patterns
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
## Dataset Structure
|
| 54 |
+
|
| 55 |
+
### Format
|
| 56 |
+
|
| 57 |
+
The dataset contains book metadata with images from the first few pages of each book.
|
| 58 |
+
|
| 59 |
+
### Data Fields
|
| 60 |
+
|
| 61 |
+
Each record contains the following fields:
|
| 62 |
+
|
| 63 |
+
**Core Bibliographic Metadata:**
|
| 64 |
+
|
| 65 |
+
- `record_id` (string): Unique DOAB record identifier
|
| 66 |
+
- `title` (string): Main title of the work
|
| 67 |
+
- `subtitle` (string, nullable): Subtitle if present
|
| 68 |
+
- `statement_of_responsibility` (string, nullable): Statement of responsibility from title field
|
| 69 |
+
- `authors` (list[string], nullable): List of authors
|
| 70 |
+
- `editors` (list[string], nullable): List of editors
|
| 71 |
+
- `publisher` (string): Publisher name
|
| 72 |
+
- `publication_year` (string): Year of publication
|
| 73 |
+
- `isbn` (list[string], nullable): ISBN numbers
|
| 74 |
+
- `language` (string): ISO 639-2/3 language code
|
| 75 |
+
|
| 76 |
+
**Subject and Description:**
|
| 77 |
+
|
| 78 |
+
- `subjects` (list[string], nullable): Subject headings (LCSH, BISAC, keywords)
|
| 79 |
+
- `abstract` (string, nullable): Book description/abstract
|
| 80 |
+
- `series` (string, nullable): Series title if part of a series
|
| 81 |
+
- `physical_description` (string, nullable): Physical details (page count, etc.)
|
| 82 |
+
|
| 83 |
+
**Access and Rights:**
|
| 84 |
+
|
| 85 |
+
- `license_type` (string): Specific Creative Commons license (e.g., "CC BY", "CC BY-NC-ND")
|
| 86 |
+
- `license_url` (string): Full URL to license deed
|
| 87 |
+
- `license_version` (string): License version (e.g., "4.0")
|
| 88 |
+
- `license_text` (string): Original license text from MARC record
|
| 89 |
+
|
| 90 |
+
**URLs:**
|
| 91 |
+
|
| 92 |
+
- `url_doab_handle` (string, nullable): DOAB catalog record URL
|
| 93 |
+
- `url_pdf` (string): Direct PDF download URL
|
| 94 |
+
- `url_doi` (string, nullable): DOI URL if available
|
| 95 |
+
- `url_oapen_viewer` (string, nullable): OAPEN viewer URL
|
| 96 |
+
- `url_other` (list[string]): Other related URLs
|
| 97 |
+
|
| 98 |
+
**Images:**
|
| 99 |
+
|
| 100 |
+
- `images` (list[Image]): Images from the first few pages of the book
|
| 101 |
+
|
| 102 |
+
**Technical:**
|
| 103 |
+
|
| 104 |
+
- `raw_marc` (string): Complete MARC21 record in JSON format preserving all original cataloging information. This field contains the full bibliographic record and can be used for advanced applications requiring access to MARC fields not extracted into the structured metadata fields above.
|
| 105 |
+
|
| 106 |
+
### Data Splits
|
| 107 |
+
|
| 108 |
+
| Split | Records |
|
| 109 |
+
| --------- | --------- |
|
| 110 |
+
| Train | 9,363 |
|
| 111 |
+
| **Total** | **9,363** |
|
| 112 |
+
|
| 113 |
+
### License Distribution
|
| 114 |
+
|
| 115 |
+
The dataset includes books under various Creative Commons licenses, allowing users to filter by usage rights:
|
| 116 |
+
|
| 117 |
+
| License Type | Books | Commercial Use | Derivatives Allowed |
|
| 118 |
+
| ---------------- | --------------- | -------------- | ------------------- |
|
| 119 |
+
| CC BY | 6,693 (71.5%) | ✅ Yes | ✅ Yes |
|
| 120 |
+
| CC BY-NC-ND | 1,046 (11.2%) | ❌ No | ❌ No |
|
| 121 |
+
| CC BY-NC-SA | 879 (9.4%) | ❌ No | ✅ Yes (ShareAlike) |
|
| 122 |
+
| CC BY-NC | 532 (5.7%) | ❌ No | ✅ Yes |
|
| 123 |
+
| CC BY-SA | 147 (1.6%) | ✅ Yes | ✅ Yes (ShareAlike) |
|
| 124 |
+
| CC (Unspecified) | 37 (0.4%) | ⚠️ Varies | ⚠️ Varies |
|
| 125 |
+
| CC BY-ND | 29 (0.3%) | ✅ Yes | ❌ No |
|
| 126 |
+
|
| 127 |
+
**Note:** Filter by `license_type` to ensure compliance with your use case (e.g., use only CC BY for commercial applications).
|
| 128 |
+
|
| 129 |
+
## Loading the Dataset
|
| 130 |
+
|
| 131 |
+
### Basic Loading
|
| 132 |
+
|
| 133 |
+
```python
|
| 134 |
+
from datasets import load_dataset
|
| 135 |
+
|
| 136 |
+
# Load full dataset
|
| 137 |
+
dataset = load_dataset("biglam/doab-metadata-extraction")
|
| 138 |
+
|
| 139 |
+
# Access train split
|
| 140 |
+
train = dataset['train']
|
| 141 |
+
|
| 142 |
+
# View first record
|
| 143 |
+
print(train[0])
|
| 144 |
+
```
|
| 145 |
+
|
| 146 |
+
### Accessing Images and Metadata
|
| 147 |
+
|
| 148 |
+
```python
|
| 149 |
+
# Get a single record
|
| 150 |
+
record = train[0]
|
| 151 |
+
|
| 152 |
+
# Access metadata
|
| 153 |
+
print(f"Title: {record['title']}")
|
| 154 |
+
print(f"Authors: {record['authors']}")
|
| 155 |
+
print(f"Publisher: {record['publisher']}")
|
| 156 |
+
print(f"Abstract: {record['abstract']}")
|
| 157 |
+
print(f"License: {record['license_type']}")
|
| 158 |
+
|
| 159 |
+
# Access page images
|
| 160 |
+
images = record['images'] # List of PIL Images
|
| 161 |
+
print(f"Number of pages: {len(images)}")
|
| 162 |
+
|
| 163 |
+
# Display first page
|
| 164 |
+
images[0].show()
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
### Filtering by License
|
| 168 |
+
|
| 169 |
+
```python
|
| 170 |
+
# Filter to only commercially-usable books (CC BY, CC BY-SA, CC BY-ND)
|
| 171 |
+
commercial_ok = train.filter(
|
| 172 |
+
lambda x: x['license_type'] in ['CC BY', 'CC BY-SA', 'CC BY-ND']
|
| 173 |
+
)
|
| 174 |
+
|
| 175 |
+
# Filter to only most permissive license
|
| 176 |
+
cc_by_only = train.filter(lambda x: x['license_type'] == 'CC BY')
|
| 177 |
+
|
| 178 |
+
# Filter to derivative-allowed licenses
|
| 179 |
+
derivatives_ok = train.filter(
|
| 180 |
+
lambda x: x['license_type'] in ['CC BY', 'CC BY-SA', 'CC BY-NC', 'CC BY-NC-SA']
|
| 181 |
+
)
|
| 182 |
+
```
|
| 183 |
+
|
| 184 |
+
### Filtering by Language
|
| 185 |
+
|
| 186 |
+
```python
|
| 187 |
+
# English books only
|
| 188 |
+
english_books = train.filter(lambda x: x['language'] == 'eng')
|
| 189 |
+
|
| 190 |
+
# Non-English books
|
| 191 |
+
non_english = train.filter(lambda x: x['language'] != 'eng')
|
| 192 |
+
|
| 193 |
+
# Specific languages
|
| 194 |
+
german_books = train.filter(lambda x: x['language'] == 'ger')
|
| 195 |
+
italian_books = train.filter(lambda x: x['language'] == 'ita')
|
| 196 |
+
```
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
## Dataset Creation
|
| 200 |
+
|
| 201 |
+
### Source Data
|
| 202 |
+
|
| 203 |
+
This dataset is derived from the Penn State ScholarSphere collection of DOAB (Directory of Open Access Books) MARC21 records:
|
| 204 |
+
|
| 205 |
+
- **Source**: [Penn State ScholarSphere](https://scholarsphere.psu.edu/resources/f917840a-5ee8-4f08-b3b0-e985e2638380)
|
| 206 |
+
- **Original MARC Records**: 65,307 records with Creative Commons licenses
|
| 207 |
+
- **PDFs with Direct URLs**: 37,673 records
|
| 208 |
+
- **Successfully Downloaded**: ~9,400 PDFs
|
| 209 |
+
- **Dataset Records**: 9,363 books with extracted page images
|
| 210 |
+
|
| 211 |
+
### Processing Pipeline
|
| 212 |
+
|
| 213 |
+
1. **MARC Parsing**: Extracted structured metadata from MARC21 records using `pymarc`
|
| 214 |
+
2. **License Extraction**: Parsed Creative Commons license types from MARC 540 field
|
| 215 |
+
3. **URL Classification**: Categorized URLs into PDF downloads, DOI links, catalog records
|
| 216 |
+
4. **PDF Download**: Asynchronous download with retry logic and resume capability
|
| 217 |
+
5. **Image Extraction**: Extracted first few pages from each PDF as images
|
| 218 |
+
6. **Dataset Preparation**: Organized with metadata and page images
|
| 219 |
+
|
| 220 |
+
### Curation Rationale
|
| 221 |
+
|
| 222 |
+
The dataset focuses on:
|
| 223 |
+
|
| 224 |
+
- Books with **direct PDF download URLs** (not just catalog records)
|
| 225 |
+
- **Creative Commons licenses**
|
| 226 |
+
- **Successfully downloadable PDFs** (quality control through actual downloads)
|
| 227 |
+
- **Professional cataloging metadata** from DOAB/OAPEN library networks
|
| 228 |
+
- **Page images instead of full PDFs** to reduce dataset size while maintaining utility for metadata extraction
|
| 229 |
+
|
| 230 |
+
### Quality Notes
|
| 231 |
+
|
| 232 |
+
- All records include successfully extracted page images
|
| 233 |
+
- MARC metadata is professional library cataloging quality
|
| 234 |
+
- Page images may vary in quality (mix of born-digital PDFs and scanned images)
|
| 235 |
+
- Language distribution reflects DOAB's European academic publishing focus
|
| 236 |
+
|
| 237 |
+
## Limitations and Considerations
|
| 238 |
+
|
| 239 |
+
### Coverage Limitations
|
| 240 |
+
|
| 241 |
+
- **European/Academic Bias**: Strong representation of European academic publishers due to DOAB/OAPEN network
|
| 242 |
+
- **Open Access Only**: Does not represent commercial scholarly publishing
|
| 243 |
+
- **Language Distribution**: Heavily English-dominant; limited representation of other languages
|
| 244 |
+
- **Subject Areas**: Reflects open access publishing patterns (humanities and social sciences more common)
|
| 245 |
+
|
| 246 |
+
### Ethical Considerations
|
| 247 |
+
|
| 248 |
+
- All content is legally published as open access with Creative Commons licenses
|
| 249 |
+
- Users should filter by `license_type` to ensure compliance with their use case
|
| 250 |
+
- Attribution should be provided as per CC license requirements
|
| 251 |
+
- Commercial users should filter to exclude NC (Non-Commercial) licenses
|
| 252 |
+
|
| 253 |
+
## Citation and Attribution
|
| 254 |
+
|
| 255 |
+
### Dataset Citation
|
| 256 |
+
|
| 257 |
+
```bibtex
|
| 258 |
+
@dataset{doab_metadata_extraction_2024,
|
| 259 |
+
title={DOAB Open Access Books - Metadata Extraction Dataset},
|
| 260 |
+
author={van Strien, Daniel},
|
| 261 |
+
year={2024},
|
| 262 |
+
publisher={HuggingFace},
|
| 263 |
+
url={https://huggingface.co/datasets/biglam/doab-metadata-extraction}
|
| 264 |
+
}
|
| 265 |
+
```
|
| 266 |
+
|
| 267 |
+
### Source Data Citation
|
| 268 |
+
|
| 269 |
+
```bibtex
|
| 270 |
+
@dataset{penn_state_doab_2024,
|
| 271 |
+
title={MARC files of DOAB metadata (May 2024)},
|
| 272 |
+
author={{Penn State University Libraries}},
|
| 273 |
+
year={2024},
|
| 274 |
+
publisher={ScholarSphere},
|
| 275 |
+
doi={10.26207/f917-840a},
|
| 276 |
+
url={https://scholarsphere.psu.edu/resources/f917840a-5ee8-4f08-b3b0-e985e2638380}
|
| 277 |
+
}
|
| 278 |
+
```
|
| 279 |
+
|
| 280 |
+
### DOAB Acknowledgment
|
| 281 |
+
|
| 282 |
+
This dataset is built on bibliographic metadata from the [Directory of Open Access Books (DOAB)](https://www.doabooks.org/), a community-driven discovery service for open access books coordinated by OAPEN Foundation.
|
| 283 |
+
|
| 284 |
+
## Additional Resources
|
| 285 |
+
|
| 286 |
+
- **MARC21 Format Documentation**: [Library of Congress](https://www.loc.gov/marc/bibliographic/)
|
| 287 |
+
|
| 288 |
+
## License
|
| 289 |
+
|
| 290 |
+
This dataset contains content under multiple licenses. The metadata and dataset structure are provided as-is, but individual book content retains the original Creative Commons licenses as specified in the `license_type` field. Users must comply with the specific license of each book:
|
| 291 |
+
|
| 292 |
+
- **CC BY**: Free use with attribution
|
| 293 |
+
- **CC BY-NC**: Free use with attribution, non-commercial only
|
| 294 |
+
- **CC BY-ND**: Free use with attribution, no derivatives
|
| 295 |
+
- **CC BY-SA**: Free use with attribution, share-alike
|
| 296 |
+
- **CC BY-NC-ND**: Most restrictive - non-commercial, no derivatives
|
| 297 |
+
- **CC BY-NC-SA**: Non-commercial, share-alike
|
| 298 |
+
|
| 299 |
+
Filter by `license_type` to ensure compliance with your use case.
|