Datasets:
License:
license: apache-2.0 | |
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_both = load_dataset("cmarkea/aftdb", "figure+table", streaming=True) | |
``` | |
**This is the default configuration.** |