CoolFace
Datasetpublic

wangekxy/classical-tcm-canon

Classical Chinese Medicine Canon — 中医经典文本数据集 (v1) A curated Traditional Chinese Medicine (TCM) text dataset: clean, full-text digitizations of the foundational Chinese medicine canon — the 内经 (Inner Canon), 难经, 伤寒论 (Treatise on Cold Damage), 金匮要略, and 温病 (warm-disease) classics — assembled from public-domain source works. Useful for LLM training, RAG, and search over classical Chinese medicine / 中医药 literature. Summary 115 distinct works, 9,401,166 Chinese… See the full description on the dataset page: https://huggingface.co/datasets/wangekxy/classical-tcm-canon.

sourceHugging Faceotherupdated 3mo agoView on Hugging Face
0likes113downloads
Dataset Card

Classical Chinese Medicine Canon — 中医经典文本数据集 (v1)

A curated Traditional Chinese Medicine (TCM) text dataset: clean, full-text digitizations of the foundational Chinese medicine canon — the 内经 (Inner Canon), 难经, 伤寒论 (Treatise on Cold Damage), 金匮要略, and 温病 (warm-disease) classics — assembled from public-domain source works. Useful for LLM training, RAG, and search over classical Chinese medicine / 中医药 literature.

Summary

  • 115 distinct works, 9,401,166 Chinese characters (~9.40M)
  • Source: pre-modern works whose authors died before 1912 (China copyright = life + 50y)
  • Zero OCR — every record is extracted directly from a text-format source, not a scan
  • Held back (not in this release): 10 single-source works pending second-source cross-validation (see canon_v1_hold.jsonl)

Provenance & rights

Each record is a faithful transcription of a public-domain classical work. The underlying texts are out of copyright; the digital transcription carries no new copyright (faithful reproduction of a PD text). Rights basis per record is recorded in rights.basis, backed by an author death-year ledger (../rights_ledger.txt). Editions containing a modern annotator's copyrighted commentary were excluded (see Quality control).

Table of contents

work familyworkschars
伤寒论574.58M
黄帝内经素问161.74M
金匮要略131.08M
黄帝内经60.54M
黄帝内经灵枢30.33M
黄帝内经太素10.33M
温热/温疫80.32M
难经60.22M
温热经纬10.11M
温病条辨10.10M
黄帝明堂10.02M
温病(其他)10.01M
其他经典10.01M

Schema (one JSON object per line)

fieldmeaning
idstable record id
work_familycanonical work the text belongs to (e.g. 伤寒论)
titleedition/commentary title
source_formatdoc / chm / txt — original format in the source archive
extraction_methodTEXT_EXTRACT (no OCR)
edition_typescanoriginal / moderncollated
rights{status, basis} — PD basis (author/dynasty)
source_metaparsed 书名/作者/朝代 where available
char_count, cjk_ratiosize / Chinese-character density
validationhow the text was cross-checked
ship_tierA=validated, B=single-source clean-format
textthe clean full text

Quality control (pipeline)

  1. 1.Source priority — text-format twin preferred; the curated 中华医书集成 numbered series is treated as authoritative.
  2. 2.Garbage gate — mojibake extractions (common-Hanzi ratio < 4%) rejected.
  3. 3.De-junking — web-compilation ads/nav/pinyin/contact lines stripped; CJK de-spaced.
  4. 4.繁简-normalized cross-validation — copies of a work compared via OpenCC-normalized 12-gram overlap; ≥0.85 = validated.
  5. 5.Contamination exclusion — editions weaving a modern annotator's copyrighted commentary into the PD base text are removed (e.g. 唐步祺 闡釋 of 伤寒恒论).
  6. 6.External spot-check — flagship works verified against Wikisource PD reference.

Validation mix (release): {'singlesource': 61, 'validatedmultisource': 53, 'validatedminorvariance': 1}

Known limitations

  • Punctuation/collation follows each source edition (modern editors' 标点).
  • 异体字 variants (e.g. 脏/藏, 腑/府) appear as in the source.
  • 10 single-source .chm works are held for v1.1 pending an independent second source (their scanned-PDF twins will be OCR'd in Phase 2 to cross-validate).