File size: 3,100 Bytes
c73372a
 
 
 
 
 
 
 
 
2a55caf
c73372a
2a55caf
 
c73372a
 
 
 
 
2a55caf
 
 
 
 
b740076
 
 
e9d7d3a
 
 
 
c73372a
4cad2b6
2a55caf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4f4507f
 
2a55caf
 
 
 
 
 
 
 
 
4f4507f
2a55caf
 
 
 
 
 
 
 
 
 
 
c73372a
32319a3
2a55caf
 
 
 
 
 
 
 
 
 
 
b740076
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
---
dataset_info:
  features:
  - name: image
    dtype: image
  - name: caption
    dtype: string
  splits:
  - name: train
    num_bytes: 10341164216.808
    num_examples: 11707
  download_size: 11002607252
  dataset_size: 10341164216.808
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
language:
- da
pretty_name: Nordjylland News - Image caption dataset
size_categories:
- 10K<n<100K
license: apache-2.0
task_categories:
- image-to-text
- zero-shot-image-classification
- feature-extraction
task_ids:
- image-captioning
---
# Dataset Card for "nordjylland-news-image-captioning"

## Dataset Description

- **Point of Contact:** [Oliver Kinch](mailto:oliver.kinch@alexandra.dk)
- **Size of dataset:** 11 GB

### Dataset Summary

This dataset is a collection of image-caption pairs from the Danish newspaper [TV2 Nord](https://www.tv2nord.dk/). 

### Supported Tasks and Leaderboards

Image captioning is the intended task for this dataset. No leaderboard is active at this point.

### Languages

The dataset is available in Danish (`da`).

## Dataset Structure

An example from the dataset looks as follows.

```
{
  "file_name": "1.jpg",
  "caption": "Bruno Sørensen og Poul Erik Pedersen er ofte at finde i Fyensgade Centret."
}
```

### Data Fields

- `file_name`: a `string` giving the file name of the image.
- `caption`: a `string` feature.

### Dataset Statistics

#### Number of samples

11707

#### Image sizes

All images in the dataset are in RGB format, but they exhibit varying resolutions:

- Width ranges from 73 to 11,830 pixels.

- Height ranges from 38 to 8,268 pixels.

The side length of a square image with the same number of pixels as an image with height \\(h \\) and width \\(w \\) is approximately given as

\\( x = \text{int}({{\sqrt{h \cdot w}})} \\).

Plotting the distribution of \\( x \\) gives an insight into the sizes of the images in the dataset.


![image_size_distribution](https://cdn-uploads.huggingface.co/production/uploads/61e0713ac50610f535ed2c88/1kISXJewxumXg1vJTxm6U.png)

#### Caption Length Distribution

![caption_length_distribution.png](https://cdn-uploads.huggingface.co/production/uploads/61e0713ac50610f535ed2c88/KufgJKKzGdXpfJgdHNxax.png)


## Potential Dataset Issues
- There are 14 images with the caption "Arkivfoto".

- There are 37 images with captions consisting solely of a source reference, such as "Kilde: \<name of source\>".

You might want to consider excluding these samples from the model training process.


## Dataset Creation

### Curation Rationale

There are not many large-scale image-captioning datasets in Danish.

### Source Data

The dataset has been collected through the TV2 Nord API, which can be accessed [here](https://developer.bazo.dk/#876ab6f9-e057-43e3-897a-1563de34397e).

## Additional Information

### Dataset Curators

[Oliver Kinch](https://huggingface.co/oliverkinch) from the [The Alexandra
Institute](https://alexandra.dk/)

### Licensing Information

The dataset is licensed under the [CC0
license](https://creativecommons.org/share-your-work/public-domain/cc0/).