MrtinoRG commited on
Commit
1f405c9
·
verified ·
1 Parent(s): 36e98ff

Overwrite defaults + add visible note

Browse files
Files changed (1) hide show
  1. README.md +155 -30
README.md CHANGED
@@ -1,30 +1,155 @@
1
- ---
2
- license: cc-by-nc-sa-4.0
3
- configs:
4
- - config_name: default
5
- data_files:
6
- - split: train
7
- path: data/train-*
8
- - split: validation
9
- path: data/validation-*
10
- - split: test
11
- path: data/test-*
12
- dataset_info:
13
- features:
14
- - name: text
15
- dtype: string
16
- - name: image
17
- dtype: image
18
- splits:
19
- - name: train
20
- num_bytes: 3375690407.25
21
- num_examples: 90350
22
- - name: validation
23
- num_bytes: 185854656.625
24
- num_examples: 5019
25
- - name: test
26
- num_bytes: 184884997.5
27
- num_examples: 5020
28
- download_size: 3230633440
29
- dataset_size: 3746430061.375
30
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license:
3
+ - cc-by-nc-sa-4.0
4
+ configs:
5
+ - config_name: default
6
+ data_files:
7
+ - split: train
8
+ path: data/train-*
9
+ - split: validation
10
+ path: data/validation-*
11
+ - split: test
12
+ path: data/test-*
13
+ dataset_info:
14
+ features:
15
+ - name: text
16
+ dtype: string
17
+ - name: image
18
+ dtype: image
19
+ splits:
20
+ - name: train
21
+ num_bytes: 3375690407.25
22
+ num_examples: 90350
23
+ - name: validation
24
+ num_bytes: 185854656.625
25
+ num_examples: 5019
26
+ - name: test
27
+ num_bytes: 184884997.5
28
+ num_examples: 5020
29
+ download_size: 3230633440
30
+ dataset_size: 3746430061.375
31
+ annotations_creators:
32
+ - expert-generated
33
+ language_creators:
34
+ - expert-generated
35
+ language:
36
+ - en
37
+ multilinguality:
38
+ - monolingual
39
+ size_categories:
40
+ - 100K<n<1M
41
+ source_datasets:
42
+ - original
43
+ task_categories:
44
+ - image-to-text
45
+ task_ids:
46
+ - image-captioning
47
+ pretty_name: ChemPile-Caption
48
+ tags:
49
+ - chemistry
50
+ - scientific-captioning
51
+ - scientific-image-to-text
52
+ - libretexts-images
53
+ dataset_version: 1.0.0
54
+ dataset_release_date: '2025-05-18'
55
+ dataset_citation: "@article{mirza2025chempile0,\n title = {ChemPile: A 250GB Diverse
56
+ and Curated Dataset for Chemical Foundation Models},\n author = {Adrian Mirza
57
+ and Nawaf Alampara and Martiño Ríos-García and others},\n year = {2025},\n \
58
+ \ journal = {arXiv preprint arXiv:2505.12534}\n}"
59
+ ---
60
+ # ChemPile-Caption
61
+
62
+ <div align="center">
63
+
64
+ ![ChemPile Logo](CHEMPILE_LOGO.png)
65
+
66
+ [![Dataset](https://img.shields.io/badge/🤗%20Hugging%20Face-Dataset-yellow)](https://huggingface.co/datasets/jablonkagroup/chempile-caption)
67
+ [![License: CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-blue.svg)](https://creativecommons.org/licenses/by-nc-sa/4.0/)
68
+ [![Paper](https://img.shields.io/badge/📄-Paper-red)](https://arxiv.org/abs/2505.12534)
69
+ [![Website](https://img.shields.io/badge/🌐-Website-green)](https://chempile.lamalab.org/)
70
+
71
+ *A comprehensive collection of image-caption pairs for chemistry-related visual content*
72
+
73
+ </div>
74
+
75
+ ChemPile-Caption is a dataset designed for image captioning tasks in the field of chemistry. It is part of the ChemPile project, which aims to create a comprehensive collection of chemistry-related data for training language models. This dataset includes a variety of images scraped from LibreTexts related to chemical structures, reactions, and laboratory equipment, along with corresponding captions that describe the content of the images.
76
+
77
+ All the content is made open-source under the license cc-by-nc-sa-4.0, allowing for non-commercial use and adaptation with proper attribution.
78
+
79
+ The origin of the dataset is the LibreTexts project, which provides a wealth of educational resources in chemistry. The images in this dataset are sourced from various LibreTexts pages, ensuring a diverse range of chemical topics and visual representations. To obtain the images, an in house web scraping process was employed, specifically targeting all the books LibreTexts Chemistry. The images were downloaded and stored in a structured format, with each image associated with its corresponding caption and alt text, filtering out any images that did not have a long enough caption or alt text.
80
+
81
+ The dataset is structured into a single simple default configuration, which simplifies the loading and usage of the dataset. The configuration includes the following fields:
82
+
83
+ - text: The alt text plus the caption of the image, providing a detailed description of the image content.
84
+ - image: The image, allowing users to access the visual content directly.
85
+
86
+ Thus, the resulting ChemPile-Caption dataset contains a total of 100K image-caption pairs.
87
+
88
+ ## Usage
89
+
90
+ ```python
91
+ from datasets import load_dataset
92
+
93
+ dataset = load_dataset("jablonkagroup/chempile-caption")
94
+ print(dataset)
95
+ # DatasetDict({
96
+ # train: Dataset({
97
+ # features: ['text', 'image'],
98
+ # num_rows: 90350
99
+ # })
100
+ # validation: Dataset({
101
+ # features: ['text', 'image'],
102
+ # num_rows: 5019
103
+ # })
104
+ # test: Dataset({
105
+ # features: ['text', 'image'],
106
+ # num_rows: 5020
107
+ # })
108
+ # })
109
+
110
+ sample = dataset['train'][0]
111
+ print(f"Sample caption: {sample}")
112
+ # Sample caption: {'text': '2 drawings and a photograph, as described...', 'image': <PIL...}
113
+ ```
114
+
115
+ ## 🏗️ ChemPile Collection
116
+
117
+ This dataset is part of the **ChemPile** collection, a comprehensive open dataset containing over 75 billion tokens of curated chemical data for training and evaluating general-purpose models in the chemical sciences.
118
+
119
+ ### Collection Overview
120
+ - **📊 Scale**: 75+ billion tokens across multiple modalities
121
+ - **🧬 Modalities**: Structured representations (SMILES, SELFIES, IUPAC, InChI), scientific text, executable code, reasoning traces, and molecular images
122
+ - **🎯 Design**: Integrates foundational educational knowledge with specialized scientific literature
123
+ - **🔬 Curation**: Extensive expert curation and validation
124
+ - **📈 Benchmarking**: Standardized train/validation/test splits for robust evaluation
125
+ - **🌐 Availability**: Openly released via Hugging Face
126
+
127
+ ## 📄 Citation
128
+
129
+ If you use this dataset in your research, please cite:
130
+
131
+ ```bibtex
132
+ @article{mirza2025chempile0,
133
+ title = {ChemPile: A 250GB Diverse and Curated Dataset for Chemical Foundation Models},
134
+ author = {Adrian Mirza and Nawaf Alampara and Martiño Ríos-García and others},
135
+ year = {2025},
136
+ journal = {arXiv preprint arXiv:2505.12534}
137
+ }
138
+ ```
139
+
140
+ ## 👥 Contact & Support
141
+
142
+ - **Paper**: [arXiv:2505.12534](https://arxiv.org/abs/2505.12534)
143
+ - **Website**: [ChemPile Project](https://chempile.lamalab.org/)
144
+ - **Dataset**: [Hugging Face](https://huggingface.co/datasets/jablonkagroup/chempile-caption)
145
+ - **Issues**: Please report data issues or questions via the Hugging Face dataset page
146
+
147
+ ---
148
+
149
+ <div align="center">
150
+
151
+ ![ChemPile Logo](CHEMPILE_LOGO.png)
152
+
153
+ <i>Part of the ChemPile project - Advancing AI for Chemical Sciences</i>
154
+
155
+ </div>