Dataset
Licensed full-text book datasets for AI training
A book dataset for AI training is a collection of complete published books, delivered from the publisher's production files as EPUB, XML or typeset PDF, with catalog metadata such as ISBN, edition, imprint, subject codes and contributor records. SourceX sources these on request from established trade, academic and professional publishers, limited to the titles each publisher's contracts allow it to license, and a buyer can specify that chapter structure, notes and indexes are kept. Each dataset is rights-reviewed, de-identified where it holds personal details beyond the published text, and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Complete book texts from publisher production files, with catalog metadata and per-title rights
- Typical systems
- EPUB files, BITS or DocBook XML, InDesign packages, print PDF, ONIX feeds from title management systems
- Typical history
- Specify publication years; older backlist titles may exist only as PDF or scans
- Modality
- Long-form text with structural markup; catalog and rights metadata as structured records
- Delivery formats
- EPUB or XML per title, or JSONL with one record per structural unit, plus ONIX or JSON metadata
- Preparation
- DRM-free production files; structure mapped to one schema; excluded third-party material marked in place
- Licensing
- Per title; permitted use, territory, term and exclusions follow the publisher's rights in each work
- Availability
- Sourced to your spec; licensable titles depend on each publisher's contracts and are not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| title_id | string | Stable work-level ID that groups every ISBN, format and edition of the same text. |
| isbns | array | ISBN of each product the text was published as, with its ONIX product form code. |
| edition | object | Edition number, the publication date of this edition and the date the work was first published. |
| title_page | object | Title, subtitle, imprint and publisher as they appear on the title page. |
| contributors | array | Contributor records in sequence with role codes for author, editor, translator, illustrator or foreword writer. |
| subject_codes | array | BISAC and Thema subject codes with the scheme named, plus audience codes where assigned. |
| language | string | Language of the text and, for a translation, the language it was translated from. |
| structure | array | Ordered units typed as front matter, part, chapter or back matter, each with its title, number and word count. |
| body | string | Text of one structural unit with headings, block quotes, verse, lists and emphasis kept as markup. |
| notes | array | Footnotes and endnotes as separate objects, each tied to the anchor in the body that calls it. |
| index_entries | array | Index headings and subheadings with locators resolved to units or anchors instead of print page numbers. |
| rights | object | Per-title record of the basis for AI training use, territories, languages, term and reversion status. |
| exclusions | array | Third-party material removed or flagged, such as epigraphs, lyrics, images and maps, with type and position. |
| source_file | object | Production format the text came from, what it was derived from, and whether it was proofed against print. |
Field names from the table above; values are masked placeholders.
Example record
{
"title_id": "ttl_58c20e",
"isbns": [
{"isbn_13": "[ISBN-HARDBACK]", "product_form": "BB"},
{"isbn_13": "[ISBN-PAPERBACK]", "product_form": "BC"},
{"isbn_13": "[ISBN-EPUB]", "product_form": "ED", "detail": "E101"}
],
"edition": {"number": 2, "published": "2016-04-07", "first_published": "2011-09-15"},
"title_page": {"title": "A Year on Brackwater Creek", "subtitle": null, "imprint": "Kestrel Ford Press"},
"contributors": [
{"seq": 1, "role": "A01", "role_name": "author", "name": "Marit Ellingsen"},
{"seq": 2, "role": "A12", "role_name": "illustrator", "name": "Tobias Renn"}
],
"subject_codes": [
{"scheme": "BISAC", "code": "NAT000000"},
{"scheme": "Thema", "code": "WN"}
],
"language": "en",
"structure": [
{"unit_id": "u001", "type": "copyright_page", "matter": "front"},
{"unit_id": "u003", "type": "epigraph", "matter": "front", "excluded": true},
{"unit_id": "u007", "type": "chapter", "matter": "body", "number": 3, "title": "Spring Tides", "words": 6815, "body": "<h1>Spring Tides</h1><p>By the second week of March the creek had stopped freezing at its edges.<a class=\"noteref\" href=\"#n3-1\">1</a> ...</p>"},
{"unit_id": "u021", "type": "index", "matter": "back"}
],
"notes": [
{"note_id": "n3-1", "anchor_unit": "u007", "text": "Tide heights are taken from the harbor office log; see Bibliography."}
],
"index_entries": [
{"heading": "eelgrass", "subheading": "dieback", "locators": [{"unit_id": "u007", "anchor": "pg88"}]}
],
"rights": {"ai_training": "confirmed", "basis": "author_amendment", "confirmed_on": "2026-02-11", "territories": ["WORLD"], "languages": ["en"], "term_ends": "2031-12-31", "reverted": false},
"exclusions": [
{"unit_id": "u003", "type": "epigraph", "reason": "third_party_text"},
{"unit_id": "u007", "type": "illustration", "count": 4, "reason": "illustrator_contract_not_confirmed"}
],
"source_file": {"format": "epub3", "derived_from": "indesign", "proofed_against_print": true}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Long-context training
Whole books in reading order, with chapter boundaries kept, give models edited text that stays coherent far longer than articles or web pages.
Summarization at three levels
Chapters, parts and the whole book are natural summary targets, with the publisher's descriptive copy as a book-level reference.
Citation and source attribution
Notes linked to their anchors pair a claim with the source the author gave for it, which is supervision for models that must cite.
Retrieval evaluation from indexes
Index entries with resolved locators map a concept to the passages a human indexer chose, a ready test set for retrieval over long documents.
Genre and register control
Subject codes, imprint and audience fields let a team select edited prose by genre, discipline or reading level.
Use-case guides: Document AI, enterprise search and RAG, Private evaluation sets, Legal AI
What makes this data valuable
Production-file source
Text from EPUB or XML masters is cleaner than text extracted from print PDF or OCR, and each title says which it was.
Structure mapped from markup
Units typed from the file's own markup are more reliable than boundaries inferred from font size.
Linked notes
Every footnote and endnote resolves to an anchor in the body, with no orphaned numbers left in the text.
Rights basis per title
Each title names the contract basis for AI use, the territories and the term, so scope can be filtered and audited.
Stated edition
The edition and printing are recorded, because corrected reprints and revised editions differ from the first.
Exclusions marked in place
Removed third-party material leaves a typed marker, so a gap in the text is explained.
License terms
Book dataset for AI training
Why a book should be delivered as a book, not as paragraphs
A book is one of the few places where a single edited argument or story runs for tens of thousands of words. A history makes a claim in chapter two that chapter nine depends on. That sustained, edited length is what a lab licenses books for, and it is the first thing lost when a corpus is flattened into paragraphs with no order and no chapter boundaries.
The structure is already in the publisher's files. An EPUB has a spine that fixes reading order, a navigation document that holds the table of contents, and content documents in which notes, front matter and back matter can carry semantic labels. How well this was done varies by publisher, year and conversion vendor. Backlist titles converted from print PDF often have headings that are only styled paragraphs, footnotes reduced to unlinked superscript numbers, and an index whose locators are print page numbers that point nowhere in reflowable text. Text extracted from a typeset PDF brings running heads and end-of-line hyphens into the middle of sentences.
So the specification should name each unit and what travels with it. The copyright page states the edition and printing, a foreword is often by someone other than the author, and an epigraph is usually someone else's words. In scholarly and professional books much of the sourcing sits in the notes, which are useful only while each note is attached to the sentence that calls it. The index is a human-built map from concepts to passages, and with locators resolved to anchors it becomes retrieval ground truth that no annotation project had to produce.
Why a publisher's catalog overstates what can be licensed
A publisher holds each book under a contract with its author, and the contract sets what the publisher can do with the text. In trade publishing the author commonly keeps the copyright and grants named formats, languages and territories for a term, sometimes with a clause that returns the rights once the book goes out of print. Academic and professional houses more often take an assignment or commission the work, on terms that vary as much. These contracts were negotiated one at a time over decades, so whether a grant reaches AI training has to be answered title by title, by the publisher's contracts staff and your counsel. Many older contracts were written before ebooks, and some recent ones address machine learning directly, in either direction.
Several things shrink the licensable set. Rights in some backlist titles have reverted while the title still sits in the catalog database. Territory is often split between houses. A translated edition rests on a license from the original-language rights holder plus an agreement with the translator, and anthologies carry a contract per contributor. Inside almost any book there is third-party material, such as epigraphs, quoted lyrics, photographs and maps, that the publisher cleared for a particular edition and not for reuse in a dataset. Works the publisher commissioned and owns outright are the simpler case.
The catalog feed will not settle the question. ONIX records carry sales rights by territory, which say where copies may be sold. ONIX also has a usage constraint for text and data mining, which a publisher can use to tell retailers and other recipients that mining is permitted or reserved. Neither shows that the author's contract lets the publisher grant training use. That answer sits with the contracts department and has to be written into the deliverable as a per-title rights record: the basis for the AI-use permission, the territories and languages covered, the term, and the material excluded. With it a buyer can filter to the titles it is licensed for.
What to check before licensing
- Ask for the basis of the AI training permission for each title: an express contract clause, a signed author amendment, or a work the publisher commissioned and owns. Read sample contract language for each basis.
- Ask how reverted and out-of-print titles were identified and removed, and when the rights check was run.
- Check how third-party material was found and handled. Epigraphs, lyrics, poems, photographs, maps and reproduced tables should be excluded or flagged with their position.
- For translated editions, confirm the publisher holds rights from both the original-language rights holder and the translator, or leave translations out of scope.
- Compare sample chapters with the printed book. Look for running heads, split hyphenated words, lost italics, dropped diacritics and footnote text spliced into body paragraphs.
- Test for duplicates across hardback, paperback and ebook ISBNs, revised editions, omnibus volumes and sample chapters of other titles in the back matter.
- Confirm the territories, languages and term in each rights record match your intended use, and ask whether any contract requires author notice or consent.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
Can a publisher license its whole catalog for AI training?
Rarely the whole catalog. A publisher can license only the titles where its contract with the author, or its own ownership of the work, covers AI training use, and that differs from one contract to the next. Reverted titles, split territories, translations and anthologies each narrow the set. Ask for the number of titles confirmed under each basis, and expect it to be smaller than the catalog.
What file formats do book texts come from?
Mostly EPUB, publisher XML and typeset PDF. Recent titles usually exist as EPUB, and some academic and professional houses keep XML such as BITS or DocBook as the master. Older backlist may exist only as print PDF, as an InDesign or earlier typesetting file, or as a scan with OCR.
Are footnotes, indexes and front matter included?
They are included when you specify them, and for most uses you should. Notes can be delivered as separate objects tied to the anchor that cites them, the index as entries with resolved locators, and front and back matter as typed units such as preface, appendix or bibliography. If you want narrative text only, the same typing lets you drop those units cleanly.
How are images, epigraphs and other third-party material handled?
They should be identified per title and then excluded or flagged, depending on what the publisher's permissions allow. Publishers usually clear quoted lyrics, poems, photographs and maps for a specific edition, so those permissions seldom extend to a dataset. Ask how the publisher located this material, because permissions logs for older titles are often incomplete.
Can I select books by subject, period or type?
Yes, through the catalog metadata. Publishers classify titles with BISAC or Thema subject codes, audience codes, imprint, language, and publication and edition dates, which support selection by genre, discipline, reading level or era. Subject codes were assigned for bookselling, so they are coarse. For narrow needs, review the title list itself before fixing the scope.
How do I avoid the same book appearing more than once?
Ask for every format and edition to be grouped under one work-level ID. A single book can carry separate ISBNs for hardback, paperback and each ebook format, appear again in an omnibus or a revised edition, and be excerpted as a sample chapter in the back of another title. The delivery should state which edition's text was used and link the other ISBNs to it.
Related datasets
- Textbooks and structured courseware
Textbook units as structured content: objectives, worked examples, exercises, full solutions, item banks and the prerequisite map
- Reference works: dictionaries and encyclopedias
Reference content as entry and sense records: headwords, definitions, labels, examples, etymologies and cross-reference links
- Academic journal papers with figures
Peer-reviewed articles as publisher XML with separate figures, tables, equations, references and post-publication status
- Scripts and screenplays
Scripts in production format with typed elements, draft and revision chains, coverage and development notes
- Audiobook recordings aligned to text
Narrated books as chapter audio with the script, alignment, narrator ID and production records
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.