This release is a pre-release and may not be stable for production use.
EXSCLAIM2.0: LLM-powered Automatic EXtraction, Separation, and Caption-based natural Language Annotation of IMages from scientific figures
🤔 Consider Collaboration
If you find this tool or any of its derived capabilities useful, please consider registering as a user of Center for Nanoscale Materials. We will keep you posted of latest developments, as well as opportunities for computational resources, relevant data, and collaboration. Please contact Maria Chan (mchan@anl.gov) for details.
Introduction to EXSCLAIM2.0
EXSCLAIM2.0 is a Python package combining EXSCLAIM! code with Large Language models (LLMs) that can be used for the automatic generation of datasets of labeled images from published papers. There are four main steps:
- JournalScraper: scrape journal websites, acquiring figures, captions, and metadata
- CaptionDistributor: separate figure captions into the component chunks that refer to the figure's subfigures using LLMs and prompt engineering
- FigureSeparator: separate figures into subfigures, detect scale information, label, and type of image
- PDFScraper: scrape journal articles in PDF form, acquiring figures, captions and metadata.
Examples and tutorials
We provide several tutorials demonstrating how to use EXSCLAIM2.0:
- Nature_exsclaim_search: automatically scrapping data from literature and performing Named Entity Recognition (NER) on the extracted captions.
- HTMLScraper: automatically scrapping data from user provided HTML files
- Microscopy_CLIP_retrieval: Using Microscopy_CLIP to perform image-to-image and text-to-image retrieval on our multimodal microscopy dataset.
Installation
The guides to install EXSCLAIM through Pip, Git and Docker can be found within the wiki. The guides include installing pre-compiled versions as well as building from the source code and then installing.
Using Exsclaim 2.0
from exsclaim import Pipeline
search_query = {
...
}
results = Pipeline(search_query)
where search_query is either a dictionary representing a valid JSON object, or a Pathlike string pointing towards a valid JSON file,
or
python -m exsclaim query {path to json file holding search query}
More extensive guides can be found within the wiki.
Using Docker Compose
To use Docker Compose to host the service, run the following commands in the base directory:
docker compose up --build python
Upgrading the Database
Starting with version 2.5.3, EXSCLAIM will be using Alembic to easily upgrade the schema of the database. If you have a version of the database existing before this change, you can run
alembic stamp 751d7ac35cd2
to have alembic recognize that the database already has a history, then run
alembic upgrade head
to update the database. With future versions, you can then run
alembic upgrade head
to update to the proper schema.
Acknowledgements
This material is based upon work supported by Laboratory Directed Research and Development (LDRD) funding from Argonne National Laboratory, provided by the Director, Office of Science, of the U.S. Department of Energy under Contract No. DE-AC02-06CH11357
This work was performed at the Center for Nanoscale Materials, a U.S. Department of Energy Office of Science User Facility, and supported by the U.S. Department of Energy, Office of Science, under Contract No. DE-AC02-06CH11357.
We gratefully acknowledge the computing resources provided on Bebop, a high-performance computing cluster operated by the Laboratory Computing Resource Center at Argonne National Laboratory.
Citation
If you find EXSCLAIM! useful, please encourage its development by citing the following paper in your research:
Schwenker, E., Jiang, W. Spreadbury, T., Ferrier N., Cossairt, O., Chan M.K.Y., EXSCLAIM! - An automated pipeline for the construction and
labeling of materials imaging datasets from scientific literature. arXiv e-prints (2021): arXiv-2103
Bibtex
@article{schwenker2021exsclaim,
title={EXSCLAIM! - An automated pipeline for the construction of labeled materials imaging datasets from literature},
author={Schwenker, Eric and Jiang, Weixin and Spreadbury, Trevor and Ferrier, Nicola and Cossairt, Oliver and Chan, Maria KY},
journal={arXiv e-prints},
pages={arXiv--2103},
year={2021}
}
Release files for exsclaim 2.5.2b17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| exsclaim-2.5.2b17.tar.gz | 1.3 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| exsclaim-2.5.2b17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / exsclaim-2.5.2b17.tar.gz
| Download URL | exsclaim-2.5.2b17.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5f99248412137e517c0ab8455c2ac7665c28b4a3d98fd21404b9f65dfb314d7a
|
|
BLAKE2b-256 checksum How to use checksums |
be6c3966b6a6fa2f20308ce15f10eda4093dcfa8c484da44d6359791196b26a2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.3
|
Release files / exsclaim-2.5.2b17-py3-none-any.whl
| Download URL | exsclaim-2.5.2b17-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
613ac772f8dea318298b1ff51532554a30dc4b82a5f061ac1867c68ef89d5026
|
|
BLAKE2b-256 checksum How to use checksums |
721ca9c2f39d6b1f162110427c876bb7e20bd1fb89244b04c115e6e2d9875d2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.3
|