davanstrien HF Staff commited on
Commit
1a18ad3
·
verified ·
1 Parent(s): 0d85c3e

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +89 -41
README.md CHANGED
@@ -1,43 +1,91 @@
1
  ---
2
- dataset_info:
3
- features:
4
- - name: text
5
- dtype: string
6
- - name: mean_ocr
7
- dtype: float64
8
- - name: std_ocr
9
- dtype: float64
10
- - name: title
11
- dtype: string
12
- - name: date
13
- dtype: string
14
- - name: language
15
- list: string
16
- - name: item_iiif_url
17
- dtype: string
18
- - name: multi_language
19
- dtype: bool
20
- - name: issue_uri
21
- dtype: string
22
- - name: id
23
- dtype: string
24
- - name: image
25
- dtype: image
26
- - name: download_status
27
- dtype: string
28
- - name: download_retries
29
- dtype: int64
30
- - name: download_url
31
- dtype: string
32
- splits:
33
- - name: train
34
- num_bytes: 284338094
35
- num_examples: 2000
36
- download_size: 278241602
37
- dataset_size: 284338094
38
- configs:
39
- - config_name: default
40
- data_files:
41
- - split: train
42
- path: data/train-*
43
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ task_categories:
3
+ - image-to-text
4
+ - text-extraction
5
+ - document-understanding
6
+ language:
7
+ - multilingual
8
+ tags:
9
+ - newspapers
10
+ - historical-documents
11
+ - ocr
12
+ - iiif
13
+ - europeana
14
+ size_categories:
15
+ - n<1K
16
+ source_datasets:
17
+ - biglam/europeana_newspapers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ---
19
+
20
+ # Europeana Newspapers Sample Dataset
21
+
22
+ ## Dataset Description
23
+
24
+ This is a curated sample from the Europeana newspapers dataset, prepared for Vision-Language Model (VLM) experiments, particularly for testing structured metadata extraction from historical newspaper pages.
25
+
26
+ ### Dataset Sources
27
+
28
+ - **Original Dataset:** [biglam/europeana_newspapers](https://huggingface.co/datasets/biglam/europeana_newspapers)
29
+ - **Source:** Europeana digital library
30
+ - **License:** See original dataset
31
+
32
+ ## Dataset Structure
33
+
34
+ Each sample contains a newspaper page image downloaded via IIIF along with associated metadata.
35
+
36
+ ### Data Fields
37
+
38
+ - `image`: The newspaper page image (PIL Image)
39
+ - `date`: Publication date (ground truth for extraction tasks)
40
+ - `title`: Newspaper title
41
+ - `issue`: Issue number
42
+ - `iiif_url`: Original IIIF image URL
43
+ - `text`: OCR text content
44
+ - `mean_ocr`: OCR quality score (0-1)
45
+ - `language`: Document language
46
+ - `issue_uri`: Unique identifier
47
+ - `download_status`: Status of image download
48
+ - `download_retries`: Number of retry attempts needed
49
+
50
+ ## Use Cases
51
+
52
+ This dataset is ideal for:
53
+ - Testing VLM metadata extraction capabilities
54
+ - Training models with GRPO for structured information extraction
55
+ - Evaluating OCR and document understanding models
56
+ - Benchmarking on historical newspaper understanding
57
+
58
+ ## Example Usage
59
+
60
+ ```python
61
+ from datasets import load_dataset
62
+
63
+ # Load the dataset
64
+ dataset = load_dataset("your-username/europeana-newspapers-sample")
65
+
66
+ # Access a sample
67
+ sample = dataset['train'][0]
68
+ image = sample['image'] # PIL Image
69
+ date = sample['date'] # Ground truth date
70
+ title = sample['title'] # Ground truth title
71
+ ```
72
+
73
+ ## Processing Notes
74
+
75
+ - Images were downloaded using IIIF protocol with automatic fallback to lower resolutions
76
+ - Failed downloads were excluded from the final dataset
77
+ - All images are converted to RGB format
78
+ - Dataset was created using async downloading for efficiency
79
+
80
+ ## Citation
81
+
82
+ If you use this dataset, please cite the original Europeana newspapers dataset:
83
+
84
+ ```bibtex
85
+ @dataset{europeana_newspapers,
86
+ title={Europeana Newspapers Dataset},
87
+ author={BigLAM},
88
+ year={2024},
89
+ publisher={Hugging Face}
90
+ }
91
+ ```