ChemScraper: Leveraging PDF Graphics Instructions for Molecular Diagram Parsing
Preprint
Abstract
Most molecular diagram parsers recover chemical structure from raster images (e.g., PNGs). However, many PDFs include commands giving explicit locations and shapes for characters, lines, and polygons. We present a new parser that uses these born-digital PDF primitives as input. The parsing model is fast and accurate, and does not require GPUs, Optical Character Recognition (OCR), or vectorization. We use the parser to annotate raster images and then train a new multi-task neural network for recognizing molecules in raster images. We evaluate our parsers using SMILES and standard benchmarks, along with a novel evaluation protocol comparing molecular graphs directly that supports automatic error compilation and reveals errors missed by SMILES-based evaluation.Keywords
All Related Versions
This publication has 38 references indexed in Scilit:
- Line-of-Sight with Graph Attention Parser (LGAP) for Math Formulas2023
- OCMR: A comprehensive framework for optical chemical molecular recognitionComputers in Biology and Medicine, 2023
- MolScribe: Robust Molecular Structure Recognition with Image-to-Graph GenerationJournal of Chemical Information and Modeling, 2023
- A Math Formula Extraction and Evaluation Framework for PDF Documents2021
- Molecular Structure Extraction from Documents Using Deep LearningJournal of Chemical Information and Modeling, 2019
- Advancing the state of the art for handwritten math recognition: the CROHME competitions, 2011–2014International Journal on Document Analysis and Recognition (IJDAR), 2016
- A Linear Grammar Approach to Mathematical Formula Recognition from PDFLecture Notes in Computer Science, 2009
- Fast string correction with Levenshtein automataInternational Journal on Document Analysis and Recognition (IJDAR), 2002
- Chemical literature data extraction: The CLiDE ProjectJournal of Chemical Information and Computer Sciences, 1993
- Kekule: OCR-optical chemical (structure) recognitionJournal of Chemical Information and Computer Sciences, 1992