File size: 3,932 Bytes
20cd952
 
4b8c0d2
 
 
 
b02e11e
4b8c0d2
 
20cd952
8f1679a
b02e11e
8f1679a
4b8c0d2
 
8f1679a
 
 
 
 
7f964e0
 
8f1679a
 
 
 
 
 
 
 
 
 
 
 
 
d41cb84
8f1679a
b02e11e
 
 
 
d3438e0
 
 
43f2ee9
d3438e0
 
 
 
 
 
 
 
 
 
767c4f3
 
 
 
 
 
 
 
 
 
 
 
 
 
1f10430
 
 
 
 
 
 
 
 
 
 
 
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
---
license: apache-2.0
language:
  - fr
  - en
tags:
  - arXiv
  - multimodal
  - document-type objects
---

We present the **Arxiv Figures & Tables Database (AFTdb)**, which consists of an aggregation of figures and tables from scientific articles sourced from the arXiv platform.

The purpose of this dataset is to train multimodal
models specialized in images of document-type objects (graphs, functional diagrams, tables, etc.), rather than photographic-type images. The idea is that a model trained on this type of data will be more coherent within the context of document corpora than a model trained on pictorial compositions. To establish a connection between the two modalities (image and text), captions for each object are also provided. As captions can sometimes be very brief, the article's summary is also included to add context to the document object if necessary.

For this reason, a corpus of scientific articles was prioritized. Due to the scientific rigor demanded, each document-type object is systematically accompanied by a caption (similar to captions for pictorial images on platforms like Flickr, for example).

The database is divided into two types of document objects: figures and tables. For the table part, it is possible to approach two different types of learning. The first, similar to figures, associates the image with the caption. However, in the data field, the LaTeX source code of the table is also provided. An objective can be to take an image of a table and convert it into text using this source code.

Loading the database
--------------------

The figure part is relatively substantial, and it is advisable to use the dataset in streaming mode:
```python
aftdb_figure = load_dataset("cmarkea/aftdb", "figure", streaming=True)
```

The table part is less substantial and can be downloaded locally directly:
```python
aftdb_table = load_dataset("cmarkea/aftdb", "table")
```

Both categories are compatible, and it is possible to load both types simultaneously:
```python
aftdb = load_dataset("cmarkea/aftdb", "figure+table", streaming=True)
```
This is the **default** configuration.

Statistical Description
-----------------------
The descended articles correspond to a portion of the articles that had their last modifications in the year 2023 on the arXiv platform.

| Number of                                 |           |
| -----------------------------------------:|:----------|
| articles                                  | 22,397    |
| authors                                   | 50,000    |
| figures                                   | 157,944   |
| tables                                    | 16,415    |
| total words in English titles             | 229,042   |
| total words in French titles              | 301,607   |
| total words in English abstracts          | 3,765,978 |
| total words in French abstracts           | 4,437,968 |
| total words in English captions           | 7,506,626 |
| total words in French captions            | 8,311,727 |

Field Descriptions
------------------
- **id:** Unique identifier for each observation.
- **paper_id:** Unique arXiv identifier for each article.
- **type:** 'figure' for graphic objects such as graphs, functional diagrams, etc., and 'table' for tables.
- **authors:** Names of the article's authors.
- **categories:** arXiv categories of the article.
- **title:** Title of the article.
- **summary:** Article summary.
- **caption:** Caption of the document-type object.
- **image:** Pillow image of the document-type object.
- **data:** For figures, it represents the filename of the figure; for tables, it is the LaTeX transcription of the table.
- **newcommands:** List containing the LaTeX `newcommands` used in the article.

Citation
--------

```bibtex
@online{DeAFTdb,
  AUTHOR = {Cyrile Delestre},
  URL = {https://huggingface.co/datasets/cmarkea/aftdb},
  YEAR = {2024},
  KEYWORDS = {NLP ; Multimodal}
}
```