CoolFace
Apppublic

hugging-apps/markush-glyph

sourceHugging Faceupdated 1mo agoView on Hugging Face
0likes
App README

MarkushGlyph — Markush Structure Recognition

This Space demonstrates MarkushGlyph, a vision-language model (LoRA fine-tune of Qwen3.5-2B-Base) that converts images of patent Markush chemical structures into CXSMILES strings.

How it works

  1. 1.Upload an image of a chemical structure (Markush or ordinary molecule).
  2. 2.The model extracts the structure and returns it in the XML format <markush><cxsmi>...</cxsmi><stable>...</stable></markush>.
  3. 3.The CXSMILES core and stable-group definitions are displayed separately for easy copying.

Model

Example images

The example images are from the glyph repository (Apache-2.0 license):

  • markush_m2s_13.png — a Markush structure crop from the M2S benchmark
  • imatinib.png — the drug imatinib (C₂₉H₃₁N₇O)
  • cholesterol_ester.png — a cholesterol ester structure