More than 100,000 books
Designed to scale horizontally with no loss of performance, so large collections can be ingested on cloud computing.
Libraries have argued about where books belong for centuries. We let machines join the argument, in several classification systems at once, and kept a record of where they were wrong.
A Go orchestrator, now in beta, ingests books and collections in large numbers. It is currently ingesting the Internet Archive collection.
Designed to scale horizontally with no loss of performance, so large collections can be ingested on cloud computing.
The same program runs on a local machine with a mid-range graphics card (about 6 GB of video memory), with the same quality, so small collectors can cut costs.
The SDK’s canonical schemas support seven systems, including CLC (Chinese) and BBK (Russian), with identifiers ISBN, ISSN, ISNI and ORCID.
| System | Used in | Supported | Trained | How the library assigns it |
|---|---|---|---|---|
| LCC | United States | Supported | Trained | BERT model and a custom LCSH classifier |
| DDC | United States, used worldwide | Supported | Pending | Automated rule set |
| UDC | Belgium, used across Europe | Supported | Pending | Automated rule set |
| CLC | China | Supported | Pending | Automated rule set |
| BBK | Russia and former Soviet countries | Supported | Pending | Automated rule set |
| TLC | Thailand | Supported | Pending | Automated rule set |
| CC | India, Ranganathan | Supported | Pending | Automated rule set |
Machines classify only when the source can’t be fully trusted.
When a book arrives with a class from a source we trust, such as a state library, no machine needs to read it. Conversion rules, maintained by hand, place it in the matching class of all seven systems, with no model, OCR or translation.
Docling, started by IBM Research Zurich, works out the layout of each page. Tesseract, first developed at Hewlett-Packard and later by Google, recognises the text. PaddleOCR, from Baidu’s PaddlePaddle project, extracts tables accurately. A language model then describes every figure in words, so pictures are assessed as well as text; we are still choosing which model.
A BERT model assigns the Library of Congress class. BERT is a language model published by Google in 2018; ours reads a book’s title, subjects and pages and names the class it belongs to.
Library of Congress Subject Headings give a book several subjects from a vocabulary shared by libraries everywhere. We assign them with Annif, an open-source indexing tool from the National Library of Finland, trained on Open Library titles. A suggestion is kept only above a score of 0.75, and publishing rules for each heading are kept in a reviewed database.
Only when a book’s subject headings all pass the approved list of allowed LCSH headings do we double-check it: a language model reads the whole book and looks for content that violates the D-SAFE specification. It scores each of the 11 exclusions from 1 to 5, with a justification and the pages concerned, so a reviewer sees the reason and the page, not just a verdict.
Where the same book sits in each system, from the library’s hand-maintained conversion set.
Classes are assigned to the library’s topic “Papermaking”, which holds 36 books, not to this copy alone.
D-SAFE · Would not pass: ecological harm. Half the book teaches paper from rags, esparto and straw. The other half teaches industrial wood pulping and chemical bleaching, which the exclusion “No advocacy for deforestation, pollution or species loss” rules out. A label can split a book the way a shelf can’t.
Answered Yes. Most classification systems are compatible, and the conversion set between them is maintained by hand. When a Chinese book on papermaking arrives with a class from a trusted source, such as a state library, it is placed in the matching class of every other system automatically, with no classifier, OCR or translation.
In progress Every removal in @the_library/public is meant to be public and reversible. A proper way for authors, or their families, to appeal is a work in progress, expected around the end of 2027.
Answered No. D-SAFE is the basis on which we study and build the technology. When it is fully operational, a service for state libraries will become available: integrating the Web3 UNIMARC stack so they can persist their public-domain knowledge for the world.