PaperMinerToolkit
PaperMinerToolkit builds scientific-paper corpora and extracts structured, recipe-defined data with configurable text and vision models. It searches Elsevier/Scopus, CORE, OpenAlex, PubMed, arXiv, medRxiv, bioRxiv, and chemRxiv; supplements paper metadata from Crossref, OpenAlex, PubMed, arXiv, medRxiv, bioRxiv, and chemRxiv, and imports an author's works from Crossref; downloads abstracts, full text, PDFs, and supporting information; supports persistent regex and LDA topic filters; and stores source content and pipeline state in SQLite.
The complete user guide, CLI reference, Python API, HPC instructions, and rendered notebooks live in the documentation.
Installation
PaperMinerToolkit requires Python 3.11 or newer:
pip install paperminertoolkit
For local entity extraction with fine-tuned BERT checkpoints, install
pip install 'paperminertoolkit[bert]'.
Quickstart
Probe a public source, then gather a small corpus of abstracts. These steps need no model or API key:
pmt probe --source arxiv
pmt gather "lithium solid electrolyte" papers.db \
--source arxiv --count 5 --format abstract --download-source arxiv
pmt corpus stats papers.db
pmt gather combines search and download, merging duplicate records and downloading only papers matched by that search. Repeat --source to search several providers and --download-source to select content providers separately. Configure only the provider credentials you need. Use --json on probe or gather for scriptable summaries.
To extract structured records from those abstracts, configure a text model:
pmt config model text --provider openai --model YOUR_TEXT_MODEL
pmt scrape papers.db sse \
--mode abstract \
--output temp_scraped_materials.csv
pmt store papers.db \
temp_scraped_materials.csv \
materials.csv \
sse \
--assume-yes
To recover the curves of the figures that records name, such as a recipe's Mass loss figure, use pmt digitize, which uses plottracer (installed with PaperMinerToolkit on Python 3.14 or later on Linux); see recovering curves from figures.
Use pmt status papers.db to inspect pipeline progress. pmt search and pmt download remain available for separate discovery and content retrieval stages.
Text and PDF acquisition also attempts supporting information (SI), and text/image scraping includes stored SI by default. Use --no-supplements on gather, download, or scrape to opt out. Abstract-only runs skip SI. To acquire SI for existing entries without redownloading the article or fetching abstracts:
pmt download papers.db --format supplement
Discovery uses stored article links, PMC, public Figshare records tied to the paper DOI, and publisher supplement links. Each file retains its source and separate extraction status; see the supporting-information workflow for coverage and limits.
CLI automation and AI agents
Discover the installed interface and inspect corpus records without parsing tables:
pmt --version
pmt schema corpus export
pmt gather "lithium solid electrolyte" papers.db \
--source arxiv --count 5 --format abstract --download-source arxiv --json
pmt corpus list papers.db --limit 5 --json
pmt status papers.db --json
python -m paperminertoolkit exposes the same commands. JSON is available on
selected commands through their local --json option; progress and errors use
stderr. Preserve JSON even when a search exits with code 1: successful papers
from a partial search remain in the corpus. Use corpus show to inspect a paper
and corpus export to retrieve a stored abstract, text, or PDF.
The agent CLI guide
documents discovery, credentials, JSON shapes, exit codes, and resumable
extraction. The standard-library subprocess example
closes stdin and handles partial results; run it with --help before supplying
a query and explicit corpus path.
BERT entity extraction
Annotate stored abstracts with a fine-tuned token-classification checkpoint:
pmt entities corpus papers.db entities.jsonl \
--model ./models/matscibert-ner --field abstract
Replace the example path with your trained checkpoint directory or Hugging Face
model ID. Use pmt entities text paper.txt entities.jsonl --model CHECKPOINT for
a UTF-8 file. Results include entity labels, confidence scores, exact text,
character offsets, and source metadata; long documents use overlapping windows.
The published MatSciBERT base model requires entity fine-tuning. The published polyBERT produces polymer PSMILES fingerprints and is not a prose entity tagger. Supply a compatible fine-tuned token classifier; training is not part of this workflow. See the entity extraction guide.
Documentation
Install and build the Sphinx site locally:
python -m pip install -e '.[docs]'
make -C docs html
Open docs/_build/html/index.html. Notebook templates for OpenAI, Anthropic, local Qwen/vLLM, LDA model selection, temporal trends, and hybrid filtering are under docs/examples/.
Testing
python -m pip install -e '.[test]'
ruff check paperminertoolkit tests
pytest
PaperMinerToolkit is currently alpha software. Keep the corpus database, recipe, model configuration, intermediate extraction CSV, and final results together so a workflow can be reviewed and reproduced.
Metadata
Release files for paperminertoolkit 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| paperminertoolkit-1.1.1.tar.gz | 533.2 kB | With provenance | Details for paperminertoolkit-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paperminertoolkit-1.1.1-py3-none-any.whl | Python 3 | none | any | Details for paperminertoolkit-1.1.1-py3-none-any.whl |
Total release size: 1.0 MB
Release files / paperminertoolkit-1.1.1.tar.gz
| Download URL | paperminertoolkit-1.1.1.tar.gz |
|---|---|
| Size | 533.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9877d61904e8ae1778c91a3d131326bf068fd9342908e2af076a1b339ad8fc1f
|
|
BLAKE2b-256 checksum How to use checksums |
a56ba6f045f14189a96e5d8ebd5efc1eff57c423298e9ba697c87e3320b42280
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logRelease files / paperminertoolkit-1.1.1-py3-none-any.whl
| Download URL | paperminertoolkit-1.1.1-py3-none-any.whl |
|---|---|
| Size | 511.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6092b8c6f721236ea327b4908612912421ac43452d599de66eb1e1908091bfc4
|
|
BLAKE2b-256 checksum How to use checksums |
7ce9e8e25b99fbe681e7549b12fd70b77d088d5eae390a9486ae7cede1cded21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logSecurity for paperminertoolkit 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for paperminertoolkit-1.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.