lyuzhuoqi commited on
Commit
ca0a529
·
verified ·
1 Parent(s): 699e21b

Add dataset card

Browse files
Files changed (1) hide show
  1. README.md +136 -10
README.md CHANGED
@@ -1,16 +1,142 @@
1
  ---
 
 
2
  license: other
3
- license_name: other
4
- license_link: LICENSE
 
5
  tags:
6
- - chemistry
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  ---
8
 
9
- Collected from existing public OCSR benchmarks; please refer to their original sources for license and attribution:
10
 
11
- | Dataset | Source |
12
- |---------|--------|
13
- | USPTO, CLEF, JPO, UOB, Staker | [Rajan et al., 2020](https://github.com/Kohulan/OCSR_Review), [Xiong et al., 2023](https://github.com/jiachengxiong/alpha-Extractor) |
14
- | Indigo, ChemDraw, ACS, Staker | [Qian et al., 2023](https://github.com/thomas0809/MolScribe) |
15
- | USPTO-10K | [Morin et al., 2023](https://huggingface.co/datasets/docling-project/USPTO-30K) |
16
- | WildMol-10K | [Fang et al., 2025](https://github.com/orgs/Chem-Struct-ML/repositories) |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ language:
3
+ - en
4
  license: other
5
+ license_name: mixed-see-sources
6
+ task_categories:
7
+ - image-to-text
8
  tags:
9
+ - chemistry
10
+ - cheminformatics
11
+ - ocsr
12
+ - optical-chemical-structure-recognition
13
+ - molecule-recognition
14
+ - smiles
15
+ - benchmark
16
+ pretty_name: OCSR Benchmarks
17
+ size_categories:
18
+ - 10K<n<100K
19
+ configs:
20
+ - config_name: CLEF
21
+ data_files:
22
+ - split: test
23
+ path: CLEF/test-*.parquet
24
+ - config_name: JPO
25
+ data_files:
26
+ - split: test
27
+ path: JPO/test-*.parquet
28
+ - config_name: UOB
29
+ data_files:
30
+ - split: test
31
+ path: UOB/test-*.parquet
32
+ - config_name: USPTO
33
+ data_files:
34
+ - split: test
35
+ path: USPTO/test-*.parquet
36
+ - config_name: USPTO-10K
37
+ data_files:
38
+ - split: test
39
+ path: USPTO-10K/test-*.parquet
40
+ - config_name: Staker
41
+ data_files:
42
+ - split: test
43
+ path: Staker/test-*.parquet
44
+ - config_name: ACS
45
+ data_files:
46
+ - split: test
47
+ path: ACS/test-*.parquet
48
+ - config_name: WildMol-10K
49
+ data_files:
50
+ - split: test
51
+ path: WildMol-10K/test-*.parquet
52
+ - config_name: Indigo
53
+ data_files:
54
+ - split: test
55
+ path: Indigo/test-*.parquet
56
+ - config_name: ChemDraw
57
+ data_files:
58
+ - split: test
59
+ path: ChemDraw/test-*.parquet
60
  ---
61
 
62
+ # OCSR Benchmarks
63
 
64
+ A collection of ten benchmark datasets for **Optical Chemical Structure Recognition (OCSR)** —
65
+ the task of converting chemical structure diagram images into machine-readable SMILES strings.
66
+
67
+ These benchmarks were used to evaluate the [COMO model](https://huggingface.co/Keylab/COMO)
68
+ (Closed-Loop Optical Molecule Recognition).
69
+
70
+ ## Subsets
71
+
72
+ | Config | Split | Size | Domain | Source |
73
+ |---|---|---|---|---|
74
+ | `CLEF` | test | 992 | Real (patents) | Rajan et al., 2020 |
75
+ | `JPO` | test | 450 | Real (patents) | Rajan et al., 2020 |
76
+ | `UOB` | test | 5,740 | Real (academic) | Rajan et al., 2020 |
77
+ | `USPTO` | test | 11,430 | Real (patents) | Rajan et al., 2020; Xiong et al., 2023 |
78
+ | `USPTO-10K` | test | 10,000 | Real (patents) | Morin et al., 2023 |
79
+ | `Staker` | test | 50,000 | Real | Qian et al., 2023 |
80
+ | `ACS` | test | 331 | Real (publications) | Qian et al., 2023 |
81
+ | `WildMol-10K` | test | 10,000 | Real (wild) | Fang et al., 2025 |
82
+ | `Indigo` | test | 11,423 | Synthetic | Qian et al., 2023 |
83
+ | `ChemDraw` | test | 5,719 | Synthetic | Qian et al., 2023 |
84
+
85
+ ## Schema
86
+
87
+ Each sample has three fields:
88
+
89
+ | Field | Type | Description |
90
+ |---|---|---|
91
+ | `image_id` | `string` | Original identifier for the sample |
92
+ | `image` | `Image` | PNG image of the chemical structure diagram |
93
+ | `SMILES` | `string` | Ground-truth SMILES string |
94
+
95
+ ## Usage
96
+
97
+ ```python
98
+ from datasets import load_dataset
99
+
100
+ # Load a single benchmark
101
+ ds = load_dataset("Keylab/OCSR-Benchmarks", name="USPTO", split="test")
102
+ sample = ds[0]
103
+ sample["image"].show() # PIL Image
104
+ print(sample["SMILES"])
105
+
106
+ # Iterate over all benchmarks
107
+ for config in ["CLEF", "JPO", "UOB", "USPTO", "USPTO-10K",
108
+ "Staker", "ACS", "WildMol-10K", "Indigo", "ChemDraw"]:
109
+ ds = load_dataset("Keylab/OCSR-Benchmarks", name=config, split="test")
110
+ print(f"{config}: {len(ds)} samples")
111
+ ```
112
+
113
+ ## Bulk Download
114
+
115
+ Pre-packaged `.tar.gz` archives (images + CSV) are also available in the
116
+ [COMO model repository](https://huggingface.co/Keylab/COMO/tree/main/benchmarks)
117
+ for direct download without the `datasets` library.
118
+
119
+ ## License
120
+
121
+ These benchmarks are collected from existing public OCSR datasets.
122
+ Please refer to the original sources for attribution and applicable terms:
123
+
124
+ | Benchmarks | Reference |
125
+ |---|---|
126
+ | USPTO, CLEF, JPO, UOB | Rajan et al., 2020; Xiong et al., 2023 |
127
+ | Indigo, ChemDraw, ACS, Staker | Qian et al., 2023 |
128
+ | USPTO-10K | Morin et al., 2023 |
129
+ | WildMol-10K | Fang et al., 2025 |
130
+
131
+ ## Citation
132
+
133
+ If you use these benchmarks, please cite the COMO paper and the original benchmark sources:
134
+
135
+ ```bibtex
136
+ @article{lyu2026closed,
137
+ title={COMO: Closed-Loop Optical Molecule Recognition with Minimum Risk Training},
138
+ author={Lyu, Zhuoqi and Ke, Qing},
139
+ journal={arXiv preprint arXiv:2604.23546},
140
+ year={2026}
141
+ }
142
+ ```